changes for new Action
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / build.xml
index 6ee95af..8bafe8b 100644 (file)
@@ -5,10 +5,13 @@
        <property name="ws" value="win32"/>
        <property name="os" value="win32"/>
        <property name="arch" value="x86"/>
+       <property name="javacFailOnError" value="false"/>
+       <property name="javacDebugInfo" value="on"/>
+       <property name="javacVerbose" value="true"/>
 
        <target name="init" depends="properties">
                <property name="plugin" value="net.sourceforge.phpeclipse.debug.ui"/>
-               <property name="version.suffix" value="_1.0.3"/>
+               <property name="version.suffix" value="_1.0.4"/>
                <property name="full.name" value="${plugin}${version.suffix}"/>
                <property name="temp.folder" value="${basedir}/temp.folder"/>
                <property name="plugin.destination" value="${basedir}"/>
                <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
        </target>
 
-       <target name="build.update.jar" depends="init">
+       <target name="build.update.jar" depends="init" description="Build the plug-in: net.sourceforge.phpeclipse.debug.ui for an update site.">
                <delete dir="${temp.folder}"/>
                <mkdir dir="${temp.folder}"/>
                <antcall target="build.jars"/>
                <antcall target="gather.bin.parts">
                        <param name="destination.temp.folder" value="${temp.folder}/"/>
                </antcall>
-               <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/>
+               <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false" update="no"/>
                <delete dir="${temp.folder}"/>
        </target>
 
                <copy file="${build.result.folder}/debug.jar" todir="${destination.temp.folder}/${full.name}"/>
        </target>
 
-       <target name="debug.jar" depends="init" unless="debug.jar">
+       <target name="debug.jar" depends="init" unless="debug.jar" description="Create jar: debug.jar.">
                <property name="destdir" value="${temp.folder}/debug.jar.bin"/>
                <delete dir="${temp.folder}/debug.jar.bin"/>
                <mkdir dir="${temp.folder}/debug.jar.bin"/>
                <!-- compile the source code -->
-               <javac destdir="${temp.folder}/debug.jar.bin" failonerror="false" verbose="true" debug="on" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="../net.sourceforge.phpeclipse.launching/launch.jar;../../plugins/org.eclipse.core.resources.win32_2.0.0/resources.jar;../net.sourceforge.phpeclipse/phpeclipse.jar;../../plugins/org.eclipse.debug.ui_2.0.0/dtui.jar;../../plugins/org.eclipse.debug.core_2.0.0/dtcore.jar;../../plugins/org.eclipse.swt_2.0.0/ws/${ws}/swt.jar;../../plugins/org.junit_3.7.0/bin;../net.sourceforge.phpeclipse.launching/bin;../../plugins/org.eclipse.debug.ui_2.0.0/bin;../../plugins/org.eclipse.core.boot_2.0.0/bin;../../plugins/org.eclipse.core.runtime_2.0.0/runtime.jar;../../plugins/org.eclipse.core.boot_2.0.0/boot.jar;../../plugins/org.eclipse.ui.win32_2.0.0/workbench.jar;../net.sourceforge.phpeclipse/bin;../../plugins/org.eclipse.debug.core_2.0.0/bin;../../plugins/org.eclipse.swt_2.0.0/bin;../../plugins/org.eclipse.core.resources_2.0.0/bin;../../plugins/org.eclipse.core.resources_2.0.0/resources.jar;../../plugins/org.eclipse.swt.win32_2.0.0/ws/${ws}/swt.jar;../../plugins/org.eclipse.ui_2.0.0/workbench.jar;../../plugins/org.eclipse.core.runtime_2.0.0/bin;../../plugins/org.junit_3.7.0/junit.jar;../../plugins/org.eclipse.ui_2.0.0/bin;../../plugins/org.eclipse.ui.win32_2.0.0/workbenchwin32.jar">
+               <javac destdir="${temp.folder}/debug.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="../../plugins/org.eclipse.core.boot_2.1.3/bin;../../plugins/org.eclipse.core.boot_2.1.3/boot.jar;../../plugins/org.eclipse.core.runtime_2.1.1/bin;../../plugins/org.eclipse.core.runtime_2.1.1/runtime.jar;../../plugins/org.apache.xerces_4.0.13/bin;../../plugins/org.apache.xerces_4.0.13/xmlParserAPIs.jar;../../plugins/org.apache.xerces_4.0.13/xercesImpl.jar;../../plugins/org.eclipse.core.resources_2.1.1/bin;../../plugins/org.eclipse.core.resources_2.1.1/resources.jar;../../plugins/org.eclipse.core.resources.win32_2.1.0/resources.jar;../../plugins/org.eclipse.ui_2.1.1/bin;../../plugins/org.eclipse.ui_2.1.1/ui.jar;../../plugins/org.eclipse.update.core_2.1.0/bin;../../plugins/org.eclipse.update.core_2.1.0/updatecore.jar;../../plugins/org.eclipse.update.core.win32_2.1.0/updatecore.jar;../../plugins/org.eclipse.help_2.1.2/bin;../../plugins/org.eclipse.help_2.1.2/help.jar;../../plugins/org.apache.lucene_1.2.1/bin;../../plugins/org.apache.lucene_1.2.1/parser.jar;../../plugins/org.apache.lucene_1.2.1/lucene-1.2.jar;../../plugins/org.eclipse.help.appserver_2.1.0/bin;../../plugins/org.eclipse.help.appserver_2.1.0/appserver.jar;../../plugins/org.eclipse.swt_2.1.3/bin;../../plugins/org.eclipse.swt_2.1.3/ws/${ws}/swt.jar;../../plugins/org.eclipse.swt.win32_2.1.2/ws/${ws}/swt.jar;../../plugins/org.eclipse.text_2.1.0/bin;../../plugins/org.eclipse.text_2.1.0/text.jar;../../plugins/org.eclipse.jface_2.1.1/bin;../../plugins/org.eclipse.jface_2.1.1/jface.jar;../../plugins/org.eclipse.jface.text_2.1.0/bin;../../plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar;../../plugins/org.eclipse.ui.views_2.1.0/bin;../../plugins/org.eclipse.ui.views_2.1.0/views.jar;../../plugins/org.eclipse.ui.workbench_2.1.1/bin;../../plugins/org.eclipse.ui.workbench_2.1.1/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/bin;../../plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/bin;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar;../../plugins/org.eclipse.ui.editors_2.1.0/bin;../../plugins/org.eclipse.ui.editors_2.1.0/editors.jar;../../plugins/org.eclipse.debug.core_2.1.2/bin;../../plugins/org.eclipse.debug.core_2.1.2/dtcore.jar;../../plugins/org.eclipse.debug.ui_2.1.2.1/bin;../../plugins/org.eclipse.debug.ui_2.1.2.1/dtui.jar;../net.sourceforge.phpeclipse.debug.core/bin;../net.sourceforge.phpeclipse.debug.core/core.jar;../../plugins/org.junit_3.8.1/bin;../../plugins/org.junit_3.8.1/junit.jar;../net.sourceforge.phpeclipse213/bin;../net.sourceforge.phpeclipse213/phpeclipse.jar;../../plugins/org.eclipse.ui.externaltools_2.1.1/bin;../../plugins/org.eclipse.ui.externaltools_2.1.1/externaltools.jar;../../plugins/org.apache.ant_1.5.3/bin;../../plugins/org.apache.ant_1.5.3/ant.jar;../../plugins/org.apache.ant_1.5.3/optional.jar;../../plugins/org.eclipse.ant.core_2.1.3/bin;../../plugins/org.eclipse.ant.core_2.1.3/antsupport.jar;../../plugins/org.eclipse.search_2.1.1/bin;../../plugins/org.eclipse.search_2.1.1/search.jar;../../plugins/org.eclipse.update.ui_2.1.2/bin;../../plugins/org.eclipse.update.ui_2.1.2/updateui.jar;../../plugins/org.eclipse.update.ui.win32_2.1.0/updateui.jar;../../plugins/org.eclipse.update.ui.win32_2.1.0/bin;../../plugins/org.eclipse.update.ui.win32_2.1.0/updateui32.jar;../../plugins/org.eclipse.update.ui.forms_2.1.0/bin;../../plugins/org.eclipse.update.ui.forms_2.1.0/forms.jar;../net.sourceforge.phpeclipse.launching/bin;../net.sourceforge.phpeclipse.launching/launch.jar">
                        <src path="src/"/>
                </javac>
                <!-- copy necessary resources -->
                <delete dir="${temp.folder}/debug.jar.bin"/>
        </target>
 
