ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raster3 <crs...@yahoo.co.in>
Subject Extending unzip
Date Mon, 31 Dec 2007 04:22:07 GMT

Hi,

How do I extend the unzip task?

Any idea whats the correct way of doing this? All I need to do is change the
destination directory based on the contents of the zip file.

I tried creating a class that extends org.apache.tools.ant.taskdefs.Untar 
and  then implemented protected void expandFile(FileUtils fileUtils, File
srcF, File dir) method by modifying dir based on the contents of the srcF
zip file. 

But even if I just invoke super.expandFile(fileUtils,  srcF,  dir) and dont
do any modifications I get an error when it expands the file to a path
somehow suffixed by PK. .

I am thinking that maybe its not Untar which I should extend.



-- 
View this message in context: http://www.nabble.com/Extending-unzip-tp14554183p14554183.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message