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 7325] New: - uptodate task mergemap directory rooting problem
Date Thu, 21 Mar 2002 13:58:50 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=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: ant-dev@jakarta.apache.org
        ReportedBy: craiglaurent@yahoo.com


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message