-       <target name="debugsrc.zip" depends="init" unless="debugsrc.zip">
+       <target name="debugsrc.zip" depends="init" unless="debug.jar">
                <mkdir dir="${build.result.folder}"/>
-               <zip zipfile="${build.result.folder}/debugsrc.zip" filesonly="false">
+               <zip zipfile="${build.result.folder}/debugsrc.zip" filesonly="false" update="no">
                        <fileset dir="src/" includes="**/*.java"/>
                </zip>
        </target>
 
-       <target name="build.jars" depends="init">
+       <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.debug.ui.">
                <available property="debug.jar" file="${build.result.folder}/debug.jar"/>
                <antcall target="debug.jar"/>
        </target>
@@ -69,8 +72,8 @@
                <antcall target="debugsrc.zip"/>
        </target>
 
-       <target name="build.zips" depends="init">
-       </target>
+               <target name="build.zips" depends="init">
+               </target>
 
        <target name="gather.sources" depends="init" if="destination.temp.folder">
                <mkdir dir="${destination.temp.folder}/${full.name}"/>
@@ -82,7 +85,7 @@
                <copy file="${temp.folder}/debug.jar.bin.log" todir="${destination.temp.folder}/${full.name}"/>
        </target>
 
-       <target name="clean" depends="init">
+       <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.debug.ui of all the zips, jars and logs created.">
                <delete file="${build.result.folder}/debug.jar"/>
                <delete file="${build.result.folder}/debugsrc.zip"/>
                <delete file="${plugin.destination}/${full.name}.jar"/>
        </target>
 
        <target name="refresh" depends="init" if="eclipse.running">
-               <eclipse.refreshLocal resource="${plugin}" depth="infinite"/>
+               <eclipse.convertPath fileSystemPath="C:\eclipse213\workspace\net.sourceforge.phpeclipse.debug.ui\" property="resourcePath"/>
+               <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
        </target>
 
-       <target name="zip.plugin" depends="init">
+       <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: net.sourceforge.phpeclipse.debug.ui.">
                <delete dir="${temp.folder}"/>
                <mkdir dir="${temp.folder}"/>
                <antcall target="build.jars"/>
                <delete>
                        <fileset dir="${temp.folder}" includes="**/*.bin.log"/>
                </delete>
-               <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true"/>
+               <antcall target="zip.folder"/>
                <delete dir="${temp.folder}"/>
        </target>
+       <target name="zip.folder" depends="init">
+               <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true" update="no" excludes="**/*.bin.log"/>
+       </target>
 
 </project>