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: AW: AW: Easier Way To Check and Install jars
Date Tue, 08 Jan 2008 08:03:39 GMT
I think you have to use a nested <mapper>.
See the manual ...

Jan 

> -----Urspr√ľngliche Nachricht-----
> Von: Francisco Tolmasky [mailto:tolmasky@gmail.com] 
> Gesendet: Dienstag, 8. Januar 2008 07:43
> An: Ant Users List
> Betreff: Re: AW: AW: Easier Way To Check and Install jars
> 
> No, I want the opposite.  If there is *any* file already there with  
> the same name, regardless of when it was created, DONT copy it.
> 
> On Jan 7, 2008, at 10:22 PM, <Jan.Materne@rzf.fin-nrw.de> wrote:
> 
> > <copy file="a" tofile="b"> copies "a" to "b" only if
> > - "a" is newer than "b" or
> > - "b" is not present.
> >
> > If you want that "a" should always be copied, set "overwrite"  
> > attribute to true.
> > See manual::CoreTasks::copy
> >
> >
> > Jan
> >
> >
> >
> >> -----Urspr√ľngliche Nachricht-----
> >> Von: Francisco Tolmasky [mailto:tolmasky@gmail.com]
> >> Gesendet: Dienstag, 8. Januar 2008 07:13
> >> An: Ant Users List
> >> Betreff: Re: AW: Easier Way To Check and Install jars
> >>
> >> Is there a way to have copy not copy regardless of whether
> >> there is a
> >> newer or older version already there?
> >>
> >> Francisco
> >>
> >> On Jan 7, 2008, at 10:05 PM, <Jan.Materne@rzf.fin-nrw.de> wrote:
> >>>
> >>> Easier would be just to do a
> >>>
> >>>   <copy todir="/usr/share/ant/lib">
> >>>     <fileset dir="."
> >>> includes="bsf.jar,commons-logging-1.1.jar,js.jar"/>	
> >>>   </copy>
> >>>
> >>> <copy> would check if the target file exists or is older than the
> >>> copied
> >>> file
> >>> and skip copying if not.
> >>>
> >>> You dont have to copy the ant-apache-bsf-1.7.0.jar as it should be
> >>> present
> >>> because it's part of the Ant distro.
> >>>
> >>>
> >>>
> >>> Much more elegant would be using Ivy ... (I hope someone
> >> jumps in here
> >>> ;)
> >>>
> >>>
> >>> Jan
> >>>
> >>>
> >> 
> ---------------------------------------------------------------------
> >>> 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
> >>
> >>
> >
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 

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


Mime
View raw message