Community
Participate
Working Groups
When adding a custom task/type to Eclipse's Ant via the properties page, the page does not check to see if the class that the user gives is actually on Ant's classpath. If the class is not foud, then Ant will report an error the first time it is run. Since the dialog that the user types the classname into requires that a jar file containing the class be specified, it would be better to browse the jar file and select the class, rather than type in the class name. This would prevent invalid classnames from being entered.
At the very least, we should validate the class name against the jar file. Providing a list to select from is a nice to have for release 2.0
To make this even better we should also check the validity of the task a la org.apache.tools.ant.Project#checkTaskClass(Class)
Moving to M4
Reworked. You now view the contents of the JAR and select the class file.
Please verify (Jared).
Verified.