| Author |
ANT_ i am looking ANT scripts help
|
kumar hai
Greenhorn
Joined: Oct 12, 2009
Posts: 26
|
|
Hi.,
I wrote some small ANT scripts.
while compile for .jar file using java file.i got some error ....please any one help with solution
C:\ant>ant -f test-compile.xml
Buildfile: test-compile.xml
clean:
[delete] Deleting directory C:\ant\build
compile:
[mkdir] Created dir: C:\ant\build\classes
[javac] Compiling 1 source file to C:\ant\build\classes
[javac] error: error reading C:\ant\lib\maven-artifact-ant-2.0.4-dep.jar; er
ror in opening zip file
[javac] 1 error
BUILD FAILED
C:\ant\test-compile.xml:21: Compile failed; see the compiler error output for de
tails.
Total time: 0 seconds
below i mention my scripts
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
here only i got error...please help ....
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26184
|
|
Jumar
Welcome to JavaRanch!
Let's start with the what the error message says. Can you unjar/unzip "C:\ant\lib\maven-artifact-ant-2.0.4-dep.jar"?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
kumar hai
Greenhorn
Joined: Oct 12, 2009
Posts: 26
|
|
HI...I just tried with sample java file....
i will send my scripts. & i already send my error details.
while compiling java file i am getting that error...
error:
compile:
[mkdir] Created dir: C:\ant\build\classes
[javac] Compiling 1 source file to C:\ant\build\classes
[javac] error: error reading C:\ant\lib\maven-artifact-ant-2.0.4-dep.jar; er
ror in opening zip file
[javac] 1 error
----------------------------------------
i don't know about that error...
i am using ANT - version & java
Apache Ant version 1.7.1 compiled on June 27 2008
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
-------------------------------
Please let me know if anything...
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26184
|
|
|
I've added code tags to your post. I don't see an answer to my question though - did you try unzipping the file in the error message? You could use WinZip or the jar command to do so.
|
 |
nitin pokhriyal
Ranch Hand
Joined: May 19, 2005
Posts: 263
|
|
|
looks to me that maven-artifact-ant-2.0.4-dep.jar file is corrupt.
|
 |
kumar hai
Greenhorn
Joined: Oct 12, 2009
Posts: 26
|
|
Hi,
thanks for you reply....my issue resolved ....
Thanks
|
 |
 |
|
|
subject: ANT_ i am looking ANT scripts help
|
|
|