ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21094] - glob mapper inconsistently uses source directory
Date Thu, 26 Jun 2003 12:01:03 GMT
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

twall@users.sourceforge.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



------- Additional Comments From twall@users.sourceforge.net  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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message