Source level problem running Ant script: /examples/build.xml
------------------------------------------------------------
Key: JBPM-2618
URL:
https://jira.jboss.org/jira/browse/JBPM-2618
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jBPM 4.0
Environment: Linux
HotSpot 1.6.0_14
Reporter: Rafael Liu
Priority: Minor
Trying to run:
ant demo.setup
Gives a lot of exceptions related to generics:
[javac] assertEquals(new ArrayList<Job>(), new ArrayList<Job>(jobs));
[javac] ^^^
[javac] Syntax error, parameterized types are only available if source level is 1.5
The problem is that the -source option vary from JVM from JVM, so the target examples.jar
in /examples/build.xml should define a source attribute in javac:
<javac srcdir="${jbpm.home}/examples/src" source="1.5"
destdir="${jbpm.home}/examples/target/classes"
classpathref="jbpm.libs.incl.dependencies" />
That way we don't get tied to JVM's specifics.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira