Add component targets.
authorZdeněk Salvet <salvet@ics.muni.cz>
Wed, 1 Dec 2004 18:36:00 +0000 (18:36 +0000)
committerZdeněk Salvet <salvet@ics.muni.cz>
Wed, 1 Dec 2004 18:36:00 +0000 (18:36 +0000)
org.glite.jp/build.xml

index d0e688e..74ce806 100644 (file)
@@ -12,6 +12,9 @@
 
        Revision history:
        $Log$
+       Revision 1.1  2004/11/22 13:21:49  dimeglio
+       First version of this file
+       
 -->
 
 <project name="jp" default="dist">
 
        <!-- component targets definitions tag = do not remove = -->
 
+       <target name="common" unless="setenvonly" depends="envset" >
+               <if>
+                       <isset property="small.memory" />
+                       <then>
+                               <exec dir="${jp.subsystem.dir}.common" executable="${antExec}" failonerror="${failonerror}">
+                                       <arg line="${target} &quot;-Dsmall.memory=true&quot; &quot;-Dbootstrap=${bootstrap}&quot; &quot;-Dfailonerror=${failonerror}&quot; &quot;-Ddo.cvs.tag=${do.cvs.tag}&quot;"/>
+                               </exec>
+                       </then>
+                       <else>
+                               <ant dir="${jp.subsystem.dir}.common"
+                                       target="${target}"
+                                       inheritall="false" />
+                       </else>
+               </if>
+       </target>
+
+       <target name="index" unless="setenvonly" depends="envset, common" >
+               <if>
+                       <isset property="small.memory" />
+                       <then>
+                               <exec dir="${jp.subsystem.dir}.index" executable="${antExec}" failonerror="${failonerror}">
+                                       <arg line="${target} &quot;-Dsmall.memory=true&quot; &quot;-Dbootstrap=${bootstrap}&quot; &quot;-Dfailonerror=${failonerror}&quot; &quot;-Ddo.cvs.tag=${do.cvs.tag}&quot;"/>
+                               </exec>
+                       </then>
+                       <else>
+                               <ant dir="${jp.subsystem.dir}.index"
+                                       target="${target}"
+                                       inheritall="false" />
+                       </else>
+               </if>
+       </target>
+
+       <target name="primary" unless="setenvonly" depends="envset, common" >
+               <if>
+                       <isset property="small.memory" />
+                       <then>
+                               <exec dir="${jp.subsystem.dir}.primary" executable="${antExec}" failonerror="${failonerror}">
+                                       <arg line="${target} &quot;-Dsmall.memory=true&quot; &quot;-Dbootstrap=${bootstrap}&quot; &quot;-Dfailonerror=${failonerror}&quot; &quot;-Ddo.cvs.tag=${do.cvs.tag}&quot;"/>
+                               </exec>
+                       </then>
+                       <else>
+                               <ant dir="${jp.subsystem.dir}.primary"
+                                       target="${target}"
+                                       inheritall="false" />
+                       </else>
+               </if>
+       </target>
+
        <!-- Main proxy -->
-       <target name="buildmodules" depends="envset">
+       <target name="buildmodules" depends="envset,
+                                               common,
+                                               index,
+                                               primary">
                <echo append="true" file="${global.project.dir}/cruisecontrol-stub.xml">
        &lt;project name="${subsystem.name}" type="post-subsystem" packageName="${global.prefix}-${subsystem.prefix}"/&gt;
                </echo>