[
https://issues.jboss.org/browse/JBIDE-24380?page=com.atlassian.jira.plugi...
]
Nick Boldt commented on JBIDE-24380:
------------------------------------
If you forget to set these variables...
{code}
-Djbosstools.test.jre.5=/path/to/jdk5/or/equivalent
-Djbosstools.test.jre.6=/path/to/jdk6/or/equivalent
-Djbosstools.test.jre.7=/path/to/jdk7/or/equivalent
-Djbosstools.test.jre.8=/path/to/jdk8/or/equivalent
{code}
... on commandline, you get test failures like this:
{code}
[ERROR] com.sun.tools.javac.Main is not available in the classpath, requires Suns JDK
version 5.0 or latter.
unknown location
compilation failed, errors should have been reported{code}
... buried inside a
*jbosstools-webservices/tests/org.jboss.tools.ws.creation.core.test/target/work/data/.metadata/.log*
file.
So by defaulting to JAVA_HOME (which is likely Sun or Open JDK 8), you at least get the
tests to succeed.
Surely that's a good thing?
new default in parent pom: set jbosstools.test.jre.* = ${JAVA_HOME}
-------------------------------------------------------------------
Key: JBIDE-24380
URL:
https://issues.jboss.org/browse/JBIDE-24380
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: build
Affects Versions: 4.5.0.AM1
Reporter: Nick Boldt
Fix For: 4.5.0.AM1
In order to be able to more easily run server and webservices projects' tests, I
suggest we set default values in parent pom:
{code}
- <jbosstools.test.jre.5></jbosstools.test.jre.5>
- <jbosstools.test.jre.6></jbosstools.test.jre.6>
- <jbosstools.test.jre.7></jbosstools.test.jre.7>
- <jbosstools.test.jre.8></jbosstools.test.jre.8>
+ <jbosstools.test.jre.5>${JAVA_HOME}</jbosstools.test.jre.5>
+ <jbosstools.test.jre.6>${JAVA_HOME}</jbosstools.test.jre.6>
+ <jbosstools.test.jre.7>${JAVA_HOME}</jbosstools.test.jre.7>
+ <jbosstools.test.jre.8>${JAVA_HOME}</jbosstools.test.jre.8>
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)