<!-- ========================================================================= -->
<!-- Feature build ant targets                                                 -->
<!-- Template obtained from org.eclipse.pde.build/templates/headless-build     -->
<!-- ========================================================================= -->
<project name="allElements Delegator">
    
     <!-- ===================================================================== -->
     <!-- Run a given ${target} on all elements being built                     -->
     <!-- Replace element.id with the id of the top level element being built.    -->
     <!-- If element.id does not exist in ${buildDirectory}/features/element.id   -->
     <!-- or ${baseLocation}/features/element.id, then you must provide the       -->
     <!-- location by setting the property "pluginPath"                           -->
     <!-- Add on <ant> task for each top level element being built.             -->
     <!-- ===================================================================== -->
     <target name="allElementsDelegator">
         
         <ant antfile="${genericTargets}" target="${target}">
             <property name="type" value="feature" />
             <property name="id" value="com.android.ide.eclipse.ddms" />
         </ant>

         <ant antfile="${genericTargets}" target="${target}">
             <property name="type" value="feature" />
             <property name="id" value="com.android.ide.eclipse.adt" />
         </ant>
         
        <antcall target="buildInternalFeatures"/>
         
     </target>
    
     <!-- ===================================================================== -->
     <!-- Conditional target for building the internal features                 -->
     <!-- Builds if property internalSite is set                                -->
     <!-- ===================================================================== -->
     <target name="buildInternalFeatures" if="internalSite">
        <ant antfile="${genericTargets}" target="${target}">
            <property name="type" value="feature" />
            <property name="id" value="com.android.ide.eclipse.tests" />
        </ant>
     </target>    
         
     <!-- ===================================================================== -->
     <!-- Targets to assemble the built elements for particular configurations  -->
     <!-- These generally call the generated assemble scripts (named in         -->
     <!-- ${assembleScriptName}) but may also add pre and post processing       -->
     <!-- Add one target for each root element and each configuration           -->
     <!-- Replace element.id with the id of the top level element being built   -->
     <!-- ===================================================================== -->
     <target name="assemble.com.android.ide.eclipse.adt">
         <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
     </target>

     <target name="assemble.com.android.ide.eclipse.ddms">
         <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
     </target>
    
    <target name="assemble.com.android.ide.eclipse.tests">
        <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
    </target>
</project>