ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: copy
Date Thu, 18 Nov 2004 06:26:09 GMT
Use the nested
  <include name="sw/apache-ant-*/"/>
without the trailing *, so Ant knows that that is a directory and uses
the whole tree under that.

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Dave Bartmess [mailto:dingodave@edingo.net]
> Gesendet am: Donnerstag, 18. November 2004 02:07
> An: Ant Users List
> Betreff: Re: copy
> 
> You should be able to use the include nested element to do this like:
> 
>     <move todir="${maven.dist.src.assembly.dir}/sw/ant"
> overwrite="true">
>       <fileset dir="${maven.dist.src.assembly.dir}">
>          <include name="sw/apache-ant-*/*"
>       </fileset>
>     </move>
> 
> On Wed, 2004-11-17 at 19:09 +0100, Franz-Josef Herpers wrote:
> > Hi *,
> > 
> > Is it possible with ant to copy or move files/dir from a 
> directory which 
> > name I don't know exactly. Something like:
> > 
> >     <move todir="${maven.dist.src.assembly.dir}/sw/ant" 
> overwrite="true">
> >       <fileset 
> dir="${maven.dist.src.assembly.dir}/sw/apache-ant-*/">
> >         <include name="*/**"/>
> >       </fileset>
> >     </move>
> > 
> > instead of
> > 
> >     <move todir="${maven.dist.src.assembly.dir}/sw/ant" 
> overwrite="true">
> >       <fileset 
> dir="${maven.dist.src.assembly.dir}/sw/apache-ant-1.6.2/">
> >         <include name="*/**"/>
> >       </fileset>
> >     </move>
> > 
> > I'm not able to find a solution.
> > 
> > As you probably will see, I want to avoid the reference to 
> a version 
> > number which can change. But I don't want to change the 
> build file every 
> > time the version number changes.
> > 
> > Any hints would be appreciated.
> > 
> > Regards
> > Franz
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> > 
> -- 
> David A. Bartmess
> Software Configuration Manager / Sr. Software Developer
> eDingo Enterprises
> http://edingo.net
> _________________________________________________________________
> jSyncManager Development Team (http://www.jsyncmanager.org)
> jSyncManager Email List
> (https://lists.sourceforge.net/lists/listinfo/jsyncmanager-devel)
>  
>  But one should not forget that money can buy a bed but not sleep, 
>  finery but not beauty, a house but not a home, 
>  medicine but not health, luxuries but not culture, 
>  sex but not love, and amusements but not happiness.
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message