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 10283] - Add a destfile to the uptodate task
Date Tue, 20 Aug 2002 09:13:52 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=10283>.
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=10283

Add a destfile to the uptodate task





------- Additional Comments From cote@computer.org  2002-08-20 09:13 -------
Maybe it would be more clear with a example.

I have a task call ejbdoclet which generate a lot of files base on some
javasource.  For now, I have the following in my build.xml.

        <uptodate property="prod.ejbdoclet.notRequired">
            <srcfiles refid="prod.ejbdoclet.src.fileset"/>
            <mapper type="merge" to="${prod.meta.tmp.dir}/ejb-jar.xml"/>
        </uptodate>

For now, I check all my file against a single target file : ejb-jar.xml.  What I
would like would look like :

        <uptodate property="prod.ejbdoclet.notRequired">
            <srcfiles refid="prod.ejbdoclet.src.fileset"/>
            <targetfiles dir="${build.dir}">
               <include name="metadata/ejb-jar.xml"/>
               <include name="metadata/weblogic-ejb-jar.xml"/>
               <include name="metadata/weblogic-cmp-rdbms-jar.xml"/>
               <include name="gensrc/**/*Remote.java"/>
               <include name="gensrc/**/*RemoteHome.java"/>
               <include name="gensrc/**/*Local.java"/>
               <include name="gensrc/**/*LocalHome.java"/>
               <include name="gensrc/**/*Data.java"/>
            </targetfiles>
        </uptodate>

when the property is set only when all the file in targetfiles are newer that
the newer file in srcfiles.

--
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