ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Ræder Clausen" <...@amplex.dk>
Subject Re: Enforce order in copying so that my overiding works correctly
Date Thu, 24 Jul 2008 12:08:25 GMT
On Thu, Jul 24, 2008 at 11:30 AM, Rebhan, Gilbert
<Gilbert.Rebhan@huk-coburg.de> wrote:
>
>
>
> -----Original Message-----
> From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de]
> Sent: Thursday, July 24, 2008 11:21 AM
> To: Ant Users List
> Subject: RE: Enforce order in copying so that my overiding works
> correctly
>
> /*
> [ ... ]
>
> see =
> http://ant.apache.org/manual/CoreTypes/resources.html#collection
>
> */
>
> P.S. :
>
> here are your set operations =
>
> http://ant.apache.org/manual/CoreTypes/resources.html#union
> http://ant.apache.org/manual/CoreTypes/resources.html#intersect
> http://ant.apache.org/manual/CoreTypes/resources.html#difference

Went through some permutations -- the docs are a bit scanty -- but
here's an example that works:

  <fileset id="a" dir="${dist}"><include name="ampcom.jar"/> </fileset>
  <fileset id="b" dir="${extlib}"><include name="ant.jar"/></fileset>
  <union id="ab">
    <fileset refid="a"/><fileset refid="b"/>
  </union>

  <target name="aTest">
    <copy todir="/tmp">
      <union refid="ab"/>
    </copy>
  </target>

Wish we were using Ant 1.7 generally, there's a number of places this
would come in handy.

-Lars

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


Mime
View raw message