Xml文件  |  114行  |  5.19 KB

<!-- ========================================================================= -->
<!-- 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.hierarchyviewer" />
         </ant>

         <ant antfile="${genericTargets}" target="${target}">
             <property name="type" value="feature" />
             <property name="id" value="com.android.ide.eclipse.adt" />
         </ant>

         <ant antfile="${genericTargets}" target="${target}">
             <property name="type" value="feature" />
             <property name="id" value="com.android.ide.eclipse.ndk" />
         </ant>

         <ant antfile="${genericTargets}" target="${target}">
             <property name="type" value="feature" />
             <property name="id" value="com.android.ide.eclipse.traceview" />
         </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>

        <ant antfile="${genericTargets}" target="${target}">
            <property name="type" value="feature" />
            <property name="id" value="com.android.ide.eclipse.pdt" />
        </ant>

        <ant antfile="${genericTargets}" target="${target}">
            <property name="type" value="feature" />
            <property name="id" value="com.android.ide.eclipse.gldebugger" />
        </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.base">
         <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
     </target>

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

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

     <target name="assemble.com.android.ide.eclipse.ndk">
         <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>

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

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

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

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