Skip to main content
summaryrefslogblamecommitdiffstats
blob: 934898bddaa8b5a49afd8adb912f47ba304cfe19 (plain) (tree)






























































                                                                                     
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== 
     Jan 10, 2012 11:59:30 AM                                                        

     Deploy to Eclipse    
     Final step to fix the md5 suns from signing
                   
     mrrussell                                                                
     ====================================================================== -->
<project name="Deploy to Eclipse" default="run-ant">
    <description>
            Final step to fix the md5 suns from signing
    </description>

    <!-- ================================= 
          target: process-artifacts              
         ================================= -->
    <target name="run-ant" depends="init" 
            description="Final step to fix the md5 suns from signing">
        <java jar="${eclipse.launcher.jar}" fork="true">
          <arg line="-data ${build.workspace}" />
          <arg line="-application org.eclipse.ant.core.antRunner"/>
          <arg line="-f finalProcess.xml process-artifacts" />
        </java>
      
    </target>

    <!-- - - - - - - - - - - - - - - - - - 
          target: init                      
         - - - - - - - - - - - - - - - - - -->
    <target name="init">
      <fail message="build.eclipse.home must be set">
        <condition>
          <not>
            <isset property="build.eclipse.home" />
          </not>
        </condition>
      </fail>
      <fail message="build.repo.dir must be set">
        <condition>
          <not>
            <isset property="build.repo.dir" />
          </not>
        </condition>
      </fail>
      <property name="build.tmp" value="${java.io.tmpdir}/build/temp" />
      <delete failonerror="false">
        <fileset dir="${build.tmp}" includes="**/*" />
      </delete>
      <mkdir dir="${build.tmp}"/>
      <property name="build.workspace" location="${build.tmp}/workspace" />
      <fileset dir="${build.eclipse.home}" id="eclipse.launcher">
        <include name="**/org.eclipse.equinox.launcher_*.jar" />
      </fileset>
      <pathconvert property="eclipse.launcher.jar" refid="eclipse.launcher" />
    </target>

    <target name="process-artifacts">
      <p2.process.artifacts
        pack="true"
        repositoryPath="file:${build.repo.dir}" />
    </target>
</project>

Back to the top