Adding the pluginbuilder files that are used in the nightly build process.
[phpeclipse.git] / utilities / pluginbuilder / build-files / postBuild.xml
1 <project name="Run as part of postBuild" default="main">
2     
3     <target name="main">
4         <property name="UpdateSiteStagingLocation" value="${buildResultsDirectory}/updateSite"/>
5         <antcall target="-generateUpdateSite"/>
6     </target>
7     
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"/>
15         </ant>
16     </target>
17     
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"/>
27         </ant>
28         <!-- site.xml files for integration and release builds are handled elsewhere -->
29         <antcall target="-createNightlyBuildSiteXml"/>
30         <delete dir="${buildDirectory}/temp.updatesite"/>
31     </target>
32     
33     <target name="-createNightlyBuildSiteXml" if="isNightlyBuild">
34         <echo file="${UpdateSiteStagingLocation}/site.xml">&lt;?xml
35             version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
36             &lt;site&gt; &lt;description&gt; PHPEclipse nightly
37             builds. &lt;/description&gt; 
38                 &lt;feature url=&quot;features/net.sourceforge.phpeclipse.feature_${version.full}.jar&quot; id=&quot;net.sourceforge.phpeclipse.feature&quot;
39             version=&quot;${version.full}&quot;&gt; 
40                 &lt;category name=&quot;PHPEclipseNightlyBuilds&quot;/&gt; 
41                 &lt;/feature&gt;
42                 &lt;feature url=&quot;features/net.sourceforge.phpeclipse.debug.feature_${version.full}.jar&quot; id=&quot;net.sourceforge.phpeclipse.debug.feature&quot;
43                             version=&quot;${version.full}&quot;&gt; 
44                                 &lt;category name=&quot;PHPEclipseNightlyBuilds&quot;/&gt; 
45                                 &lt;/feature&gt;
46                 &lt;feature url=&quot;features/net.sourceforge.phpeclipse.xdebug.feature_${version.full}.jar&quot; id=&quot;net.sourceforge.phpeclipse.xdebug.feature&quot;
47                                             version=&quot;${version.full}&quot;&gt; 
48                                                 &lt;category name=&quot;PHPEclipseNightlyBuilds&quot;/&gt; 
49                                                 &lt;/feature&gt;
50             &lt;category-def name=&quot;PHPEclipseNightlyBuilds&quot;
51             label=&quot;PHPEclipse Nightly Builds&quot;&gt; &lt;/category-def&gt;
52             &lt;/site&gt; </echo>
53     </target>
54     
55 </project>