Eclipse 3.1 and ANT script [message #218671] |
Thu, 10 November 2005 16:32  |
Eclipse User |
|
|
|
Hi,
I have an ANT script which runs well on Eclipse 3.0.
I migrate it to Eclipse 3.1 this week together with the java project,
(no source change, just import the project in 3.1 workspace from CVS
repository.)
The ANT script does not work well in 3.1.
1. Run ANT in the same JRE as the workspace
1.1 use <exec executable="javasigner.exe"> instead of <signjar>
No verbose messages for <jar> task.
Execute failed: java.io.IOException: CreateProcess: jarsigner.exe
-storepass password <jarfile> <alias> error=2
1.2 use <signjar> instead of <exec executable="javasigner.exe">
Lots of verbose messages for <jar> task.
Execute failed: java.io.IOException: CreateProcess: jarsigner.exe
-storepass password <jarfile> <alias> error=2
2. Run ANT in separate JRE (J2SDK 1.4.2_05, I have only this installed for
the workspace anyway.)
First of all, if I have JRE 1.5 installed on my computer, the 1.5
rt.jar (not the 1.4.2 rt.jar !) will be picked for compilation. I only
installed 1.4.2 JRE for the workspace, and JAVA_HOME points to J2SDK 1.4.2.
2.1 use <exec executable="javasigner.exe"> instead of <signjar>
No verbose messages for <jar> task.
build succeeded.
2.2 use <signjar> instead of <exec executable="javasigner.exe">
Lots of verbose messages for <jar> task.
jarsigner: unable to open jar file: <path to the jar file>
(Checked and the file is there.)
I want run ANT in the same JRE as the workspace so that I do not need to
add serialVersionUID to every serializable class if I want to debug in
Eclipse.
Please help.
Thanks,
Harry
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03716 seconds