Hi Shelly,
The problem here is that you're actually trying to extract
a directory (${Release.Path}) instead of a zip
file.
I did modify the behaviour of the <unzip> task in cvs
to provide a more meaningful error message.
Gert
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shelly Midha
Sent: maandag 16 mei 2005 13:31
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] error in <unzip> taskI 'm geeting the an error while running the following target:***************************************************************************************************
<target name="release">
<call target="pre-release"/>
<if test = "${string::contains(string::to-lower(Release.From), 'vss')==true}" >
<echo message="calling release from vss"/>
<call target="vss-get-build-package-for-release"/>
<echo message="${VSS.ProjectPath}/Build/${Build.Package.Name}"/>
<unzip zipfile="${Release.Path}" todir="${Release.Path}"/>
</if>
</target>
<target name="pre-release">
<if test="${directory::exists(Release.Path)}">
<echo message="Path found"/>
</if>
</target>
***************************************************************************************************Error:Buildfile: file:///E:/Projects/EASS/Frameworks/BuildAndRelease/Source/NANTScript
/buildcenter.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: release
release:
pre-release:[echo] Path found
[echo] calling release from vssvss-get-build-package-for-release:[vssget] Getting '$/EASS/EAI/Build/Build_051120051725.zip' to '\\delminfraapp
\release'...
[echo] $/EASS/EAI/Build/Build_051120051725.zipBUILD FAILEDINTERNAL ERRORSystem.UnauthorizedAccessException: Access to the path "\\delminfraapp\release"
is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFr
omProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share)
at System.IO.FileInfo.OpenRead()
at NAnt.Compression.Tasks.UnZipTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.Tasks.IfTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()Please send bug report to nant-developers@lists.sourceforge.net.Total time: 0.3 seconds.**************************************************************************************************************Error message itself says send a bug report to the developers discussion forum.I'm using nant-0.85-rc3.Any pointers to workaround the same will be helpful.ThanksShelly