Bugs item #2981389, was opened at 2010-04-02 18:25
Message generated for change (Comment added) made by fmhome
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2981389&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: fmhome (fmhome)
Assigned to: Nobody/Anonymous (nobody)
Summary: zip task should create a folder

Initial Comment:
The current zip task in Nant  v0.90

In the following example;
zipfile should create a folder structure ( ${root.dir}/${which.platform} ) with 
the zip file in that folder.
Currently, one has to use the mkdir task first to create the folder structure 
${root.dir}/${which.platform}

<zip zipfile="${root.dir}/${archive}/test.zip">
        <fileset basedir="${stage.dir}">
                <include name="**/**"/>
        </fileset>
</zip>

----------------------------------------------------------------------

>Comment By: fmhome (fmhome)
Date: 2010-04-05 09:17

Message:
Sorry for the confusion here...
Let me clarify this issue.

The issue is with zipfile attribute of zip task.
<zip zipfile="${root.dir}/${archive}/test.zip">

When the task is excuted, the task doesn't create the 
${root.dir}/${archive} folder structure and fail, unless the structure is
already there.
Sometime, users want to put the final zip file in a different folder.
Otherwise one has to use mkdir to create the dir structure first then call
the zip task.

IMO... This is an un-necesary additional step.

----------------------------------------------------------------------

Comment By: Dominik Guder (dogu)
Date: 2010-04-03 05:28

Message:
I know that this would be helpfull, but IMHO when you are zipping a folder
(in windows) with winzip when you won't get this main directory added to
zip.
But you might take a look into docu:
http://nant.sourceforge.net/release/latest/help/types/zipfileset.html
use 
<fileset basedir="${stage.dir}" prefix="${which.platform}"> to create your
toplevel directory
hth Dominik


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=2981389&group_id=31650

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to