Assuming you have a zip archive called "archive.zip", and you want to extract its contents in the same directory:
main.m255 chars9 lines
Note that the password (pwd
) parameter is optional and refers to the password of the zip archive, if there is any. If not, you can omit it:
main.m18 chars2 lines
Also, make sure that the "ant.jar" and "ant-launcher.jar" files, which are used by the "org.apache.tools.zip.ZipFile" class, are present in the Java classpath. You can add them using javaaddpath
command:
main.m73 chars3 lines
gistlibby LogSnag