Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove '*.class' restriction from classfileset element in Ant task #186

Open
lukasj opened this issue Mar 7, 2012 · 0 comments
Open

Remove '*.class' restriction from classfileset element in Ant task #186

lukasj opened this issue Mar 7, 2012 · 0 comments

Comments

@lukasj
Copy link
Contributor

lukasj commented Mar 7, 2012

TestNG Ant task supports 'classfileset' element (=fileset) which adds "/*.class" filter to the supplied fileset - this behaviour is not consistent with 'xmlfileset', which does not add any filter nor with how 'classfilesetref' attribute behaves and makes it difficult to pass tests from different test folders to the Ant task if one has to refer to test source files. Adding an explicit '/*.class' filter to the fileset is also something quite easy for the user to do.

Since this may be used by Eclipse (or other) plugin, removal of this 'filter' may not be possible, so the other option would be to add fileset to supported elements for the Ant task.

What I'm trying to do is:
-I have a project with two folders containing test sources, say '/a/b' and 'c/d', test sources match '*_/_Test.java'
-I want to pass them to TestNG Ant task at once
-I have to use pure Ant 1.8 (no Ant-contrib, no scripting, no augment task)

I can maybe get around this by using 'pathconvert' or by calling the task twice (once for each test root) but both ways seem to me to be inefficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants