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: How to delete files from a zip/jar?
Date Tue, 07 Dec 2004 15:51:29 GMT
I see, that inside a <*def> task and you┬┤ll get it.

Jan

> -----Urspr├╝ngliche Nachricht-----
> Von: Peter Reilly [mailto:peterreilly@apache.org]
> Gesendet am: Dienstag, 7. Dezember 2004 16:46
> An: Ant Users List
> Betreff: Re: AW: How to delete files from a zip/jar?
> 
> You could use shellscript from ant-contrib:
> 
> <project default="ls" xmlns:ac="antlib:net.sf.antcontrib">
>   <target name="ls">
>     <ac:shellscript shell="bash">
>       echo `ls -rtla`
>     </ac:shellscript>
>   </target>
> </project>
> 
> Peter
> Jan.Materne@rzf.fin-nrw.de wrote:
> 
> >>zip -d target.jar `jar -tf compare.jar | grep \.class`
> >>    
> >>
> >
> >Nice command :-)
> >But the 
> >    `jar -tf compare.jar | grep \.class`
> >is evaluated by the shell to get a fileset which is passed to
> >the zip command.
> >
> >So I think you have to split that command in two.
> >
> >
> >Jan
> >
> >  
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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