DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4241>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4241 macrame and path id problems Summary: macrame and path id problems Product: Ant Version: 1.4 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I used ant to compile an application that needed several jars. The build.xml contained several tasks, but with the same classpath. For a clear code i used a path id: <path id="libclasspath" > <pathelement location = "${lib}/junit.jar"/> <pathelement location = "${lib}/xml/jaxp.jar"/> <pathelement location = "${lib}/xml/parser.jar"/> <pathelement location = "${lib}/mail.jar"/> <pathelement location = "${lib}/activation.jar"/> </path> All the tasks look like this: <javac srcdir="${src}" destdir="${build.classes}" > <exclude name="**/CVS/*"/> <classpath> <path refid="libclasspath"/> </classpath> </javac> Afterwards, i wanted to use macrame to take the jars directly from cvs All the jars are taken and placed with full path in the contrib directory and then taken from there Everything looked ok, but then i noticed that when i was deleting the contrib directory, the build faild. It faild before executing any task because the paths from the path id did not exist. I modified the build.xml so that it did not use path id and it worked. It seems that before executing any tasks, ant first verifies that all paths with id exist, and fails if they dont exist already. i can write a task that creates the contrib directory, but the path verification is done before all tasks. This is a problem with macrame. The macrame is supposed to create the contrib dir and place all the modules there, but i can not write the tasks classpath with path id, because directories are verified to exist before macrame creates de contrib directory. Is it possible to solve the problem? Is it a good solution for paths with id to be verified when used?
