You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Karr, David" <da...@wamu.net> on 2008/02/16 23:48:48 UTC

Build zip file with manifest listing files and perforce revision numbers?

I think I'm going to need to build a task that assembles a zip file from
a set of files, where the MANIFEST file has one key/value pair for each
file put into the zip file, where the value is the Perforce revision
number for the file in the current view.  I could easily do something
like this with Perl, but I'm not sure how to do it with pure Ant (not
counting any Ant task libraries I put into the mix).

Anyone have any suggestions on how to accomplish this?

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


AW: Build zip file with manifest listing files and perforce revision numbers?

Posted by Ja...@rzf.fin-nrw.de.
Not tested, but maybe something like

<concat destfile="versions.txt">
    <zipfileset src="a.zip" includes="version.txt"/>
    <zipfileset src="b.zip" includes="version.txt"/>
    <zipfileset src="c.zip" includes="version.txt"/>
</concat> 


Maybe you can bundle all <zipfileset>s to one construct ...


Jan

> -----Ursprüngliche Nachricht-----
> Von: Karr, David [mailto:david.karr@wamu.net] 
> Gesendet: Samstag, 16. Februar 2008 23:49
> An: Ant Users List
> Betreff: Build zip file with manifest listing files and 
> perforce revision numbers?
> 
> I think I'm going to need to build a task that assembles a 
> zip file from
> a set of files, where the MANIFEST file has one key/value 
> pair for each
> file put into the zip file, where the value is the Perforce revision
> number for the file in the current view.  I could easily do something
> like this with Perl, but I'm not sure how to do it with pure Ant (not
> counting any Ant task libraries I put into the mix).
> 
> Anyone have any suggestions on how to accomplish this?
> 
> ---------------------------------------------------------------------
> 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