You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by prabhakar chaganti <pr...@chaganti.net> on 2001/08/10 15:16:42 UTC
Nested Exception while creating a jarfile
All:
I am trying to create a jar file after doing a get from VSS. The jar
target by itself seems to work fine. However, when I use it after a
"vssget" and "javac", it gives the following error message (it creates
the jar file in the right place though!):
-----------------------------------------------------------------
---------
Problem creating jar: C:\stage\bin\app.jar (Access is denied)
--- Nested Exception ---
java.io.FileNotFoundException: C:\stage\bin\app.jar (Access
is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
at java.io.FileOutputStream.<init>(FileOutputStream.java:132)
at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:172)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at
org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
-----------------------------------------------------------------
---------
Here is the jar fragment that I am using:
<target name="jar">
<jar jarfile="${root.dir}/bin/app.jar"
basedir="${build.classes}"
excludes="com/app/tests/**"
/>
</target>
I am using ant 1.3, JDK 1.3.1 on a Win2K.
Any info really appreciated.
thanks
prabhakar chaganti
===================================================================
EASY and FREE access to your email anywhere: http://Mailreader.com/
===================================================================