Skip to content

Commit

Permalink
Updated dependencies on version.properties for build. Also added buil…
Browse files Browse the repository at this point in the history
…d.skipTests and build.skipPmd flags for use when building to avoid hacking at the build. Example: "ant -Dbuild.skipTests=true -v clean package" will skip the test phase of the build.
  • Loading branch information
blegros committed May 4, 2010
1 parent 46e4b6a commit b09bf8b
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 32 deletions.
37 changes: 20 additions & 17 deletions FlexUnit4/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
<project name="FlexUnit4Core" basedir="." default="package">
<property environment="env" />

<!-- Version info -->
<property file="${basedir}/version.properties" />

<!-- Configuration -->
<property name="build.artifactId.flex" value="flexunit-core-flex" />
<property name="build.artifactId.as3" value="flexunit-core-as3" />
<property name="build.finalName.flex" value="${build.artifactId.flex}-${build.version}.${build.number}-sdk${build.sdk}.swc" />
<property name="build.finalName.as3" value="${build.artifactId.as3}-${build.version}.${build.number}-sdk${build.sdk}.swc" />
<property name="build.useFlex" value="true" />
<property name="instrument.finalName" value="flexunit-instrument.swc" />
<property name="instrument.metadata" value="flexunit-instrument.cvm" />
Expand Down Expand Up @@ -121,7 +122,22 @@
</fail>
</target>

<target name="report">
<target name="report" depends="pmdReport">
<!-- Pull in class file list to use with asdoc -->
<property file="${bin.loc}/flexLib.properties" />

<!-- Generate asdocs -->
<java jar="${FLEX_HOME}/lib/asdoc.jar" fork="true" failonerror="true">
<arg line="+flexlib '${FLEX_HOME}/frameworks'" />
<arg line="-doc-classes ${src.class-list}" />
<arg line="-source-path+='${src.loc}'" />
<arg line="-output '${doc.loc}'" />
<arg line="-library-path+='${lib.loc}'" />
<arg line="-define=CONFIG::useFlexClasses,${build.useFlex}" />
</java>
</target>

<target name="pmdReport" unless="build.skipPmd">
<taskdef name="pmd" classname="com.adobe.ac.pmd.ant.FlexPmdAntTask" />
<taskdef name="cpd" classname="com.adobe.ac.cpd.ant.FlexCpdAntTask" />
<taskdef name="metrics" classname="com.adobe.ac.pmd.metrics.ant.FlexMetricsAntTask" />
Expand All @@ -137,19 +153,6 @@
</cpd>

<metrics sourcedirectory="${src.loc}" outputfile="${report.loc}/javancss.xml" />

<!-- Pull in class file list to use with asdoc -->
<property file="${bin.loc}/flexLib.properties" />

<!-- Generate asdocs -->
<java jar="${FLEX_HOME}/lib/asdoc.jar" fork="true" failonerror="true">
<arg line="+flexlib '${FLEX_HOME}/frameworks'" />
<arg line="-doc-classes ${src.class-list}" />
<arg line="-source-path+='${src.loc}'" />
<arg line="-output '${doc.loc}'" />
<arg line="-library-path+='${lib.loc}'" />
<arg line="-define=CONFIG::useFlexClasses,${build.useFlex}" />
</java>
</target>

<target name="package" depends="package-default,package-instrument,report" />
Expand Down
5 changes: 2 additions & 3 deletions FlexUnit4AirCIListener/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<project name="FlexUnit4AirCIListener" basedir="." default="package">
<property environment="env" />

<!-- Version info -->
<property file="${basedir}/version.properties" />

<!-- Configuration -->
<property name="build.artifactId" value="flexunit-aircilistener" />
<property name="build.finalName" value="${build.artifactId}-${build.version}.${build.number}-sdk${build.sdk}.swc" />
<property name="build.useFlex" value="true" />

<!-- Existing -->
Expand Down
6 changes: 4 additions & 2 deletions FlexUnit4AntTasks/build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="FlexUnitAntTasks" basedir="." default="package">
<!-- Version info -->
<property file="${basedir}/version.properties" />

<!--Configuration-->
<property name="build.artifactId" value="flexUnitTasks" />
<property name="build.finalName" value="${build.artifactId}-${build.version}.${build.number}.jar" />

<!-- Existing -->
<property name="src.loc" location="${basedir}/src" />
Expand Down
5 changes: 2 additions & 3 deletions FlexUnit4CIListener/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<project name="FlexUnit4CIListener" basedir="." default="package">
<property environment="env" />

<!-- Version info -->
<property file="${basedir}/version.properties" />

<!-- Configuration -->
<property name="build.artifactId" value="flexunit-cilistener" />
<property name="build.finalName" value="${build.artifactId}-${build.version}.${build.number}-sdk${build.sdk}.swc" />
<property name="build.useFlex" value="true" />

<!-- Existing -->
Expand Down
5 changes: 2 additions & 3 deletions FlexUnit4FlexCoverListener/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<project name="FlexUnit4FlexCoverListener" basedir="." default="package">
<property environment="env" />

<!-- Version info -->
<property file="${basedir}/version.properties" />

<!-- Configuration -->
<property name="build.artifactId" value="flexunit-flexcoverlistener" />
<property name="build.finalName" value="${build.artifactId}-${build.version}.${build.number}-sdk${build.sdk}.swc" />
<property name="build.useFlex" value="true" />

<!-- Existing -->
Expand Down
5 changes: 2 additions & 3 deletions FlexUnit4UIListener/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<project name="FlexUnit4UIRunner" basedir="." default="package">
<property environment="env" />

<!-- Version info -->
<property file="${basedir}/version.properties" />

<!-- Configuration -->
<property name="build.artifactId" value="flexunit-uilistener" />
<property name="build.finalName" value="${build.artifactId}-${build.version}.${build.number}-sdk${build.sdk}.swc" />
<property name="build.namespace" value="http://www.adobe.com/2009/flexUnitUIRunner" />
<property name="build.useFlex" value="true" />

Expand Down
5 changes: 4 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ to contribute to our CI process.
<project name="FlexUnit4" basedir="." default="package">
<property environment="env" />

<!-- Version info -->
<property file="${basedir}/version.properties" />

<!-- Configuration -->
<property name="build.useFlex" value="true" />
<property name="finalName" value="flexunit.zip" />
Expand Down Expand Up @@ -80,7 +83,7 @@ to contribute to our CI process.
</target>

<!-- Prepares and builds the FlexUnit4Test project -->
<target name="test" depends="anttasks,core,cilistener,flexcoverlistener">
<target name="test" depends="anttasks,core,cilistener,flexcoverlistener" unless="build.skipTests">
<ant dir="${tests.loc}" target="test" inheritall="false">
<propertyset>
<propertyref prefix="build" />
Expand Down

0 comments on commit b09bf8b

Please sign in to comment.