Build file changes to create gwt-bikeshed.jar that can be used as an overlay
jar. Not included in dist.
Patch by: amitmanjhi
Review by: rjrjr (desk review), fabbott (tbr)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7860 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/bikeshed/build.xml b/bikeshed/build.xml
index 03ee8ef..92ddef0 100644
--- a/bikeshed/build.xml
+++ b/bikeshed/build.xml
@@ -5,6 +5,9 @@
<import file="${gwt.root}/common.ant.xml" />
+ <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" />
+ <property.ensure name="gwt.user.jar" location="${gwt.build.lib}/gwt-user.jar" />
+
<target name="checkstyle" description="Static analysis of source">
<gwt.checkstyle>
<fileset dir="src" />
@@ -16,4 +19,25 @@
</fileset>
</gwt.checkstyle.tests>
</target>
+
+ <target name="compile" description="Compile all class files"
+ unless="compile.complete">
+ <mkdir dir="${javac.out}" />
+ <gwt.javac excludes="**/sample/**">
+ <classpath>
+ <pathelement location="${gwt.dev.jar}" />
+ <pathelement location="${gwt.user.jar}" />
+ </classpath>
+ </gwt.javac>
+ </target>
+
+ <target name="build" depends="compile"
+ description="Build and package this project">
+ <mkdir dir="${gwt.build.lib}" />
+ <gwt.jar>
+ <fileset dir="src" excludes="**/sample/**" />
+ <fileset dir="${javac.out}" />
+ </gwt.jar>
+ </target>
+
</project>
diff --git a/build.xml b/build.xml
index 4003be4..60b4876 100755
--- a/build.xml
+++ b/build.xml
@@ -37,6 +37,7 @@
description="[action] Minimal one-platform devel build, without distro packaging">
<call-subproject subproject="dev" subtarget="build" />
<call-subproject subproject="user" subtarget="build" />
+ <call-subproject subproject="bikeshed" subtarget="build" />
<call-subproject subproject="servlet" subtarget="build" />
<call-subproject subproject="jni" subtarget="build" />
</target>
@@ -59,6 +60,12 @@
<gwt.ant dir="user" />
</target>
+ <target name="bikeshed" description="[subdir] Builds (or runs ${target} if set) only the bikeshed library">
+ <call-subproject subproject="dev" subtarget="build"/>
+ <call-subproject subproject="user" subtarget="build"/>
+ <gwt.ant dir="bikeshed" />
+ </target>
+
<target name="tools" description="[subdir] Builds (or runs ${target} if set) only the tools">
<call-subproject subproject="user" subtarget="build"/>
<gwt.ant dir="tools" />