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 7114] New: - <mapper type="merge> misintreprets 'to' attribute in <uptodate> context
Date Thu, 14 Mar 2002 10:04:23 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=7114>.
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=7114

<mapper type="merge> misintreprets 'to' attribute  in <uptodate> context

           Summary: <mapper type="merge> misintreprets 'to' attribute  in
                    <uptodate> context
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: tquas@yahoo.com


Here's a snippet from my build file:

        <uptodate property="xdoclet.done">
            <srcfiles dir="${project.src}"
                includes="tquas/ejb/**/*Bean.java"/>
            <mapper type="merge" to="${build.tmp}/xdoclet.stamp"/>
        </uptodate>

The problem with this is that <mapper> for some reason takes the directory of
<srcfiles> (${project.src}) as the root dir for the <mapper>. An example from
the log looks like:

[uptodate] tquas/bogus/ejb/IssueBean.java added as
/home/tom/projects/bogus/src/build/tmp/xdoclet.stamp doesn't exist.

The problem is that ant looks for 'xdoclet.stamp' in src/build/tmp instead of
build/tmp.


Now reformulating the rule to

        <uptodate property="xdoclet.done"
            targetfile="${build.tmp}/xdoclet.stamp">
            <srcfiles dir="${project.src}"
                includes="tquas/bogus/ejb/**/*Bean.java"/>
        </uptodate>

works just fine.


Am I wrong, or isn't the first solution supposed to work, too?



tom

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message