1 <project name="Run as part of postBuild" default="main">
4 <property name="UpdateSiteStagingLocation" value="${buildResultsDirectory}/updateSite"/>
5 <antcall target="-generateUpdateSite"/>
8 <!--======================================================-->
9 <!-- UpdateSite Export target, to be called from allElements -->
10 <!-- ==================================================== -->
11 <target name="updateSiteExport">
12 <ant antfile="build.xml" dir="${buildDirectory}/features/${id}/" target="build.update.jar">
13 <property name="feature.destination" value="${UpdateSiteStagingLocation}/features"/>
14 <property name="plugin.destination" value="${UpdateSiteStagingLocation}/plugins"/>
18 <target name="-generateUpdateSite">
19 <!-- Create the directory structure -->
20 <mkdir dir="${UpdateSiteStagingLocation}"/>
21 <mkdir dir="${UpdateSiteStagingLocation}/features"/>
22 <mkdir dir="${UpdateSiteStagingLocation}/plugins"/>
23 <!-- Build the jar files -->
24 <ant antfile="${builder}/customTargets.xml" target="allElements">
25 <property name="genericTargets" value="${builder}/postBuild.xml"/>
26 <property name="target" value="updateSiteExport"/>
28 <!-- site.xml files for integration and release builds are handled elsewhere -->
29 <antcall target="-createNightlyBuildSiteXml"/>
30 <delete dir="${buildDirectory}/temp.updatesite"/>
33 <target name="-createNightlyBuildSiteXml" if="isNightlyBuild">
34 <echo file="${UpdateSiteStagingLocation}/site.xml"><?xml
35 version="1.0" encoding="UTF-8"?>
36 <site> <description> PHPEclipse nightly
37 builds. </description>
38 <feature url="features/net.sourceforge.phpeclipse.feature_${version.full}.jar" id="net.sourceforge.phpeclipse.feature"
39 version="${version.full}">
40 <category name="PHPEclipseNightlyBuilds"/>
42 <feature url="features/net.sourceforge.phpeclipse.debug.feature_${version.full}.jar" id="net.sourceforge.phpeclipse.debug.feature"
43 version="${version.full}">
44 <category name="PHPEclipseNightlyBuilds"/>
46 <feature url="features/net.sourceforge.phpeclipse.xdebug.feature_${version.full}.jar" id="net.sourceforge.phpeclipse.xdebug.feature"
47 version="${version.full}">
48 <category name="PHPEclipseNightlyBuilds"/>
50 <category-def name="PHPEclipseNightlyBuilds"
51 label="PHPEclipse Nightly Builds"> </category-def>