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=7325>. 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=7325 uptodate task mergemap directory rooting problem Summary: uptodate task mergemap directory rooting problem Product: Ant Version: 1.4 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I would like to notify you of a bug in the Uptodate task (and Condition/uptodate). The target merge map file was consistently rooted at the directory for the srcfiles, rather than the ant buildfile root. This was very confusing, and required me to duplicate property information. This is vaguely similiar to bug 5454 in that the maps seem to be messing up. Here is an example of what I would like to be able to do: <property name="build.dir" value="./build" /> <property name="classes.dir" value="${build.dir}/classes" /> <property name="config.dir" value="./config" /> <uptodate property="jar.required" > <srcfiles dir= "${classes.dir}" includes="**/*.java"/> <srcfiles dir= "${config.dir}" includes="Manifest.txt"/> <!-- not used, see bug 7324 --> <mapper type="merge" to="${build.dir}/application.jar"/> </uptodate> But then it looks for the jar file in xxxx/build/classes/./build/application.jar This could be worked around as follows: <uptodate property="jar.required" > <srcfiles dir= "${classes.dir}" includes="**/*.java"/> <srcfiles dir= "${config.dir}" includes="Manifest.txt"/> <!-- not used, see bug 7324 --> <mapper type="merge" to="../application.jar"/> </uptodate> But then I have problems if directory structure changes in the wrong ways (and this would be very hard to catch!). -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
