The only reference I find to "<apply>" is in "requested-features.txt" -- I 
assume that means it has not yet been implemented (or released) ...?

In any case, here's my example:

 <target name="checkJsMenuBuild">
                <uptodate property="JsMenuBuild.notRequired"
                        targetfile="${menuArchive}">
                        <srcfiles dir="${jslib}">
                                <include name="${jslib}/Util/Version.js"/>
                                <include name="$jsmenu}/ccmenu.js"/>
                                <include name="${jslib}/Util/NavKeys.js"/>
                        </srcfiles>
                </uptodate>
    </target>

    <target name="jsar-menu" depends="init, checkJsMenuBuild"
                unless="JsMenuBuild.notRequired"
                description="build js-archive file of JavaScript modules">
                <java fork="true" dir="${js}"
                        classname="com.cleancode.format.JSArchive">
                        <arg value="${jslib}/Util/Version.js"/>
                        <arg value="$jsmenu}/ccmenu.js"/>
                        <arg value="${jslib}/Util/NavKeys.js"/>
                </java>
    </target>


On Mon, 24 Jan 2005 09:37:55 -0600, Dominique Devienne <[EMAIL PROTECTED]> wrote:

From: michael sorens [mailto:[EMAIL PROTECTED]

I want to run a java task with a specific list of file names as
command-
line arguments (typically <arg value="..."> for each file), but I also
want to run a <uptodate> check with a fileset that is precisely the
same
list of files. How can this be done without having to enumerate the
same
list in two places?

If your <arg value="..."> is in fact <arg value="filename">, as opposed to <arg value="-someoption filename">, then <apply parallel="true"> should do the trick.

If you'd post a short example with say three files of the Ant code where
you'd like to avoid duplication you describe, maybe you'd get a more
definite answer as to whether it's easy or possible to achieve ;-) --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to