ant - Mozilla rhino not compiling -
I am trying to compile the 9c8bad6ec6d51a0abfb9f6e840e2dbec3e2fbcee of the Mozilla Rhino project to do some test on it.
I have cloned the repository on my server, and have checked the hash.
Then I compiled using ant, which returned errors of 128, 57 and 53 build.xml.
I do not have 100% to ensure that the line 127 does:
- & gt;
So I have commented on it for the time being.
For rows 53 and 57:
& lt; Target name = "compile-src" depend = "ready" & gt; & Lt; Ant dir = "/ home / dario / testEnv / 181834 / prefix / rhino" /> & Lt; - line 53 & lt; / Target & gt; & Lt; Target name = "compile-toolsrc" dependent = "ready" & gt; & Lt; Ant dir = "/ home / dario / testEnv / 181834 / prefix / rhino" /> & Lt; - line 57 & lt; / Target & gt;
They wanted to set the path to compile the path. They used to do something very dynamic primarily with some variables, but as I did not work, I changed it and wrote the actual path.
When I compile it does not make any errors, but it does not generate compiled classes.
Any thoughts?
This version of Rhino is ancient.
You can fix your problem using JDK version 1.4 to compile. The problem is that Rhino's version contains code that was incompatible with JDK 1.5 enhancements (in particular, it attempts to use enum
as a variable name).
Alternatively, patch the build.xml to specify the source version of 1.4 when compiling you on the appropriate javac
tasks.
And in reality, do you have a fresh version of Rhino?
Comments
Post a Comment