You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by jm...@apache.org on 2003/12/05 16:53:00 UTC
cvs commit: ws-wsrp4j/build build.xml
jmacna 2003/12/05 07:53:00
Modified: build build.xml
Log:
Removed javadoc from all target so gump will run faster.
Added compiler check for eclipse.
Revision Changes Path
1.6 +13 -6 ws-wsrp4j/build/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/ws-wsrp4j/build/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- build.xml 1 Nov 2003 17:27:10 -0000 1.5
+++ build.xml 5 Dec 2003 15:53:00 -0000 1.6
@@ -17,8 +17,6 @@
<property name="webapp.name" value="wsrp"/>
<property name="src.java.dir" value="../src"/>
-
- <property name="build.compiler" value="classic"/>
<property name="build.dir" value="../bin"/>
<property name="build.dest" value="${build.dir}/classes"/>
<property name="build.lib.dest" value="${build.dir}/lib"/>
@@ -75,11 +73,20 @@
<include name="**/*.jar"/>
</fileset>
</path>
+ <target name="compiler.classic" unless="eclipse.running">
+ <property name="build.compiler" value="classic"/>
+ </target>
+
+ <target name="compiler.eclipse" depends="compiler.classic" if="eclipse.running">
+ <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
+ </target>
+
<!-- ================================================================== -->
<!-- Prints useful build environment values -->
<!-- ================================================================== -->
- <target name="env">
+ <target name="env" depends="compiler.eclipse">
+
<echo message="build.compiler = ${build.compiler}"/>
<echo message="java.home = ${java.home}"/>
<echo message="user.home = ${user.home}"/>
@@ -173,7 +180,7 @@
<!-- Compiles the source directory -->
<!-- ================================================================== -->
<target name="compile"
- depends="prepare">
+ depends="prepare,compiler.eclipse">
<javac srcdir="${src.java.dir}"
destdir="${build.dest}"
excludes="**/package.html"
@@ -464,8 +471,8 @@
<!-- =================================================================== -->
<!-- Build wsrp4j, portlets and JavaDoc -->
<!-- =================================================================== -->
- <target name="all" depends="build, build_portlets, javadocs"
- description="Do everything: build code, portlets and javadocs"
+ <target name="all" depends="build, build_portlets"
+ description="Do everything: build code, portlets"
/>
<!-- ================================================================== -->