You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/09/19 10:56:52 UTC
svn commit: r1387497 - /pivot/trunk/build.xml
Author: smartini
Date: Wed Sep 19 08:56:51 2012
New Revision: 1387497
URL: http://svn.apache.org/viewvc?rev=1387497&view=rev
Log:
PIVOT-872, put classpath from environment (that now has to be defined with reference to right jars) before the classpath of all jre/lib jars, because since Java 7 Update 7 the JavaFX Runtime (bundled with the jre now) otherwise is used but it contains some classes not-so-good for us.
Modified:
pivot/trunk/build.xml
Modified: pivot/trunk/build.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/build.xml?rev=1387497&r1=1387496&r2=1387497&view=diff
==============================================================================
--- pivot/trunk/build.xml (original)
+++ pivot/trunk/build.xml Wed Sep 19 08:56:51 2012
@@ -17,10 +17,22 @@ limitations under the License.
-->
<project name="pivot" default="environment-info"
- xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+ xmlns:artifact="antlib:org.apache.maven.artifact.ant"
+>
+ <!-- Classpath-related properties -->
+ <property environment="env"/>
+ <path id="classpath.env">
+ <pathelement location="${env.CLASSPATH}"/>
+ </path>
<path id="classpath.javalib">
<fileset dir="${java.home}/lib" includes="**/*.jar"/>
</path>
+ <property name="classpath_env" refid="classpath.env"/>
+ <property name="classpath_javalib" refid="classpath.javalib"/>
+ <path id="classpath.general">
+ <pathelement path="${classpath_env}/"/>
+ <pathelement path="${classpath_javalib}"/>
+ </path>
<!-- Properties that affect the directories that are created as part of the build -->
<property name="folder.src" value="src"/>
@@ -120,7 +132,7 @@ limitations under the License.
<condition>
<not>
<available classname="org.junit.Test">
- <classpath refid="classpath.javalib" />
+ <classpath refid="classpath.general" />
</available>
</not>
</condition>
@@ -134,8 +146,8 @@ limitations under the License.
<mkdir dir="@{project}/${folder.bin}"/>
<javac destDir="@{project}/${folder.bin}"
- includejavaruntime="true"
- includeantruntime="true"
+ includejavaruntime="no"
+ includeantruntime="no"
deprecation="${compiler.deprecation}"
debug="${compiler.debug}"
source="${compiler.source}"
@@ -151,7 +163,7 @@ limitations under the License.
</src>
<compilerarg line="${compiler.arg}"/>
<classpath>
- <path refid="classpath.javalib"/>
+ <path refid="classpath.general"/>
<dirset dir="${basedir}" includes="**/${folder.bin}"/>
<fileset dir="@{project}" includes="lib/**/*.jar"/>
<project-lib/>
@@ -173,7 +185,7 @@ limitations under the License.
<junit fork="true">
<classpath>
- <path refid="classpath.javalib"/>
+ <path refid="classpath.general"/>
<dirset dir="${basedir}" includes="**/${folder.bin}"/>
<dirset dir="@{project}" includes="test"/>
<fileset dir="@{project}" includes="lib/**/*.jar"/>
@@ -298,7 +310,7 @@ limitations under the License.
author="true" version="true" use="true"
classpath="${java.class.path}">
<classpath>
- <path refid="classpath.javalib"/>
+ <path refid="classpath.general"/>
<fileset dir="web-server/lib" includes="**/*.jar"/>
<fileset dir="wtk/lib" includes="**/*.jar"/>
@@ -368,8 +380,8 @@ limitations under the License.
<target name="environment-classpath" description="Gives some info on Environment and classpath"
depends="environment-info"
>
- <property name="classpath" refid="classpath.javalib"/>
- <echo message="Using Classpath: ${classpath}"/>
+ <echo message="Classpath from env vars: ${classpath_env}"/>
+ <echo message="Classpath from Java lib folder: ${classpath_javalib}"/>
</target>
@@ -459,7 +471,7 @@ limitations under the License.
author="true" version="true" use="true"
classpath="${java.class.path}">
<classpath>
- <path refid="classpath.javalib"/>
+ <path refid="classpath.general"/>
<fileset dir="web-server/lib" includes="**/*.jar"/>
<fileset dir="wtk/lib" includes="**/*.jar"/>
</classpath>
@@ -522,7 +534,7 @@ limitations under the License.
<condition>
<not>
<available classname="netscape.javascript.JSObject"
- classpathref="classpath.javalib"/>
+ classpathref="classpath.general"/>
</not>
</condition>
<![CDATA[