|
|
966e36 |
diff --git a/build.properties b/build.properties
|
|
|
966e36 |
index 9340c5b..557d5b0 100644
|
|
|
966e36 |
--- a/build.properties
|
|
|
966e36 |
+++ b/build.properties
|
|
|
966e36 |
@@ -8,6 +8,6 @@ testsrc.dir=${basedir}/testcases
|
|
|
966e36 |
|
|
|
966e36 |
java.awt.headless=true
|
|
|
966e36 |
|
|
|
966e36 |
-antcontrib.available=true
|
|
|
966e36 |
+antcontrib.available=false
|
|
|
966e36 |
|
|
|
966e36 |
build.cache.dir=lib
|
|
|
966e36 |
diff --git a/common_build.xml b/common_build.xml
|
|
|
966e36 |
index 3a42daa..104e1c8 100644
|
|
|
966e36 |
--- a/common_build.xml
|
|
|
966e36 |
+++ b/common_build.xml
|
|
|
966e36 |
@@ -152,9 +152,6 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
|
|
|
966e36 |
value="${build.cache.dir}/cobertura"
|
|
|
966e36 |
description="Directory where the Cobertura jar (and dependencies) is placed after it is auto-downloaded by the build" />
|
|
|
966e36 |
-
|
|
|
966e36 |
- value="${build.cache.dir}/ant-contrib"
|
|
|
966e36 |
- description="Directory where the Ant-Contrib jar (and dependencies) is placed after it is auto-downloaded by the build" />
|
|
|
966e36 |
|
|
|
966e36 |
value="${build.cache.dir}/pentaho"
|
|
|
966e36 |
description="Directory where the Pentaho ant tasks jar (and dependencies) is placed after it is auto-downloaded by the build" />
|
|
|
966e36 |
@@ -325,68 +322,6 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
</path>
|
|
|
966e36 |
|
|
|
966e36 |
|
|
|
966e36 |
-
|
|
|
966e36 |
- install-antcontrib
|
|
|
966e36 |
-
|
|
|
966e36 |
- (Fetches and) installs ant-contrib tasks.
|
|
|
966e36 |
- ====================================================================-->
|
|
|
966e36 |
-
|
|
|
966e36 |
- depends="antcontrib.download-check">
|
|
|
966e36 |
- <taskdef resource="net/sf/antcontrib/antlib.xml">
|
|
|
966e36 |
- <classpath>
|
|
|
966e36 |
- <fileset dir="${antcontrib.build.cache.dir}">
|
|
|
966e36 |
- <include name="*.jar" />
|
|
|
966e36 |
- </fileset>
|
|
|
966e36 |
- </classpath>
|
|
|
966e36 |
- </taskdef>
|
|
|
966e36 |
- </target>
|
|
|
966e36 |
-
|
|
|
966e36 |
-
|
|
|
966e36 |
-
|
|
|
966e36 |
- antcontrib.download-check
|
|
|
966e36 |
-
|
|
|
966e36 |
- Fetches ant-contrib from sourceforge if it is not already present
|
|
|
966e36 |
- ====================================================================-->
|
|
|
966e36 |
- <target name="antcontrib.download-check">
|
|
|
966e36 |
- <condition property="antcontrib.available">
|
|
|
966e36 |
- <and>
|
|
|
966e36 |
- <available file="${antcontrib.build.cache.dir}" />
|
|
|
966e36 |
- <available classname="net.sf.antcontrib.logic.IfTask">
|
|
|
966e36 |
- <classpath>
|
|
|
966e36 |
- <fileset dir="${antcontrib.build.cache.dir}">
|
|
|
966e36 |
- <include name="*.jar" />
|
|
|
966e36 |
- </fileset>
|
|
|
966e36 |
- </classpath>
|
|
|
966e36 |
- </available>
|
|
|
966e36 |
- </and>
|
|
|
966e36 |
- </condition>
|
|
|
966e36 |
- <antcall target="antcontrib.download" />
|
|
|
966e36 |
- </target>
|
|
|
966e36 |
-
|
|
|
966e36 |
-
|
|
|
966e36 |
-
|
|
|
966e36 |
- antcontrib.download
|
|
|
966e36 |
-
|
|
|
966e36 |
- Fetches ant-contrib from sourceforge
|
|
|
966e36 |
- ====================================================================-->
|
|
|
966e36 |
- <target name="antcontrib.download" unless="antcontrib.available">
|
|
|
966e36 |
- <mkdir dir="${tmp.build.cache.dir}" />
|
|
|
966e36 |
-
|
|
|
966e36 |
- dest="${tmp.build.cache.dir}/antcontrib.zip"
|
|
|
966e36 |
- usetimestamp="true" />
|
|
|
966e36 |
- <unzip src="${tmp.build.cache.dir}/antcontrib.zip" dest="${tmp.build.cache.dir}">
|
|
|
966e36 |
- <patternset>
|
|
|
966e36 |
- <include name="**/*.jar" />
|
|
|
966e36 |
- </patternset>
|
|
|
966e36 |
- </unzip>
|
|
|
966e36 |
- <copy todir="${antcontrib.build.cache.dir}">
|
|
|
966e36 |
- <fileset dir="${tmp.build.cache.dir}/ant-contrib">
|
|
|
966e36 |
- <include name="**/*.jar" />
|
|
|
966e36 |
- </fileset>
|
|
|
966e36 |
- </copy>
|
|
|
966e36 |
- </target>
|
|
|
966e36 |
-
|
|
|
966e36 |
-
|
|
|
966e36 |
|
|
|
966e36 |
init
|
|
|
966e36 |
|
|
|
966e36 |
@@ -445,7 +380,7 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
(Fetches and) installs the SVN ANT for use by this ant script
|
|
|
966e36 |
====================================================================-->
|
|
|
966e36 |
|
|
|
966e36 |
- depends="install-antcontrib, svnant.download-check">
|
|
|
966e36 |
+ depends="svnant.download-check">
|
|
|
966e36 |
<if>
|
|
|
966e36 |
<istrue value="${svnant.isinstalled}" />
|
|
|
966e36 |
<then>
|
|
|
966e36 |
@@ -491,58 +426,13 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
</target>
|
|
|
966e36 |
|
|
|
966e36 |
|
|
|
966e36 |
-
|
|
|
966e36 |
- set-build.id
|
|
|
966e36 |
-
|
|
|
966e36 |
- Sets a property build.id to the either "development" or the svn revision
|
|
|
966e36 |
- if in release mode
|
|
|
966e36 |
- ====================================================================-->
|
|
|
966e36 |
- <target name="set-build.id" unless="build.id" depends="install-antcontrib">
|
|
|
966e36 |
- <if>
|
|
|
966e36 |
- <istrue value="${release}" />
|
|
|
966e36 |
- <then>
|
|
|
966e36 |
- <antcallback target="svn-revision" return="svn.revision" />
|
|
|
966e36 |
- <property name="build.id" value="${svn.revision}" />
|
|
|
966e36 |
- </then>
|
|
|
966e36 |
- <else>
|
|
|
966e36 |
- <property name="build.id" value="development" />
|
|
|
966e36 |
- </else>
|
|
|
966e36 |
- </if>
|
|
|
966e36 |
- </target>
|
|
|
966e36 |
-
|
|
|
966e36 |
-
|
|
|
966e36 |
- version-properties: common Ant driven version file generation. Projects that produce
|
|
|
966e36 |
- a package or packages should run this target. Projects that produce
|
|
|
966e36 |
- jars only should NOT.
|
|
|
966e36 |
- ===================================================================================-->
|
|
|
966e36 |
- <target name="version-properties" depends="set-build.id">
|
|
|
966e36 |
- <tstamp>
|
|
|
966e36 |
- <format property="build.time" pattern="yyyy/MM/dd hh:mm aa"/>
|
|
|
966e36 |
- </tstamp>
|
|
|
966e36 |
-
|
|
|
966e36 |
- file="version.properties" comment="Release Build version info">
|
|
|
966e36 |
- <entry key="release.major.number" value="${release.major.number}" />
|
|
|
966e36 |
- <entry key="release.minor.number" value="${release.minor.number}" />
|
|
|
966e36 |
- <entry key="release.milestone.number" value="${release.milestone.number}" />
|
|
|
966e36 |
- <entry key="release.candidate.token" value="${release.candidate.token}" />
|
|
|
966e36 |
- <entry key="impl.vendor" value="${impl.vendor}" />
|
|
|
966e36 |
- <entry key="impl.version" value="${release.major.number}.${release.minor.number}.${release.milestone.number}.${build.id}" />
|
|
|
966e36 |
- <entry key="impl.title" value="${impl.title}" />
|
|
|
966e36 |
- <entry key="buildDate" value="${build.time}"/>
|
|
|
966e36 |
- <entry key="svn.revision" value="${build.id}"/>
|
|
|
966e36 |
- <entry key="release.build.number" default="0" type="int" operation="+" value="1" pattern="0000"/>
|
|
|
966e36 |
- </propertyfile>
|
|
|
966e36 |
- <property file="${basedir}/version.properties"/>
|
|
|
966e36 |
- </target>
|
|
|
966e36 |
-
|
|
|
966e36 |
-
|
|
|
966e36 |
|
|
|
966e36 |
install-ivy
|
|
|
966e36 |
|
|
|
966e36 |
(Fetches and) installs the IVY jar for use by this ant script
|
|
|
966e36 |
====================================================================-->
|
|
|
966e36 |
|
|
|
966e36 |
- depends="install-antcontrib,ivy.download-check">
|
|
|
966e36 |
+ depends="ivy.download-check">
|
|
|
966e36 |
<if>
|
|
|
966e36 |
<istrue value="${ivy.isinstalled}" />
|
|
|
966e36 |
<then>
|
|
|
966e36 |
@@ -602,7 +492,7 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
Verifies that there are no SNAPSHOT dependencies defined in the ivy xml.
|
|
|
966e36 |
If there are SNAPSHOTS, fail the release build.
|
|
|
966e36 |
====================================================================-->
|
|
|
966e36 |
- <target name="ivy.check-releasable" depends="install-ivy, install-antcontrib">
|
|
|
966e36 |
+ <target name="ivy.check-releasable" depends="install-ivy">
|
|
|
966e36 |
<if>
|
|
|
966e36 |
<istrue value="${release}" />
|
|
|
966e36 |
<then>
|
|
|
966e36 |
@@ -769,7 +659,7 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
Publishes the jar file for this project to a Maven2 repository.
|
|
|
966e36 |
====================================================================-->
|
|
|
966e36 |
|
|
|
966e36 |
- depends="install-antcontrib,create-pom,ivy.deliver">
|
|
|
966e36 |
+ depends="create-pom,ivy.deliver">
|
|
|
966e36 |
<antcall target="maven-publish-dependencies">
|
|
|
966e36 |
<param name="publish.groupId" value="${ivy.artifact.group}" />
|
|
|
966e36 |
<param name="publish.artifactId" value="${ivy.artifact.id}" />
|
|
|
966e36 |
@@ -1038,12 +928,11 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
- compile.pre : anything needed to prep for compile
|
|
|
966e36 |
- compile.compile : the actual compilation step
|
|
|
966e36 |
- compile.src_copy : copying the source into the bin directory
|
|
|
966e36 |
- - compile.res_copy : copying the resources into the bin directory
|
|
|
966e36 |
- compile.lic_copy : copying the license information into the bin directory
|
|
|
966e36 |
- compile.post : anything needed after the compile is done
|
|
|
966e36 |
====================================================================-->
|
|
|
966e36 |
|
|
|
966e36 |
- depends="init, compile.pre, compile.compile, compile.src_copy, compile.res_copy, compile.lic_copy, compile.post"
|
|
|
966e36 |
+ depends="init, compile.pre, compile.compile, compile.src_copy, compile.lic_copy, compile.post"
|
|
|
966e36 |
description="Performs all the steps to prepare the bin directory with a complete compilation" />
|
|
|
966e36 |
|
|
|
966e36 |
|
|
|
966e36 |
@@ -1075,36 +964,6 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
</target>
|
|
|
966e36 |
|
|
|
966e36 |
|
|
|
966e36 |
-
|
|
|
966e36 |
- compile.res_copy
|
|
|
966e36 |
-
|
|
|
966e36 |
- Copies any needed resources into the classes directory. Will not
|
|
|
966e36 |
- duplicate copying of resources from src tree (handled by compile.src_copy
|
|
|
966e36 |
- if jar.include.source is set.
|
|
|
966e36 |
- ====================================================================-->
|
|
|
966e36 |
- <target name="compile.res_copy" depends="install-antcontrib">
|
|
|
966e36 |
- <if>
|
|
|
966e36 |
- <available file="${res.dir}" />
|
|
|
966e36 |
- <then>
|
|
|
966e36 |
- <copy todir="${classes.dir}">
|
|
|
966e36 |
- <fileset dir="${res.dir}" />
|
|
|
966e36 |
- </copy>
|
|
|
966e36 |
- </then>
|
|
|
966e36 |
- </if>
|
|
|
966e36 |
-
|
|
|
966e36 |
- <if>
|
|
|
966e36 |
- <not>
|
|
|
966e36 |
- <isset property="jar.include.source" />
|
|
|
966e36 |
- </not>
|
|
|
966e36 |
- <then>
|
|
|
966e36 |
- <copy todir="${classes.dir}" flatten="false">
|
|
|
966e36 |
- <fileset dir="${src.dir}" excludes="**/*.java" />
|
|
|
966e36 |
- </copy>
|
|
|
966e36 |
- </then>
|
|
|
966e36 |
- </if>
|
|
|
966e36 |
- </target>
|
|
|
966e36 |
-
|
|
|
966e36 |
-
|
|
|
966e36 |
|
|
|
966e36 |
compile.src_copy
|
|
|
966e36 |
|
|
|
966e36 |
@@ -1151,20 +1010,19 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
|
|
|
966e36 |
Creates a jar file from the bin directory
|
|
|
966e36 |
====================================================================-->
|
|
|
966e36 |
- <target name="jar" depends="compile,set-build.id,generate.manifest" description="Jars up the bin directory after a compile">
|
|
|
966e36 |
+ <target name="jar" depends="compile,generate.manifest" description="Jars up the bin directory after a compile">
|
|
|
966e36 |
<jar destfile="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar" manifest="${dist.manifest.file}">
|
|
|
966e36 |
<fileset dir="${classes.dir}" />
|
|
|
966e36 |
</jar>
|
|
|
966e36 |
</target>
|
|
|
966e36 |
|
|
|
966e36 |
-
|
|
|
966e36 |
|
|
|
966e36 |
- generate.manifest
|
|
|
966e36 |
-
|
|
|
966e36 |
- Creates a new manifest file if one is not specified, or updates
|
|
|
966e36 |
- an existing manifest file if one is specified.
|
|
|
966e36 |
- ====================================================================-->
|
|
|
966e36 |
- <target name="generate.manifest" depends="init,set-build.id">
|
|
|
966e36 |
+ generate.manifest
|
|
|
966e36 |
+
|
|
|
966e36 |
+ Creates a new manifest file if one is not specified, or updates
|
|
|
966e36 |
+ an existing manifest file if one is specified.
|
|
|
966e36 |
+ ====================================================================-->
|
|
|
966e36 |
+ <target name="generate.manifest" depends="init">
|
|
|
966e36 |
<delete file="${dist.manifest.file}" />
|
|
|
966e36 |
<touch file="${dist.manifest.file}" />
|
|
|
966e36 |
<copy file="${manifest.file}" tofile="${dist.manifest.file}" overwrite="true" failonerror="false" />
|
|
|
966e36 |
@@ -1178,6 +1036,7 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
</target>
|
|
|
966e36 |
|
|
|
966e36 |
|
|
|
966e36 |
+
|
|
|
966e36 |
|
|
|
966e36 |
dist-source
|
|
|
966e36 |
|
|
|
966e36 |
@@ -1648,4 +1507,4 @@ TYPICAL TARGET SEQUENCE
|
|
|
966e36 |
</dot-classpath>
|
|
|
966e36 |
</target>
|
|
|
966e36 |
|
|
|
966e36 |
-</project>
|
|
|
966e36 |
\ No newline at end of file
|
|
|
966e36 |
+</project>
|