Author: jfrederic.clere(a)jboss.com
Date: 2011-08-17 03:27:50 -0400 (Wed, 17 Aug 2011)
New Revision: 1817
Modified:
trunk/build.properties.default
trunk/build.xml
Log:
Add jasper-jdt-src and use latest released eclipse.
Modified: trunk/build.properties.default
===================================================================
--- trunk/build.properties.default 2011-08-16 15:19:10 UTC (rev 1816)
+++ trunk/build.properties.default 2011-08-17 07:27:50 UTC (rev 1817)
@@ -35,9 +35,13 @@
# ----- Eclipse JDT, version 3.2 or later -----
jdt.home=${base.path}/plugins
jdt.lib=${jdt.home}
-jdt.jar=${jdt.lib}/org.eclipse.jdt.core_3.7.0.v_B35.jar
-jdt.loc=http://download.eclipse.org/eclipse/downloads/drops/S-3.7M5-201101272034/org.eclipse.jdt-3.7M5.zip
+jdt.jar=${jdt.lib}/org.eclipse.jdt.core_3.7.0.v_B61.jar
+jdt.loc=http://download.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/org.eclipse.jdt-3.7.zip
+jdt-src.home=${base.path}/eclipse/plugins
+jdt-src.lib=${jdt.home}
+jdt-src.loc=http://download.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/eclipse-sourceBuild-srcIncluded-3.7.zip
+
# ----- Dojo Toolkit (for test webapp) -----
dojo-js.home=${base.path}/dojo-release-1.4.3
dojo-js.loc=http://download.dojotoolkit.org/release-1.4.3/dojo-release-1....
Modified: trunk/build.xml
===================================================================
--- trunk/build.xml 2011-08-16 15:19:10 UTC (rev 1816)
+++ trunk/build.xml 2011-08-17 07:27:50 UTC (rev 1817)
@@ -40,6 +40,9 @@
<property name="jasper-jdt.home"
value="${base.path}/jbossweb-deps/jdt" />
<property name="jasper-jdt.jar"
value="${jasper-jdt.home}/jasper-jdt.jar"/>
+ <property name="jasper-jdt-src.home"
value="${base.path}/jbossweb-deps/jdt-src" />
+ <property name="jasper-jdt-src.jar"
value="${jasper-jdt-src.home}/jasper-jdt-src.jar"/>
+
<!-- Classpath -->
<path id="tomcat.classpath">
<fileset dir="${basedir}/lib">
@@ -348,6 +351,7 @@
</jar>
<copy file="${jasper-jdt.jar}" todir="${tomcat.jars}" />
+ <copy file="${jasper-jdt-src.jar}" todir="${tomcat.jars}" />
<!-- Create a source jar of the jbossweb/servlet classes -->
<jar destfile="${tomcat.jars}/jbossweb-src.jar"
index="true">
@@ -364,6 +368,7 @@
<target name="clean-depend"
description="Clean depend src components">
<delete dir="${jasper-jdt.home}"/>
+ <delete dir="${jasper-jdt-src.home}"/>
</target>
<target name="clean">
@@ -432,7 +437,6 @@
<!-- Build Jasper JDT bundle -->
<antcall target="downloadzip">
<param name="sourcefile" value="${jdt.loc}"/>
- <param name="destfile" value="${jdt.jar}"/>
<param name="destdir" value="${base.path}"/>
</antcall>
<mkdir dir="${jasper-jdt.home}"/>
@@ -440,6 +444,16 @@
<param name="basedir" value="${jasper-jdt.home}" />
</antcall>
+ <!-- Build Jasper JDT sources bundle -->
+ <antcall target="downloadzip">
+ <param name="sourcefile" value="${jdt-src.loc}"/>
+ <param name="destdir" value="${jasper-jdt-src.home}"/>
+ </antcall>
+ <mkdir dir="${jasper-jdt-src.home}"/>
+ <antcall target="build-jasper-jdt-src">
+ <param name="basedir" value="${jasper-jdt-src.home}" />
+ </antcall>
+
</target>
<target name="build-jasper-jdt">
@@ -453,6 +467,16 @@
</jar>
</target>
+ <target name="build-jasper-jdt-src">
+ <jar destfile="${jasper-jdt-src.jar}" index="true">
+ <fileset
dir="${jasper-jdt-src.home}/src/plugins/org.eclipse.jdt.core/model">
+ <include name="org/eclipse/jdt/core/compiler/**"/>
+ <include name="org/eclipse/jdt/internal/compiler/**"/>
+ <include
name="org/eclipse/jdt/internal/core/util/CommentRecorder*"/>
+ </fileset>
+ </jar>
+ </target>
+
<target name="tests">
<antcall target="downloadgz">
<param name="sourcefile" value="${dojo-js.loc}"/>