aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorSimon Pepping <spepping@apache.org>2010-09-13 08:46:36 +0000
committerSimon Pepping <spepping@apache.org>2010-09-13 08:46:36 +0000
commit07c8abc5039f9696bc760da10d8fc78b54c3a4dc (patch)
tree3922b12c514d99ab5af4f2d64a32386267b9e6b4 /build.xml
parent964dd91787738d3bd3f3a57bab9ffe24cdba17e6 (diff)
downloadxmlgraphics-fop-07c8abc5039f9696bc760da10d8fc78b54c3a4dc.tar.gz
xmlgraphics-fop-07c8abc5039f9696bc760da10d8fc78b54c3a4dc.zip
Created target nightly-build
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@996451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 1d9aad8ed..0139414b6 100644
--- a/build.xml
+++ b/build.xml
@@ -193,8 +193,11 @@ list of possible build targets.
<property name="fotree.disabled" value="test/fotree/disabled-testcases.xml"/>
<property name="dist.bin.dir" value="${basedir}/dist-bin"/>
<property name="dist.src.dir" value="${basedir}/dist-src"/>
+ <property name="nightly.dir" value="${basedir}/nightly"/>
<property name="dist.bin.result.dir" value="${dist.bin.dir}/${name}-${version}"/>
<property name="dist.src.result.dir" value="${dist.src.dir}/${name}-${version}"/>
+ <tstamp/>
+ <property name="nightly.result.dir" value="${nightly.dir}/${name}-${DSTAMP}"/>
<property name="samedir" value="${basedir}"/>
<property name="junit.reports.dir" value="${build.dir}/test-reports"/>
<property name="junit.html.reports.dir" value="${build.dir}/test-reports/html"/>
@@ -1356,6 +1359,50 @@ NOTE:
<move file="${build.dir}/${name}-${version}-bundle.jar" todir="${basedir}"/>
</target>
<!-- =================================================================== -->
+<!-- Nightly builds -->
+<!-- =================================================================== -->
+ <target name="junit-nightly-build" depends="junit-userconfig,junit-text-linebreak,junit-fotree">
+ <fail>
+ <condition>
+ <or>
+ <isset property="fop.junit.error"/>
+ <isset property="fop.junit.failure"/>
+ </or>
+ </condition>
+NOTE:
+**************************************************************************
+* One or more of the Junit tests had Failures or Errors or were skipped! *
+* Please check the output above for relevant messages. *
+* Or use the "junit-reports" target to generate HTML test reports. *
+**************************************************************************
+ </fail>
+ <echo>All Junit tests passed!</echo>
+ </target>
+ <target name="nightly-build" depends="clean,jar-main,junit-nightly-build">
+ <echo message="Building the binary distribution files (zip,tar)"/>
+ <delete dir="${nightly.dir}"/>
+ <mkdir dir="${nightly.result.dir}"/>
+ <copy todir="${nightly.result.dir}">
+ <fileset refid="dist.bin"/>
+ <fileset refid="dist.bin.lib"/>
+ </copy>
+ <mkdir dir="${nightly.result.dir}/build"/>
+ <copy todir="${nightly.result.dir}/build" file="build/fop.jar"/>
+ <chmod file="${nightly.result.dir}/fop" perm="ugo+rx"/>
+ <zip zipfile="${name}-${DSTAMP}-bin.zip" basedir="${nightly.dir}" includes="**"/>
+ <tar longfile="gnu" destfile="${name}-${DSTAMP}-bin.tar">
+ <tarfileset dir="${nightly.dir}" mode="755">
+ <include name="${name}-${DSTAMP}/fop"/>
+ </tarfileset>
+ <tarfileset dir="${nightly.dir}">
+ <include name="**"/>
+ <exclude name="${name}-${DSTAMP}/fop"/>
+ </tarfileset>
+ </tar>
+ <gzip zipfile="${name}-${DSTAMP}-bin.tar.gz" src="${name}-${DSTAMP}-bin.tar"/>
+ <delete file="${name}-${DSTAMP}-bin.tar"/>
+ </target>
+<!-- =================================================================== -->
<!-- Generate examples -->
<!-- =================================================================== -->
<target name="examples" depends="package" description="Generates the example files">