| <project name="customAssembly.template" default="noDefault"> |
| |
| <!-- ===================================================================== |
| |
| The Following Properties are available in all targets: |
| - eclipse.base : the base folder everything will be collected into |
| - eclipse.plugins : the plugins folder |
| - eclipse.features: the features folder |
| - archiveFullPath : the full path of the final archive once it is created |
| |
| ===================================================================== --> |
| |
| <!-- ===================================================================== --> |
| <!-- Called after each invocation of the gather.bin.parts target on the --> |
| <!-- individual plugins and features. --> |
| <!-- Available properties are: --> |
| <!-- projectLocation: location of the project being gathered --> |
| <!-- projectName: symbolic name with version (org.eclipse.foo_1.0.0.v123) --> |
| <!-- target.folder: the destination, eclipse/plugins or eclipse/features --> |
| <!-- --> |
| <!-- The generated pattern is that plugins/features are gathered into the --> |
| <!-- folder ${target.folder}/${projectName} --> |
| <!-- ===================================================================== --> |
| <target name="gather.bin.parts"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Called after invoking the gather.bin.parts targets for all plugins --> |
| <!-- and features. Results exist as folders and have not yet been jarred. --> |
| <!-- ===================================================================== --> |
| <target name="post.gather.bin.parts"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Called just prior to signing a jar --> |
| <!-- In addititon to the properties listed above: --> |
| <!-- - source : plugins or features directory --> |
| <!-- - elementName: element being signed without .jar --> |
| <!-- (eg "org.eclipse.foo_1.0.0" --> |
| <!-- ===================================================================== --> |
| <target name="pre.jarSigning"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Called after all plugins and features have been jarred --> |
| <!-- (and potentially signed) --> |
| <!-- ===================================================================== --> |
| <target name="post.jarUp"> |
| </target> |
| |
| <!-- ===================================================================== --> |
| <!-- Called just before the archive file is built --> |
| <!-- In addititon to the properties listed above: --> |
| <!-- - rootFolder : the folder containing the root files --> |
| <!-- ===================================================================== --> |
| <target name="pre.archive"> |
| <propertyfile file="${eclipse.base}/configuration/config.ini"> |
| <entry key="stem.buildId" value="${buildLabelSuffix}" /> |
| </propertyfile> |
| <copy todir="${eclipse.base}" failonerror="false"> |
| <fileset dir="${buildDirectory}/languages" /> |
| </copy> |
| <condition property="is.macosx"> |
| <contains string="${config}" substring="macosx.cocoa.x86_64" /> |
| </condition> |
| <antcall target="move.macosx.files" /> |
| </target> |
| <target name="move.macosx.files" if="is.macosx"> |
| |
| <mkdir dir="${eclipse.base}/${launcherName}.app/Contents/MacOS"/> |
| |
| <exec executable="cp"> |
| <arg line="-R ${eclipse.base}/../MacOS ${eclipse.base}/${launcherName}.app/Contents/"/> |
| </exec> |
| |
| <exec executable="cp"> |
| <arg line="-R ${eclipse.base}/../Resources ${eclipse.base}/${launcherName}.app/Contents/"/> |
| </exec> |
| <move file="${eclipse.base}/../Info.plist" todir="${eclipse.base}/${launcherName}.app/Contents/" verbose="true" /> |
| |
| <move file="${eclipse.base}/${launcherName}.ini" todir="${eclipse.base}/${launcherName}.app/Contents/MacOS" verbose="true" /> |
| <replace file="${eclipse.base}/${launcherName}.app/Contents/MacOS/${launcherName}.ini" token="../stem" value="../../.."/> |
| |
| <zip destfile="${buildDirectory}/I.WeeklyBuild/${archiveNamePrefix}Rmacosx.cocoa.x86_64.zip" level="9"> |
| <zipfileset filemode="777" dir="${eclipse.base}" > |
| </zipfileset> |
| </zip> |
| <copy todir="${eclipse.base}/Contents/MacOS" verbose="true"> |
| <fileset dir="${eclipse.base}/../MacOS" /> |
| </copy> |
| <copy todir="${eclipse.base}/Contents/Resources" verbose="true"> |
| <fileset dir="${eclipse.base}/../Resources" /> |
| </copy> |
| </target> |
| |
| |
| <!-- Default target --> |
| <!-- ===================================================================== --> |
| <target name="noDefault"> |
| <echo message="You must specify a target when invoking this file" /> |
| </target> |
| |
| </project> |