Zipping directory in new folder
up vote
0
down vote
favorite
So my apache ant code does the following -downloads a zip called "test.zip" and apache ant unzips it into "C:Documentsfiles" . The "test.zip" consists of 1 folder called "cars" and again with apache ant I am zipping the content of "C:Documentsfiles" folder into a zip called "output.zip " -the zip has 1 folder "cars" with files from "C:Documentsfiles".
Now I see that the "test.zip" structure has changed and it is - "stuffinfo" and in the "info" folder all files are exactly the same as the files before in the "cars" folder.I am extracting again in "C:Documentsfiles" and my goal is to get all the files from the extracted directory - "C:Documentsfilesstuffinfo" and put them in a zip called again "output.zip" which has 1 folder called "cars" and in there are all files from
"C:Documentsfilesstuffinfo".Is this possbile by editing the current apache ant code without making new folders cutting files and then zip them so I can preserve the old structure?
apache ant
add a comment |
up vote
0
down vote
favorite
So my apache ant code does the following -downloads a zip called "test.zip" and apache ant unzips it into "C:Documentsfiles" . The "test.zip" consists of 1 folder called "cars" and again with apache ant I am zipping the content of "C:Documentsfiles" folder into a zip called "output.zip " -the zip has 1 folder "cars" with files from "C:Documentsfiles".
Now I see that the "test.zip" structure has changed and it is - "stuffinfo" and in the "info" folder all files are exactly the same as the files before in the "cars" folder.I am extracting again in "C:Documentsfiles" and my goal is to get all the files from the extracted directory - "C:Documentsfilesstuffinfo" and put them in a zip called again "output.zip" which has 1 folder called "cars" and in there are all files from
"C:Documentsfilesstuffinfo".Is this possbile by editing the current apache ant code without making new folders cutting files and then zip them so I can preserve the old structure?
apache ant
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So my apache ant code does the following -downloads a zip called "test.zip" and apache ant unzips it into "C:Documentsfiles" . The "test.zip" consists of 1 folder called "cars" and again with apache ant I am zipping the content of "C:Documentsfiles" folder into a zip called "output.zip " -the zip has 1 folder "cars" with files from "C:Documentsfiles".
Now I see that the "test.zip" structure has changed and it is - "stuffinfo" and in the "info" folder all files are exactly the same as the files before in the "cars" folder.I am extracting again in "C:Documentsfiles" and my goal is to get all the files from the extracted directory - "C:Documentsfilesstuffinfo" and put them in a zip called again "output.zip" which has 1 folder called "cars" and in there are all files from
"C:Documentsfilesstuffinfo".Is this possbile by editing the current apache ant code without making new folders cutting files and then zip them so I can preserve the old structure?
apache ant
So my apache ant code does the following -downloads a zip called "test.zip" and apache ant unzips it into "C:Documentsfiles" . The "test.zip" consists of 1 folder called "cars" and again with apache ant I am zipping the content of "C:Documentsfiles" folder into a zip called "output.zip " -the zip has 1 folder "cars" with files from "C:Documentsfiles".
Now I see that the "test.zip" structure has changed and it is - "stuffinfo" and in the "info" folder all files are exactly the same as the files before in the "cars" folder.I am extracting again in "C:Documentsfiles" and my goal is to get all the files from the extracted directory - "C:Documentsfilesstuffinfo" and put them in a zip called again "output.zip" which has 1 folder called "cars" and in there are all files from
"C:Documentsfilesstuffinfo".Is this possbile by editing the current apache ant code without making new folders cutting files and then zip them so I can preserve the old structure?
apache ant
apache ant
asked Nov 8 at 22:07
Gordon
85
85
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53216871%2fzipping-directory-in-new-folder%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown