1<?xml version="1.0" encoding="UTF-8"?> 2<project name="net.sourceforge.phpeclipse.feature" default="build.update.jar" basedir="."> 3 4 <target name="init"> 5 <property name="feature.temp.folder" value="${basedir}/feature.temp.folder"/> 6 <property name="feature.destination" value="${basedir}"/> 7 </target> 8 9 <target name="all.plugins" depends="init"> 10 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.help" target="${target}"> 11 </ant> 12 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.phpmanual.htmlparser" target="${target}"> 13 </ant> 14 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.core" target="${target}"> 15 </ant> 16 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.xml.core" target="${target}"> 17 </ant> 18 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.webbrowser" target="${target}"> 19 </ant> 20 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.ui" target="${target}"> 21 </ant> 22 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.xml.ui" target="${target}"> 23 </ant> 24 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.smarty.ui" target="${target}"> 25 </ant> 26 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.externaltools" target="${target}"> 27 </ant> 28 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse" target="${target}"> 29 </ant> 30 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.phphelp" target="${target}"> 31 </ant> 32 <ant antfile="build.xml" dir="../../plugins/net.sourceforge.phpeclipse.phpmanual" target="${target}"> 33 </ant> 34 </target> 35 <target name="all.features" depends="init"> 36 </target> 37 <target name="update.feature" depends="init"> 38 </target> 39 40 <target name="all.children" depends="init,all.features,all.plugins,update.feature"> 41 </target> 42 43 <target name="children" if="include.children"> 44 <antcall target="all.children"/> 45 </target> 46 47 <target name="build.jars" depends="init" description="Build all the jars for the feature: net.sourceforge.phpeclipse.feature."> 48 <antcall target="all.children"> 49 <param name="target" value="build.jars"/> 50 </antcall> 51 </target> 52 53 <target name="build.sources" depends="init"> 54 <antcall target="all.children"> 55 <param name="target" value="build.sources"/> 56 </antcall> 57 </target> 58 59 <target name="build.zips" depends="init"> 60 <antcall target="all.children"> 61 <param name="target" value="build.zips"/> 62 </antcall> 63 </target> 64 65 <target name="build.update.jar" depends="init" description="Build the feature jar of: net.sourceforge.phpeclipse.feature for an update site."> 66 <antcall target="all.children"> 67 <param name="target" value="build.update.jar"/> 68 </antcall> 69 <property name="feature.base" value="${feature.temp.folder}"/> 70 <delete dir="${feature.temp.folder}"/> 71 <mkdir dir="${feature.temp.folder}"/> 72 <antcall target="gather.bin.parts" inheritAll="false"> 73 <param name="arch" value="*"/> 74 <param name="ws" value="*"/> 75 <param name="nl" value="*"/> 76 <param name="os" value="*"/> 77 <param name="feature.base" value="${feature.temp.folder}"/> 78 </antcall> 79 <jar destfile="${feature.destination}/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD.jar" basedir="${feature.temp.folder}/features/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD"/> 80 <delete dir="${feature.temp.folder}"/> 81 </target> 82 83 <target name="gather.bin.parts" depends="init" if="feature.base"> 84 <mkdir dir="${feature.base}/features/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD"/> 85 <antcall target="children"> 86 <param name="destination.temp.folder" value="${feature.base}/plugins"/> 87 <param name="target" value="gather.bin.parts"/> 88 </antcall> 89 <copy todir="${feature.base}/features/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD" failonerror="true" overwrite="false"> 90 <fileset dir="${basedir}"> 91 <include name="feature.xml"/> 92 <include name="phpeclipse.jpeg"/> 93 <include name="license.html"/> 94 <include name="cpl-v10.html"/> 95 </fileset> 96 </copy> 97 <!--eclipse.idReplacer featureFilePath="${feature.base}/features/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD/feature.xml" selfVersion="1.2.3.200910091456PRD" featureIds="" pluginIds="net.sourceforge.phpeclipse:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.core:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.externaltools:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.smarty.ui:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.ui:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.webbrowser:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.xml.core:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.xml.ui:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.help:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.phpmanual:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.phpmanual.htmlparser:0.0.0,1.2.3.200910091456PRD,net.sourceforge.phpeclipse.phphelp:0.0.0,1.2.3.200910091456PRD,"/--> 98 <antcall target="rootFiles${os}_${ws}_${arch}"/> 99 </target> 100 <target name="rootFiles*_*_*"> 101 </target> 102 <target name="rootFilesgroup_group_group"> 103 <antcall target="rootFiles*_*_*"/> 104 </target> 105 106 <target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: net.sourceforge.phpeclipse.feature."> 107 <delete dir="${feature.temp.folder}"/> 108 <mkdir dir="${feature.temp.folder}"/> 109 <antcall target="gather.bin.parts"> 110 <param name="arch" value="*"/> 111 <param name="ws" value="*"/> 112 <param name="nl" value="*"/> 113 <param name="include.children" value="true"/> 114 <param name="feature.base" value="${feature.temp.folder}"/> 115 <param name="os" value="*"/> 116 </antcall> 117 <zip destfile="${feature.destination}/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD.bin.dist.zip" basedir="${feature.temp.folder}" filesonly="false" whenempty="skip" update="false"/> 118 <delete dir="${feature.temp.folder}"/> 119 </target> 120 121 <target name="zip.sources" depends="init"> 122 <delete dir="${feature.temp.folder}"/> 123 <mkdir dir="${feature.temp.folder}"/> 124 <antcall target="all.children"> 125 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/net.sourceforge.phpeclipse.feature.source_1.2.3.200910091456PRD/src"/> 126 <param name="include.children" value="true"/> 127 <param name="target" value="gather.sources"/> 128 </antcall> 129 <zip destfile="${feature.destination}/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD.src.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/> 130 <delete dir="${feature.temp.folder}"/> 131 </target> 132 133 <target name="zip.logs" depends="init"> 134 <delete dir="${feature.temp.folder}"/> 135 <mkdir dir="${feature.temp.folder}"/> 136 <antcall target="all.children" inheritAll="false"> 137 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/> 138 <param name="include.children" value="true"/> 139 <param name="target" value="gather.logs"/> 140 </antcall> 141 <zip destfile="${feature.destination}/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD.log.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/> 142 <delete dir="${feature.temp.folder}"/> 143 </target> 144 145 <target name="clean" depends="init" description="Clean the feature: net.sourceforge.phpeclipse.feature of all the zips, jars and logs created."> 146 <delete file="${feature.destination}/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD.jar"/> 147 <delete file="${feature.destination}/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD.bin.dist.zip"/> 148 <delete file="${feature.destination}/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD.log.zip"/> 149 <delete file="${feature.destination}/net.sourceforge.phpeclipse.feature_1.2.3.200910091456PRD.src.zip"/> 150 <delete dir="${feature.temp.folder}"/> 151 <antcall target="all.children"> 152 <param name="target" value="clean"/> 153 </antcall> 154 </target> 155 156 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder."> 157 <eclipse.convertPath fileSystemPath="/data/builds/PHPEclipse/build/stable/features/net.sourceforge.phpeclipse.feature/" property="resourcePath"/> 158 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> 159 <antcall target="all.children"> 160 <param name="target" value="refresh"/> 161 </antcall> 162 </target> 163 <target name="gather.sources"> 164 <antcall target="children"> 165 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/net.sourceforge.phpeclipse.feature.source_1.2.3.200910091456PRD/src"/> 166 <param name="target" value="gather.sources"/> 167 </antcall> 168 </target> 169 170 <target name="gather.logs" depends="init"> 171 <mkdir dir="${feature.temp.folder}"/> 172 <antcall target="all.children" inheritAll="false"> 173 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/> 174 <param name="target" value="gather.logs"/> 175 </antcall> 176 </target> 177 178</project> 179