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=21094>. 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=21094 glob mapper inconsistently uses source directory [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 2003-06-26 12:01 ------- The desired target directory is not a sibling directory, but a subdirectory of the current one. The "to" path must be relative to the srcfiles dir, which a) makes for a convoluted path and b) doesn't work if "to" cannot be specified relative to the srcfiles dir and c) requires knowlege of what the current directory is named. <mkdir dir="../sib/a/b/c"/> <touch file="../sib/a/b/c/file.xml"/> <property name="sib.dir" location="../sib"/> <property name="target.dir" location="output"/> <uptodate property="upto.date"> <srcfiles dir="${sib.dir}" includes="a/**/*.xml"/> <mapper type="glob" from="a/*.xml" to="${output}/javafiles/*.java"/> </uptodate> The line given above does not work. In this case, "to" must be "../{$pwd?}/${output}/javafiles/*.java" to work. "from" evaluates to a/b/c/file.xml, "to" evaluates to $PWD/a/b/c/javafiles/file.java (as reported by "ant -v"). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]