ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "michael sorens" <msor...@myrealbox.com>
Subject Re: up-to-date-ness and cmd-line args
Date Mon, 24 Jan 2005 15:48:55 GMT
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 <DDevienne@lgc.com> wrote:

>> From: michael sorens [mailto:msorens@myrealbox.com]
>>
>> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>



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


Mime
View raw message