Yes, I looked in the manual. For those of us not intimately familiar with every 
detail of ant,
finding things in the manual is quite a challenge. So I typically start with a 
plain file search.
And my file search turned out only the single reference I mentioned, because I searched for 
"<apply>" not for "apply".
Now that you've shown me where to find the manual page, that does help.


On Mon, 24 Jan 2005 10:03:32 -0600, Dominique Devienne <[EMAIL PROTECTED]> wrote:

From: michael sorens [mailto:[EMAIL PROTECTED]

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

Well, <apply> has been a core ant task for a long time. Have you looked into the manual? ;-)

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"/>
                                       ^^^^^^^^^
This looks wrong. The <include> pattern should be within the ${jslib}
directory.

<include name="$jsmenu}/ccmenu.js"/>

And if you ${jsmenu} (you're missing the opening brace) in not within ${jslib}, you'll never select it.

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

Use either <apply parallel="true">, which BTW has some built-in Timestamp checking abilities which would remove the need for the Separate <uptodate>, or use <pathConvert> to morph your <fileset> into a property you'd pass in to your <java> with <arg line="">.

I hope this helps. --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