ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <>
Subject Re: Trouble with <copy> and <DirSet>
Date Fri, 10 Sep 2010 18:52:06 GMT
Aaron Mackley schrieb am 10.09.2010 um 13:06 (-0500):
> With a few adjustments, I got it to work correctly. The following code
> copied the one file (prefs.js) to the randomly generated folder
> location: (I've added some comments for anyone who follows this thread
> later.)

Cool. I copied this, and produced another (otherwise pointless) sample
for illustrative and archival purposes.

  <property environment="env"/>
  <property name="firefox.dir"

  <!-- Random dir where firefox puts the user profile. -->
  <path id="path.firefox.default.profile">
    <dirset dir="${firefox.dir}">
      <include name="**/*.default" />

  <!-- This is the trick to get the string
       value of the @id into a property.   -->

  <property name="firefox.default.profile.dir"
    location="${toString:path.firefox.default.profile}" />


Michael Ludwig

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message