1<?xml version="1.0" encoding="UTF-8"?> 2<project name="net.sourceforge.phpeclipse.debug.core" default="build.jars" basedir="."> 3 4 <property name="basews" value="${ws}"/> 5 <property name="baseos" value="${os}"/> 6 <property name="basearch" value="${arch}"/> 7 <property name="basenl" value="${nl}"/> 8 <property name="bundleId" value="net.sourceforge.phpeclipse.debug.core"/> 9 <property name="bundleVersion" value="1.2.3.200910091456PRD"/> 10 11 <!-- Compiler settings. --> 12 <property name="javacFailOnError" value="false"/> 13 <property name="javacDebugInfo" value="on"/> 14 <property name="javacVerbose" value="false"/> 15 <property name="logExtension" value=".log"/> 16 <property name="compilerArg" value=""/> 17 <property name="javacSource" value="1.3"/> 18 <property name="javacTarget" value="1.2"/> 19 <condition property="dir_bootclasspath" value="${java.home}/../Classes"> 20 <os family="mac"/> 21 </condition> 22 <property name="dir_bootclasspath" value="${java.home}/lib"/> 23 <path id="path_bootclasspath"> 24 <fileset dir="${dir_bootclasspath}"> 25 <include name="*.jar"/> 26 </fileset> 27 </path> 28 <property name="bootclasspath" refid="path_bootclasspath"/> 29 <condition property="bundleBootClasspath" value="${J2SE-1.4}"> 30 <isset property="J2SE-1.4"/> 31 </condition> 32 <condition property="bundleJavacSource" value="1.3"> 33 <isset property="J2SE-1.4"/> 34 </condition> 35 <condition property="bundleJavacTarget" value="1.2"> 36 <isset property="J2SE-1.4"/> 37 </condition> 38 <property name="bundleJavacSource" value="${javacSource}"/> 39 <property name="bundleJavacTarget" value="${javacTarget}"/> 40 <property name="bundleBootClasspath" value="${bootclasspath}"/> 41 42 <target name="init" depends="properties"> 43 <condition property="pluginTemp" value="${buildTempFolder}/plugins"> 44 <isset property="buildTempFolder"/> 45 </condition> 46 <property name="pluginTemp" value="${basedir}"/> 47 <condition property="build.result.folder" value="${pluginTemp}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD"> 48 <isset property="buildTempFolder"/> 49 </condition> 50 <property name="build.result.folder" value="${basedir}"/> 51 <property name="temp.folder" value="${basedir}/temp.folder"/> 52 <property name="plugin.destination" value="${basedir}"/> 53 </target> 54 55 <target name="properties" if="eclipse.running"> 56 <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> 57 58 </target> 59 60 <target name="build.update.jar" depends="init" description="Build the plug-in: net.sourceforge.phpeclipse.debug.core for an update site."> 61 <delete dir="${temp.folder}"/> 62 <mkdir dir="${temp.folder}"/> 63 <antcall target="build.jars"/> 64 <antcall target="gather.bin.parts"> 65 <param name="destination.temp.folder" value="${temp.folder}/"/> 66 </antcall> 67 <jar destfile="${plugin.destination}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD.jar" basedir="${temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD" filesetmanifest="merge"/> 68 <delete dir="${temp.folder}"/> 69 </target> 70 71 <target name="core.jar" depends="init" unless="core.jar" description="Create jar: net.sourceforge.phpeclipse.debug.core core.jar."> 72 <delete dir="${temp.folder}/core.jar.bin"/> 73 <mkdir dir="${temp.folder}/core.jar.bin"/> 74 <path id="core.jar.classpath"> 75 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui_3.3.1.M20070910-0800b.jar"/> 76 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.runtime_3.3.100.v20070530.jar"/> 77 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.osgi_3.3.1.R33x_v20070828.jar"/> 78 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.equinox.common_3.3.0.v20070426.jar"/> 79 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.jobs_3.3.1.R33x_v20070709.jar"/> 80 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.100.v20070316/runtime_registry_compatibility.jar"/> 81 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.100.v20070316"/> 82 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.equinox.registry_3.3.1.R33x_v20070802.jar"/> 83 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.equinox.preferences_3.2.100.v20070522.jar"/> 84 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.100.v20070316/@dot"/> 85 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.contenttype_3.2.100.v20070319.jar"/> 86 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20070502.jar"/> 87 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.equinox.app_1.0.1.R33x_v20070828.jar"/> 88 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.osgi.services_3.1.200.v20070605.jar"/> 89 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/javax.servlet_2.4.0.v200706111738.jar"/> 90 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.swt_3.3.2.v3347.jar"/> 91 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.swt.gtk.linux.x86_3.3.2.v3347.jar"/> 92 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.jface_3.3.1.M20070910-0800b.jar"/> 93 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.commands_3.3.0.I20070605-0010.jar"/> 94 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.workbench_3.3.1.M20070921-1200.jar"/> 95 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20070319-0010/@dot"/> 96 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20070319-0010/compatibility.jar"/> 97 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu36.data.update_3.6.1.v20071204_2007j/icu-jse4.jar"/> 98 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu36.data.update_3.6.1.v20071204_2007j/icu-data.jar"/> 99 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu36.data.update_3.6.1.v20071204_2007j"/> 100 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu36.data.update_3.6.1.v20080102_2007k/icu-jse4.jar"/> 101 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu36.data.update_3.6.1.v20080102_2007k/icu-data.jar"/> 102 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu36.data.update_3.6.1.v20080102_2007k"/> 103 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu_3.6.1.v20070906.jar"/> 104 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.help_3.3.1.v20070726_33x.jar"/> 105 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.expressions_3.3.0.v20070606-0010.jar"/> 106 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.jface.databinding_1.1.1.M20070910-0800b.jar"/> 107 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu36.data.update_3.6.1.v20071204_2007j/@dot"/> 108 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/com.ibm.icu36.data.update_3.6.1.v20080102_2007k/@dot"/> 109 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.databinding_1.0.1.M20070822-0800.jar"/> 110 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.resources_3.3.0.v20070604.jar"/> 111 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.resources.compatibility_3.2.100.v20070502.jar"/> 112 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ant.core_3.1.200.v20070522.jar"/> 113 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.variables_3.2.0.v20070426.jar"/> 114 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.filesystem_1.1.0.v20070606.jar"/> 115 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.filesystem.linux.x86_1.1.0.v20070416.jar"/> 116 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.debug.core_3.3.1.v20070731_r331.jar"/> 117 <pathelement path="../net.sourceforge.phpeclipse/compatibility.jar"/> 118 <pathelement path="../net.sourceforge.phpeclipse/bin/"/> 119 <pathelement path="../net.sourceforge.phpeclipse/phpeclipse.jar"/> 120 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.console_3.2.1.v20070824_r331.jar"/> 121 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.jface.text_3.3.1.r331_v20070629.jar"/> 122 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.text_3.3.0.v20070606-0010.jar"/> 123 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.workbench.texteditor_3.3.1.r331_v20070806.jar"/> 124 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.search_3.3.1.r331_v20070831-0800.jar"/> 125 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.filebuffers_3.3.1.r331_v20070829.jar"/> 126 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.ide_3.3.1.M20070910-0800b.jar"/> 127 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.views_3.2.101.M20070910-0800b.jar"/> 128 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.update.configurator_3.2.101.R33x_v20070810.jar"/> 129 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.update.core_3.2.101.R33x_v20070911.jar"/> 130 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.update.core.linux_3.2.0.v20070615.jar"/> 131 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.core.net_1.0.1.r33x_20070709.jar"/> 132 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.update.ui_3.2.100.v20070615.jar"/> 133 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.forms_3.3.0.v20070511.jar"/> 134 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.debug.ui_3.3.1.v20070731_r331.jar"/> 135 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.editors_3.3.1.r331_v20070629.jar"/> 136 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.team.core_3.3.1.r33x_20070807.jar"/> 137 <pathelement path="../net.sourceforge.phpeclipse.webbrowser/bin/"/> 138 <pathelement path="../net.sourceforge.phpeclipse.webbrowser/webbrowser.jar"/> 139 <pathelement path="../net.sourceforge.phpeclipse.externaltools/bin/"/> 140 <pathelement path="../net.sourceforge.phpeclipse.externaltools/externaltools.jar"/> 141 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.externaltools_3.1.200.v20070416.jar"/> 142 <pathelement path="../net.sourceforge.phpeclipse.ui/ui.jar"/> 143 <pathelement path="../net.sourceforge.phpeclipse.core/bin/"/> 144 <pathelement path="../net.sourceforge.phpeclipse.core/webcore.jar"/> 145 <pathelement path="../net.sourceforge.phpeclipse.xml.ui/xmlui.jar"/> 146 <pathelement path="../net.sourceforge.phpeclipse.xml.core/xmlcore.jar"/> 147 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.compare_3.3.1.r33x_20070906.jar"/> 148 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ltk.core.refactoring_3.3.1.r331_v20070829.jar"/> 149 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ltk.ui.refactoring_3.3.1.r331_v20070829.jar"/> 150 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.navigator_3.3.2.M20071022-1600a.jar"/> 151 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.team.ui_3.3.1.r33x_20070730.jar"/> 152 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.navigator.resources_3.3.1.M20070831-2000.jar"/> 153 <pathelement path="../../../../../../software/eclipse/eclipse.3.3.1.1/plugins/org.eclipse.ui.views.properties.tabbed_3.3.1.M20070831-0800.jar"/> 154 </path> 155 <!-- compile the source code --> 156 <javac destdir="${temp.folder}/core.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}" > 157 <compilerarg line="${compilerArg}" compiler="${build.compiler}"/> 158 <classpath refid="core.jar.classpath" /> 159 <src path="src/" /> 160 <compilerarg value="@${basedir}/javaCompiler.core.jar.args" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/> 161 <compilerarg line="-log '${temp.folder}/core.jar.bin${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/> 162 </javac> 163 <!-- Copy necessary resources --> 164 <copy todir="${temp.folder}/core.jar.bin" failonerror="true" overwrite="false"> 165 <fileset dir="src/"> 166 <exclude name="**/*.java"/> 167 <exclude name="**/package.htm*"/> 168 </fileset> 169 </copy> 170 <mkdir dir="${build.result.folder}"/> 171 <jar destfile="${build.result.folder}/core.jar" basedir="${temp.folder}/core.jar.bin"/> 172 <delete dir="${temp.folder}/core.jar.bin"/> 173 </target> 174 175 <target name="coresrc.zip" depends="init" unless="coresrc.zip"> 176 <mkdir dir="${build.result.folder}"/> 177 <zip destfile="${build.result.folder}/coresrc.zip" filesonly="false" whenempty="skip" update="false"> 178 <fileset dir="src/"> 179 <include name="**/*.java"/> 180 </fileset> 181 </zip> 182 </target> 183 184 <target name="build.jars" depends="init" description="Compile classes and build nested jars for the plug-in: net.sourceforge.phpeclipse.debug.core."> 185 <available property="core.jar" file="${build.result.folder}/core.jar"/> 186 <antcall target="core.jar"/> 187 </target> 188 189 <target name="build.sources" depends="init"> 190 <available property="coresrc.zip" file="${build.result.folder}/coresrc.zip"/> 191 <antcall target="coresrc.zip"/> 192 </target> 193 194 <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> 195 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD"/> 196 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD" failonerror="true" overwrite="false"> 197 <fileset dir="${build.result.folder}"> 198 <include name="core.jar"/> 199 </fileset> 200 </copy> 201 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD" failonerror="true" overwrite="false"> 202 <fileset dir="${basedir}"> 203 <include name="core.jar"/> 204 <include name=".template"/> 205 <include name="os/"/> 206 <include name="plugin.properties"/> 207 <include name="plugin.xml"/> 208 <include name="META-INF/"/> 209 <include name="icons/"/> 210 </fileset> 211 </copy> 212 <!--eclipse.versionReplacer path="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD" version="1.2.3.200910091456PRD"/--> 213 </target> 214 215 <target name="build.zips" depends="init"> 216 </target> 217 218 <target name="gather.sources" depends="init" if="destination.temp.folder"> 219 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD"/> 220 <copy file="${build.result.folder}/coresrc.zip" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD" failonerror="false" overwrite="false"/> 221 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD" failonerror="false" overwrite="false"> 222 <fileset dir="${basedir}"> 223 <include name="src/"/> 224 <include name="plugin.xml"/> 225 <include name="plugin.properties"/> 226 <include name="icons/"/> 227 <include name="build.properties"/> 228 <include name="META-INF/"/> 229 <include name=".template"/> 230 <include name=".project"/> 231 <include name=".cvsignore"/> 232 <include name=".classpath"/> 233 </fileset> 234 </copy> 235 </target> 236 237 <target name="gather.logs" depends="init" if="destination.temp.folder"> 238 <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD"/> 239 <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD" failonerror="false" overwrite="false"> 240 <fileset dir="${temp.folder}"> 241 <include name="core.jar.bin${logExtension}"/> 242 </fileset> 243 </copy> 244 </target> 245 246 <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.debug.core of all the zips, jars and logs created."> 247 <delete file="${build.result.folder}/core.jar"/> 248 <delete file="${build.result.folder}/coresrc.zip"/> 249 <delete file="${plugin.destination}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD.jar"/> 250 <delete file="${plugin.destination}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD.zip"/> 251 <delete dir="${temp.folder}"/> 252 </target> 253 254 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder."> 255 <eclipse.convertPath fileSystemPath="/data/builds/PHPEclipse/build/stable/plugins/net.sourceforge.phpeclipse.debug.core" property="resourcePath"/> 256 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> 257 </target> 258 259 <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: net.sourceforge.phpeclipse.debug.core."> 260 <delete dir="${temp.folder}"/> 261 <mkdir dir="${temp.folder}"/> 262 <antcall target="build.jars"/> 263 <antcall target="build.sources"/> 264 <antcall target="gather.bin.parts"> 265 <param name="destination.temp.folder" value="${temp.folder}/"/> 266 </antcall> 267 <antcall target="gather.sources"> 268 <param name="destination.temp.folder" value="${temp.folder}/"/> 269 </antcall> 270 <delete> 271 <fileset dir="${temp.folder}"> 272 <include name="**/*.bin${logExtension}"/> 273 </fileset> 274 </delete> 275 <zip destfile="${plugin.destination}/net.sourceforge.phpeclipse.debug.core_1.2.3.200910091456PRD.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/> 276 <delete dir="${temp.folder}"/> 277 </target> 278 279</project> 280