Hello,
I downloaded the example jar file from the
http://izpack.org/downloads/ site, and I unzipped it. I'm trying to unpack one of the pack files, pack-Core from the resources/packs folder, and extract its contents into a new folder.
In UnpackFromFile, in main, we used a function, testUnpack( ) from AbstractFileUnpackerTest.java to try to unpack.
To run it, I'm using a java -jar command with two arguments (first: my source variable. the file to unpack, second: my target variable, my destination folder) using main( )'s String[ ] args array parameter.
Here's the command:
java -jar target/izpack-installer-5.2.0-SNAPSHOT-jar-with-dependencies.jar
"izpack\izpack-installer\src\main\java\com\izforge\izpack\installer\unpacker\resources\pack-Core"
"Desktop\unpackedPackFile"
My question is:
I have to extract everything from pack-Core's contents into a new separate folder, but it only accepts files. Is there a way to unpack pack-Core and get it's contents and put them in separate files, into a folder?