Updated build for running dist and distlight targets.
Added uptodate checks before unjarring the cents. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ffa9e106f5
commit
426880a70c
20
.cvsignore
20
.cvsignore
@ -1,19 +1,7 @@
|
|||||||
.ant.properties
|
*.properties
|
||||||
dist
|
dist
|
||||||
build
|
*.el
|
||||||
distributions
|
*.ipr
|
||||||
prj.el
|
|
||||||
emacs-jprj.el
|
|
||||||
docs
|
|
||||||
todo
|
|
||||||
hdf.log
|
|
||||||
hpsf.log
|
|
||||||
hssf.log
|
|
||||||
poifs.log
|
|
||||||
util.log
|
|
||||||
poi.ipr
|
|
||||||
release-bin
|
|
||||||
POILogger.log
|
|
||||||
jakarta-poi.ipr
|
|
||||||
build.number
|
build.number
|
||||||
log*.*
|
log*.*
|
||||||
|
*.log
|
38
build.xml
38
build.xml
@ -145,7 +145,7 @@ printed.
|
|||||||
<!-- =================================================================== -->
|
<!-- =================================================================== -->
|
||||||
<!-- Interactive scratchpad builds -->
|
<!-- Interactive scratchpad builds -->
|
||||||
<!-- =================================================================== -->
|
<!-- =================================================================== -->
|
||||||
<target name="scratchpad" depends="-init" description="Interactive Scratchpad Build">
|
<target name="scratchpad" depends="compile" description="Interactive Scratchpad Build">
|
||||||
<echo message="--------------------------------------------------------------"/>
|
<echo message="--------------------------------------------------------------"/>
|
||||||
<echo message=" "/>
|
<echo message=" "/>
|
||||||
<echo message=" ${xgump.module.project.name} ${xgump.module.project.version.major}.${xgump.module.project.version.minor} SCRATCHPAD "/>
|
<echo message=" ${xgump.module.project.name} ${xgump.module.project.version.major}.${xgump.module.project.version.minor} SCRATCHPAD "/>
|
||||||
@ -176,7 +176,7 @@ printed.
|
|||||||
<!-- =================================================================== -->
|
<!-- =================================================================== -->
|
||||||
<!-- Interactive contrib builds -->
|
<!-- Interactive contrib builds -->
|
||||||
<!-- =================================================================== -->
|
<!-- =================================================================== -->
|
||||||
<target name="contrib" depends="-init" description="Interactive Contributors' Build">
|
<target name="contrib" depends="compile" description="Interactive Contributors' Build">
|
||||||
<echo message="--------------------------------------------------------------"/>
|
<echo message="--------------------------------------------------------------"/>
|
||||||
<echo message=" "/>
|
<echo message=" "/>
|
||||||
<echo message=" ${xgump.module.project.name} ${xgump.module.project.version.major}.${xgump.module.project.version.minor} CONTRIB"/>
|
<echo message=" ${xgump.module.project.name} ${xgump.module.project.version.major}.${xgump.module.project.version.minor} CONTRIB"/>
|
||||||
@ -250,9 +250,25 @@ printed.
|
|||||||
<!-- Build distributions -->
|
<!-- Build distributions -->
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
|
|
||||||
<target name="dist" depends="-init"
|
<target name="dist"
|
||||||
description="Compile java source code">
|
description="Make distributions">
|
||||||
|
|
||||||
|
<echo>**********************************************</echo>
|
||||||
|
<echo>*</echo>
|
||||||
|
<echo>* Build all distributions:</echo>
|
||||||
|
<echo>* - source distribution for windows/unix.</echo>
|
||||||
|
<echo>* - binary distribution for windows/unix.</echo>
|
||||||
|
<echo>*</echo>
|
||||||
|
<echo>* Since *all* main targets are tested, </echo>
|
||||||
|
<echo>* first indipendently and then together to </echo>
|
||||||
|
<echo>* check that everything is ok,</echo>
|
||||||
|
<echo>* this may take a while...</echo>
|
||||||
|
<echo>*</echo>
|
||||||
|
<echo>***********************************************</echo>
|
||||||
|
<echo/>
|
||||||
|
|
||||||
|
<antcall target="gump"/>
|
||||||
|
|
||||||
<antcall target="call-cent">
|
<antcall target="call-cent">
|
||||||
<param name="cent-name" value="centipede"/>
|
<param name="cent-name" value="centipede"/>
|
||||||
<param name="cent-target" value="dist"/>
|
<param name="cent-target" value="dist"/>
|
||||||
@ -260,6 +276,20 @@ printed.
|
|||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- ====================================== -->
|
||||||
|
<!-- dist target wo single build checks -->
|
||||||
|
<!-- ====================================== -->
|
||||||
|
|
||||||
|
<target name="quickdist" depends="testmodule"
|
||||||
|
description="Build distribution packages wo single build checks">
|
||||||
|
|
||||||
|
<antcall target="call-cent">
|
||||||
|
<param name="cent-name" value="centipede"/>
|
||||||
|
<param name="cent-target" value="dist"/>
|
||||||
|
</antcall>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
<!-- Clean build dir -->
|
<!-- Clean build dir -->
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
|
@ -51,11 +51,14 @@
|
|||||||
</antipede-foreach>
|
</antipede-foreach>
|
||||||
|
|
||||||
<delete dir="${cents.dir}/META-INF"/>
|
<delete dir="${cents.dir}/META-INF"/>
|
||||||
|
|
||||||
<mkdir dir="${temp.dir}"/>
|
<mkdir dir="${temp.dir}"/>
|
||||||
<delete file="${temp.dir}/${task.properties.name}"/>
|
<delete file="${temp.dir}/${task.properties.name}"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- put all ant task definitions in cents in a single file -->
|
<!-- put all ant task definitions in cents in a single file -->
|
||||||
|
<antipede-trycatch><try>
|
||||||
|
|
||||||
<concat destfile="${temp.dir}/${task.properties.name}" append="no">
|
<concat destfile="${temp.dir}/${task.properties.name}" append="no">
|
||||||
<fileset dir=".">
|
<fileset dir=".">
|
||||||
<patternset>
|
<patternset>
|
||||||
@ -63,7 +66,7 @@
|
|||||||
</patternset>
|
</patternset>
|
||||||
</fileset>
|
</fileset>
|
||||||
</concat>
|
</concat>
|
||||||
|
|
||||||
<!-- define the tasks found in cents -->
|
<!-- define the tasks found in cents -->
|
||||||
<taskdef file="${temp.dir}/${task.properties.name}">
|
<taskdef file="${temp.dir}/${task.properties.name}">
|
||||||
<classpath>
|
<classpath>
|
||||||
@ -73,6 +76,10 @@
|
|||||||
</classpath>
|
</classpath>
|
||||||
</taskdef>
|
</taskdef>
|
||||||
|
|
||||||
|
</try>
|
||||||
|
<catch><echo message="Unable to load tasks... could be already loaded." /></catch>
|
||||||
|
</antipede-trycatch>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Load project information
|
Load project information
|
||||||
-->
|
-->
|
||||||
@ -80,40 +87,51 @@
|
|||||||
<centipede-xml-property file="status.xml" prefix="xstatus" keeproot="false" />
|
<centipede-xml-property file="status.xml" prefix="xstatus" keeproot="false" />
|
||||||
<centipede-xml-property file="layout.xml" prefix="xlayout" keeproot="false" />
|
<centipede-xml-property file="layout.xml" prefix="xlayout" keeproot="false" />
|
||||||
<centipede-xml-property file="properties.xml" keeproot="false" />
|
<centipede-xml-property file="properties.xml" keeproot="false" />
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ================================ -->
|
<!-- ================================ -->
|
||||||
<!-- Used only by the -init target -->
|
<!-- Used only by the -init target -->
|
||||||
<!-- =================================-->
|
<!-- =================================-->
|
||||||
<target name="-cent-unjar">
|
<target name="-cent-unjar" depends="-cent-unjar-expand,-cent-unjar-keep"/>
|
||||||
|
|
||||||
|
<!-- ================================ -->
|
||||||
|
<!-- Used only by the -init target -->
|
||||||
|
<!-- =================================-->
|
||||||
|
<target name="-cent-unjar-check">
|
||||||
|
|
||||||
<basename property="current.cent.jar.name" file="${current.cent.jar}" suffix=".jar"/>
|
<basename property="current.cent.jar.name" file="${current.cent.jar}" suffix=".jar"/>
|
||||||
|
|
||||||
<condition property="cent-unjar.not.required">
|
<condition property="cent-unjar.not.required">
|
||||||
<and>
|
<and>
|
||||||
<uptodate targetfile="${current.cent.jar}">
|
<uptodate targetfile="${current.cent.jar}">
|
||||||
<srcfiles dir= "." includes="${cents.dir}/*.${cent.dir.suffix}/${task.properties.name}"/>
|
<srcfiles dir= "." includes="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}/${task.properties.name}"/>
|
||||||
</uptodate>
|
</uptodate>
|
||||||
<available type="dir" file="${cents.dir}/${current.cent.jar.name}"/>
|
<available type="dir" file="${cents.dir}/${current.cent.jar.name}.${cent.dir.suffix}"/>
|
||||||
</and>
|
</and>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<antipede-if>
|
</target>
|
||||||
<equals arg1="cent-unjar.not.required" arg2="true" />
|
|
||||||
<then>
|
<!-- ====================================== -->
|
||||||
<echo message="${current.cent.jar} is uptodate with respect to ${current.cent.jar.name}." />
|
<!-- Used only by the -cent-unjar target -->
|
||||||
<echo message="No need to expand it." />
|
<!-- ====================================== -->
|
||||||
</then>
|
<target name="-cent-unjar-expand" unless="cent-unjar.not.required"
|
||||||
<else>
|
depends="-cent-unjar-check">
|
||||||
<echo message="Expanding ${current.cent.jar}..." />
|
<echo message="Expanding ${current.cent.jar}..." />
|
||||||
<unjar src="${current.cent.jar}" dest="${cents.dir}"/>
|
<unjar src="${current.cent.jar}" dest="${cents.dir}"/>
|
||||||
<echo message="... ${current.cent.jar} expanded in ${current.cent.jar.name}." />
|
<echo message="... ${current.cent.jar} expanded in ${current.cent.jar.name}." />
|
||||||
</else>
|
</target>
|
||||||
</antipede-if>
|
|
||||||
|
|
||||||
</target>
|
<!-- ====================================== -->
|
||||||
|
<!-- Used only by the -cent-unjar target -->
|
||||||
|
<!-- =======================================-->
|
||||||
|
<target name="-cent-unjar-keep" if="cent-unjar.not.required"
|
||||||
|
depends="-cent-unjar-check">
|
||||||
|
<echo message="${current.cent.jar} is uptodate with respect to ${current.cent.jar.name}." />
|
||||||
|
<echo message="No need to expand it." />
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- ============================================= -->
|
<!-- ============================================= -->
|
||||||
<!-- Simple utility target to call a cent target -->
|
<!-- Simple utility target to call a cent target -->
|
||||||
<!-- ==============================================-->
|
<!-- ==============================================-->
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
|
||||||
|
#Antipede tasks
|
||||||
antipede-foreach=net.sf.antcontrib.logic.ForEach
|
antipede-foreach=net.sf.antcontrib.logic.ForEach
|
||||||
antipede-if=net.sf.antcontrib.logic.IfTask
|
antipede-if=net.sf.antcontrib.logic.IfTask
|
||||||
antipede-propertycopy=net.sf.antcontrib.property.PropertyCopy
|
antipede-propertycopy=net.sf.antcontrib.property.PropertyCopy
|
||||||
antipede-switch=net.sf.antcontrib.logic.Switch
|
antipede-switch=net.sf.antcontrib.logic.Switch
|
||||||
antipede-trycatch=net.sf.antcontrib.logic.TryCatchTask
|
antipede-trycatch=net.sf.antcontrib.logic.TryCatchTask
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user