building hello example throws RuntimeException.
build log below
Buildfile: hello.xml
init:
build:
[vainstall] [HOME]hellotest
[vainstall] HOME
[vainstall] Compressing files...
[vainstall] dir=/
[vainstall] dir=doc/
[vainstall] dir=doc\images/
[vainstall] dir=java/
[vainstall] file=doc\hello.txt
[vainstall] file=doc\images\example.gif
[vainstall] file=doc\images\hello.gif
[vainstall] file=doc\license.txt
[vainstall] file=java\hello.class
[vainstall] file=java\hello.java
[vainstall] Creating jar file...
[vainstall] java target
[vainstall] generating install class (first pass)...
[vainstall] generating install class code
[vainstall] appending classloader
[vainstall] CLASSLOADER
= /com/memoire/vainstall/VAClassLoader.class
[vainstall] compiling install class...
[vainstall] --- start javac ---
[vainstall] helloinstall.java:303: cannot resolve symbol
[vainstall] symbol : variable
LICENSE_KEY_SUPPORT_NAME
[vainstall] location: class helloinstall
[vainstall] LICENSE_KEY_SUPPORT_NAME,
[vainstall] ^
[vainstall] 1 error
[vainstall] --- end javac ---
BUILD FAILED
java.lang.RuntimeException: abnormal exit
at com.memoire.vainstall.ant.VAInstallTask.compile
(Unknown Source)
at com.memoire.vainstall.ant.VAInstallTask.start
(Unknown Source)
at com.memoire.vainstall.ant.VAInstallTask.execute
(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:166)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute
(Target.java:309)
at org.apache.tools.ant.Target.performTasks
(Target.java:336)
at org.apache.tools.ant.Project.executeTarget
(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets
(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Total time: 8 seconds
java.lang.RuntimeException: abnormal exit
at com.memoire.vainstall.ant.VAInstallTask.compile
(Unknown Source)
at com.memoire.vainstall.ant.VAInstallTask.start
(Unknown Source)
at com.memoire.vainstall.ant.VAInstallTask.execute
(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute
(UnknownElement.java:166)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute
(Target.java:309)
at org.apache.tools.ant.Target.performTasks
(Target.java:336)
at org.apache.tools.ant.Project.executeTarget
(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets
(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
abnormal exit
C:\vai\examples\anttask>
Logged In: YES
user_id=864053
The error occurs also if I run the build.sh in the
examples/hello directory. It seems to have something to do
with Install.waitpl containing a reference to a variable
which does not always exist.
Logged In: YES
user_id=278878
I am seeing something similar with ant.
[vainstall] java target
[vainstall] generating install class (first pass)...
[vainstall] generating install class code
[vainstall] appending classloader
[vainstall] CLASSLOADER =
/com/memoire/vainstall/VAClassLoader.class
[vainstall] compiling install class...
[vainstall] --- start javac ---
[vainstall] JRadioInstall.java:304: cannot resolve symbol
[vainstall] symbol : variable CREATE_UNINSTALL_SHORTCUT
[vainstall] location: class JRadioInstall
[vainstall] new Boolean(CREATE_UNINSTALL_SHORTCUT),
[vainstall] ^
[vainstall] Note: JRadioInstall.java uses or overrides a
deprecated API.
[vainstall] Note: Recompile with -deprecation for details.
[vainstall] 1 error
[vainstall] --- end javac ---
BUILD FAILED
Logged In: YES
user_id=414768
I have the same problem:
[vainstall] testinstall.java:304: cannot resolve symbol
[vainstall] symbol : variable CREATE_UNINSTALL_SHORTCUT
[vainstall] location: class testinstall
[vainstall] new Boolean(CREATE_UNINSTALL_SHORTCUT),
Seems that the created file testinstall.java has an error :(
- Gaudenz
Logged In: YES
user_id=414768
The following workaround helped:
./main/com/memoire/vainstall/resources/Install.vaitpl:303:
new Boolean(false), //CREATE_UNINSTALL_SHORTCUT),
But now the build process hangs with these two last lines:
[vainstall] CLASSLOADER =
/com/memoire/vainstall/VAClassLoader.class
[vainstall] compiling install class...
The process table shows a javac process for a couple of
seconds, but then: silence...
Did the Ant integration ever work for anybody?!
- Gaudenz