Author: nickboldt
Date: 2010-05-11 15:09:39 -0400 (Tue, 11 May 2010)
New Revision: 22020
Modified:
branches/modular_build/build/build.xml
Log:
fix bootstrapping for drools build; add constraint for custom build.xml: run only if
pom.xml does not call custom build.xml directly
Modified: branches/modular_build/build/build.xml
===================================================================
--- branches/modular_build/build/build.xml 2010-05-11 19:06:24 UTC (rev 22019)
+++ branches/modular_build/build/build.xml 2010-05-11 19:09:39 UTC (rev 22020)
@@ -574,8 +574,17 @@
</else>
</if>
<!-- optional extra instructions to do before a maven build -->
+ <loadfile property="(a){COMPONENT}.pom.xml"
srcfile="${WORKINGDIR}/(a){COMPONENT}/pom.xml" />
<if>
- <available file="${WORKINGDIR}/(a){COMPONENT}/build.xml"
type="file" />
+ <and>
+ <!-- if pom.xml does not call custom build.xml directly -->
+ <not>
+ <contains string="${(a){COMPONENT}.pom.xml}"
+ substring="<ant antfile="build.xml"
/>"
+ />
+ </not>
+ <available file="${WORKINGDIR}/(a){COMPONENT}/build.xml"
type="file" />
+ </and>
<then>
<echo>Run custom @{COMPONENT}/build.xml</echo>
<ant antfile="${WORKINGDIR}/(a){COMPONENT}/build.xml">
Show replies by date