ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alu, artifex" <apache-u...@artifex.co.at>
Subject uptodate task question
Date Tue, 27 Apr 2004 12:16:45 GMT
i'm trying to use ant to generate xdoclet mappings for struts only if  
either
- a source file changed
- one of the xml-fragment files which are merged into struts-config.xml 
changed

i used the following uptodate entry:

<uptodate property="xDoclet.struts.isUpToDate">
    <srcfiles dir=".">
        <include name="${xdoclet.mergefiles}/struts/**/*.xml"/>
        <include 
name="${dir.src}/at/artifex/xtend/mvc/**/*.java"/>           
    </srcfiles>
    <mapper type="merge" to="${dir.webapp}/WEB-INF/struts-config.xml"/>
</uptodate>

it seems like ant only checks for changes in the xml-files, if a java 
file changes the property is
always set to "true". i also tried the attribute

    <uptodate ... targetfile="${dir.webapp}/WEB-INF/struts-config.xml">

instead of the mapper "merge" but with no effect.

any help would be appreciated.

regards
alu

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message