Jump to: navigation, search

Difference between revisions of "Modeling Project Releng/Building/All-In-Ones"

 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
If you prefer to create a more light-weight bundle, this is NOT the solution for you.
 
If you prefer to create a more light-weight bundle, this is NOT the solution for you.
  
::
+
:: !
 
::'''''PLEASE NOTE: If you plan to use this task, you MUST migrate your build to modeling.eclipse.org first, as there is insufficient space on emft.eclipse.org to accommodate this task. '''''
 
::'''''PLEASE NOTE: If you plan to use this task, you MUST migrate your build to modeling.eclipse.org first, as there is insufficient space on emft.eclipse.org to accommodate this task. '''''
::
+
:: !
  
 
To use this new Ant task, simply add this to your buildAll.xml:
 
To use this new Ant task, simply add this to your buildAll.xml:
Line 13: Line 13:
 
You can control the behaviour of the task with these options:
 
You can control the behaviour of the task with these options:
  
 +
<!-- prefix to use for all-in-one bundles, suffixed by build id,
 +
      platform + filename extension -->
 
  <property name="allInOnePrefix" value="${projectName}-all-in-one" />
 
  <property name="allInOnePrefix" value="${projectName}-all-in-one" />
 +
 +
<!-- default: win32,linux-gtk,macosx-carbon -->
 
  <property name="allInOnePlatforms" value="win32,linux-gtk,macosx-carbon" />
 
  <property name="allInOnePlatforms" value="win32,linux-gtk,macosx-carbon" />
 +
 +
<!-- type of bundle to use as eclipse base: platform, SDK, etc.; default SDK
 +
      (string is pulled from tar.gz filenames, eg., eclipse-SDK-*.tar.gz) -->
 +
<property name="allInOneEclipseBase" value="platform"/>
 +
 +
<!-- one or more project zips to include; default allZip -->
 
  <property name="allInOneInputs" value="${allZip}" />
 
  <property name="allInOneInputs" value="${allZip}" />
 +
<!-- if using eclipse-platform-*.tar.gz instead of eclipse-SDK-*.tar.gz, can
 +
      include other (non-)platform-specific requirements, such as CVS Client.
 +
      See note below. -->
 +
<property name="allInOneInputExtras" value="${thisEclipseCVSClientFile}"/>
 
  <property name="allInOneBuildTypes" value="S,R" />
 
  <property name="allInOneBuildTypes" value="S,R" />
  
 
See also [http://dev.eclipse.org/viewcvs/index.cgi/releng-common/tools/scripts/buildAllHelper.xml?root=Modeling_Project&view=markup this script] for more information -- search for "packAllInOnes".
 
See also [http://dev.eclipse.org/viewcvs/index.cgi/releng-common/tools/scripts/buildAllHelper.xml?root=Modeling_Project&view=markup this script] for more information -- search for "packAllInOnes".
 +
 +
---
 +
 +
* Note: To download and use dynamically-named requirements based on Eclipse SDK tar.gz, use [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.pdt/org.eclipse.pdt.releng/buildAll.xml?root=Tools_Project&view=markup something like this]. [[Modeling_Project_Releng/Building/Ant-Contrib|Ant-contrib is required]].:
 +
 +
<!-- additional requirement for PDT, since it packs all-in-ones based on Eclipse platform instead of SDK -->
 +
<propertyregex property="thisEclipseCVSClientFile"
 +
  input="${eclipseFile}"
 +
  regexp="(.+eclipse-)(SDK-)(.+)(-linux-gtk\.tar\.gz)"
 +
  replace="\1CVS-Client-\3.zip"
 +
  casesensitive="false"
 +
/>
 +
<!-- <echo message="this eclipseCVSClientFile = ${thisEclipseCVSClientFile}" /> -->
 +
<if>
 +
  <not>
 +
    <available file="${downloadsDir}/${thisEclipseCVSClientFile}" type="file" />
 +
  </not>
 +
  <then>
 +
    <!-- <echo message="orig eclipseURL = ${eclipseURL}" /> -->
 +
    <propertyregex property="thisEclipseCVSClientURL"
 +
      input="${eclipseURL}"
 +
      regexp="(.+eclipse-)(SDK-)(.+)(-linux-gtk\.tar\.gz)"
 +
      replace="\1CVS-Client-\3.zip"
 +
      casesensitive="false"
 +
    />
 +
    <!-- <echo message="this eclipseCVSClientURL = ${thisEclipseCVSClientURL}" /> -->
 +
    <get src="${thisEclipseCVSClientURL}"
 +
      dest="${downloadsDir}/${thisEclipseCVSClientFile}" usetimestamp="true" />
 +
    <touch file="${downloadsDir}/${thisEclipseCVSClientFile}" />
 +
  </then>
 +
</if>
 +
  
 
[[Category:Releng]]
 
[[Category:Releng]]

Latest revision as of 16:23, 18 December 2008

As of December 2008, there's a new Ant task for packaging up All-In-One bundles. These archives consist of your SDK or ALL zip + Eclipse + all dependencies used to build.

If you prefer to create a more light-weight bundle, this is NOT the solution for you.

 !
PLEASE NOTE: If you plan to use this task, you MUST migrate your build to modeling.eclipse.org first, as there is insufficient space on emft.eclipse.org to accommodate this task.
 !

To use this new Ant task, simply add this to your buildAll.xml:

<ant target="packAllInOnes" antfile="${helper}" />

You can control the behaviour of the task with these options:

<property name="allInOnePrefix" value="${projectName}-all-in-one" />

<property name="allInOnePlatforms" value="win32,linux-gtk,macosx-carbon" />

<property name="allInOneEclipseBase" value="platform"/>

<property name="allInOneInputs" value="${allZip}" />
<property name="allInOneInputExtras" value="${thisEclipseCVSClientFile}"/>
<property name="allInOneBuildTypes" value="S,R" />

See also this script for more information -- search for "packAllInOnes".

---

<propertyregex property="thisEclipseCVSClientFile"
  input="${eclipseFile}"
  regexp="(.+eclipse-)(SDK-)(.+)(-linux-gtk\.tar\.gz)"
  replace="\1CVS-Client-\3.zip"
  casesensitive="false"
/>
<if>
  <not>
    <available file="${downloadsDir}/${thisEclipseCVSClientFile}" type="file" />
  </not>
  <then>
    <propertyregex property="thisEclipseCVSClientURL"
      input="${eclipseURL}"
      regexp="(.+eclipse-)(SDK-)(.+)(-linux-gtk\.tar\.gz)"
      replace="\1CVS-Client-\3.zip"
      casesensitive="false"
    />
    <get src="${thisEclipseCVSClientURL}" 
      dest="${downloadsDir}/${thisEclipseCVSClientFile}" usetimestamp="true" />
    <touch file="${downloadsDir}/${thisEclipseCVSClientFile}" />
  </then>
</if>