Refactory: phphelp plugin.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.js.core / build.xml
index 08cdd58..2dba85b 100644 (file)
                <antcall target="gather.bin.parts">
                        <param name="destination.temp.folder" value="${temp.folder}/"/>
                </antcall>
-               <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.js.core_0.0.9.jar" basedir="${temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9" filesonly="false" whenempty="skip" update="false"/>
+               <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.js.core_1.1.2.jar" basedir="${temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2" filesonly="false" whenempty="skip" update="false"/>
                <delete dir="${temp.folder}"/>
        </target>
 
-       <target name="net.sf.wdte.js.core.jar" depends="init" unless="net.sf.wdte.js.core.jar" description="Create jar: net.sf.wdte.js.core.jar.">
-               <delete dir="${temp.folder}/net.sf.wdte.js.core.jar.bin"/>
-               <mkdir dir="${temp.folder}/net.sf.wdte.js.core.jar.bin"/>
+       <target name="jscore.jar" depends="init" unless="jscore.jar" description="Create jar: jscore.jar.">
+               <delete dir="${temp.folder}/jscore.jar.bin"/>
+               <mkdir dir="${temp.folder}/jscore.jar.bin"/>
                <!-- compile the source code -->
-               <javac destdir="${temp.folder}/net.sf.wdte.js.core.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" source="${javacSource}" target="${javacTarget}"               >
+               <javac destdir="${temp.folder}/jscore.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" source="${javacSource}" target="${javacTarget}"            >
                        <compilerarg line="${compilerArg}"/>
                        <classpath>
-                               <pathelement path="../../plugins/org.eclipse.core.resources_3.0.0/resources.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.core.resources.win32_3.0.0/resources.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.core.resources.win32_3.0.0/resources-win32.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.core.runtime.compatibility_3.0.0/compatibility.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.core.runtime_3.0.0/runtime.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.osgi_3.0.0/core.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.osgi_3.0.0/console.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.osgi_3.0.0/osgi.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.osgi_3.0.0/resolver.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.osgi_3.0.0/defaultAdaptor.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.osgi_3.0.0/eclipseAdaptor.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.update.configurator_3.0.0/configurator.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.jface.text_3.0.0/jfacetext.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.text_3.0.0/text.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.swt_3.0.0/ws/${basews}/swt.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.swt.win32_3.0.0/ws/${basews}/swt.jar"/>
-                               <pathelement path="../../plugins/org.eclipse.swt.win32_3.0.0"/>
-                               <pathelement path="../../plugins/org.eclipse.jface_3.0.0/jface.jar"/>
-                               <pathelement path="net.sourceforge.phpeclipse.js.core.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources_3.0.1/resources.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources.win32_3.0.0/resources.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.core.resources.win32_3.0.0/resources-win32.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.core.runtime.compatibility_3.0.0/compatibility.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.core.runtime_3.0.1/runtime.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/core.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/console.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/osgi.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/resolver.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/defaultAdaptor.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.osgi_3.0.1/eclipseAdaptor.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.update.configurator_3.0.0/configurator.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.jface.text_3.0.1/jfacetext.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.text_3.0.1/text.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.swt_3.0.1/ws/${basews}/swt.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.swt.win32_3.0.1/ws/${basews}/swt.jar"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.swt.win32_3.0.1"/>
+                               <pathelement path="../../../eclipse301/plugins/org.eclipse.jface_3.0.0/jface.jar"/>
                        </classpath>
                        <src path="src/"                        />
                        </javac>
                <!-- Copy necessary resources -->
-               <copy todir="${temp.folder}/net.sf.wdte.js.core.jar.bin" failonerror="true">
+               <copy todir="${temp.folder}/jscore.jar.bin" failonerror="true">
                        <fileset dir="src/" excludes="**/*.java, **/package.htm*"                       />
                </copy>
                <mkdir dir="${build.result.folder}"/>
-               <jar jarfile="${build.result.folder}/net.sf.wdte.js.core.jar" basedir="${temp.folder}/net.sf.wdte.js.core.jar.bin"/>
-               <delete dir="${temp.folder}/net.sf.wdte.js.core.jar.bin"/>
+               <jar jarfile="${build.result.folder}/jscore.jar" basedir="${temp.folder}/jscore.jar.bin"/>
+               <delete dir="${temp.folder}/jscore.jar.bin"/>
        </target>
 
-       <target name="net.sf.wdte.js.coresrc.zip" depends="init" unless="net.sf.wdte.js.coresrc.zip">
+       <target name="jscoresrc.zip" depends="init" unless="jscoresrc.zip">
                <mkdir dir="${build.result.folder}"/>
-               <zip zipfile="${build.result.folder}/net.sf.wdte.js.coresrc.zip" filesonly="false" whenempty="skip" update="false">
+               <zip zipfile="${build.result.folder}/jscoresrc.zip" filesonly="false" whenempty="skip" update="false">
                        <fileset dir="src/" includes="**/*.java"                        />
                </zip>
        </target>
 
        <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.js.core.">
-               <available property="net.sf.wdte.js.core.jar" file="${build.result.folder}/net.sf.wdte.js.core.jar"/>
-               <antcall target="net.sf.wdte.js.core.jar"/>
+               <available property="jscore.jar" file="${build.result.folder}/jscore.jar"/>
+               <antcall target="jscore.jar"/>
        </target>
 
        <target name="build.sources" depends="init">
-               <available property="net.sf.wdte.js.coresrc.zip" file="${build.result.folder}/net.sf.wdte.js.coresrc.zip"/>
-               <antcall target="net.sf.wdte.js.coresrc.zip"/>
+               <available property="jscoresrc.zip" file="${build.result.folder}/jscoresrc.zip"/>
+               <antcall target="jscoresrc.zip"/>
        </target>
 
        <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
-               <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9"/>
-               <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9" failonerror="true">
-                       <fileset dir="${build.result.folder}" includes="net.sf.wdte.js.core.jar"                        />
+               <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2"/>
+               <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2" failonerror="true">
+                       <fileset dir="${build.result.folder}" includes="jscore.jar"                     />
                </copy>
-               <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9" failonerror="true">
-                       <fileset dir="${basedir}" includes="icons/,jseditorsrc.zip,plugin.xml,plugin.properties,net.sf.wdte.js.core.jar"                        />
+               <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2" failonerror="true">
+                       <fileset dir="${basedir}" includes="icons/,jscoresrc.zip,plugin.xml,plugin.properties,jscore.jar,cpl-v10.html"                  />
                </copy>
        </target>
 
        </target>
 
        <target name="gather.sources" depends="init" if="destination.temp.folder">
-               <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9"/>
-               <copy file="${build.result.folder}/net.sf.wdte.js.coresrc.zip" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9" failonerror="false"/>
-               <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9" failonerror="false">
-                       <fileset dir="${basedir}" includes="src/"                       />
+               <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2"/>
+               <copy file="${build.result.folder}/jscoresrc.zip" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2" failonerror="false"/>
+               <copy todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2" failonerror="false">
+                       <fileset dir="${basedir}" includes="src/,.classpath,.cvsignore,.project"                        />
                </copy>
        </target>
 
        <target name="gather.logs" depends="init" if="destination.temp.folder">
-               <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9"/>
-               <copy file="${temp.folder}/net.sf.wdte.js.core.jar.bin.log" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_0.0.9" failonerror="false"/>
+               <mkdir dir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2"/>
+               <copy file="${temp.folder}/jscore.jar.bin.log" todir="${destination.temp.folder}/net.sourceforge.phpeclipse.js.core_1.1.2" failonerror="false"/>
        </target>
 
        <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.js.core of all the zips, jars and logs created.">
-               <delete file="${build.result.folder}/net.sf.wdte.js.core.jar"/>
-               <delete file="${build.result.folder}/net.sf.wdte.js.coresrc.zip"/>
-               <delete file="${plugin.destination}/net.sourceforge.phpeclipse.js.core_0.0.9.jar"/>
-               <delete file="${plugin.destination}/net.sourceforge.phpeclipse.js.core_0.0.9.zip"/>
+               <delete file="${build.result.folder}/jscore.jar"/>
+               <delete file="${build.result.folder}/jscoresrc.zip"/>
+               <delete file="${plugin.destination}/net.sourceforge.phpeclipse.js.core_1.1.2.jar"/>
+               <delete file="${plugin.destination}/net.sourceforge.phpeclipse.js.core_1.1.2.zip"/>
                <delete dir="${temp.folder}"/>
        </target>
 
                <delete>
                        <fileset dir="${temp.folder}" includes="**/*.bin.log"                   />
                </delete>
-               <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.js.core_0.0.9.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
+               <zip zipfile="${plugin.destination}/net.sourceforge.phpeclipse.js.core_1.1.2.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
                <delete dir="${temp.folder}"/>
        </target>