Author: oberhack Date: Tue Sep 7 23:35:40 2004 New Revision: 43510 Added: avalon/trunk/central/laboratory/studio/eclipse/test/build.xml Log:
Added: avalon/trunk/central/laboratory/studio/eclipse/test/build.xml ============================================================================== --- (empty file) +++ avalon/trunk/central/laboratory/studio/eclipse/test/build.xml Tue Sep 7 23:35:40 2004 @@ -0,0 +1,290 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project name="org.apache.metro.studio.tests" default="build.jars" basedir="."> + + <property name="bootclasspath" value=""/> + <property name="basews" value="${ws}"/> + <property name="baseos" value="${os}"/> + <property name="basearch" value="${arch}"/> + <property name="basenl" value="${nl}"/> + <property name="javacFailOnError" value="false"/> + <property name="javacDebugInfo" value="on"/> + <property name="javacVerbose" value="true"/> + <property name="javacSource" value="1.3"/> + <property name="javacTarget" value="1.2"/> + <property name="compilerArg" value=""/> + + <target name="init" depends="properties"> + <condition property="pluginTemp" value="${buildTempFolder}/plugins"> + <isset property="buildTempFolder"/> + </condition> + <property name="pluginTemp" value="${basedir}"/> + <condition property="build.result.folder" value="${pluginTemp}/test"> + <isset property="buildTempFolder"/> + </condition> + <property name="build.result.folder" value="${basedir}"/> + <property name="temp.folder" value="${basedir}/temp.folder"/> + <property name="plugin.destination" value="${basedir}"/> + </target> + + <target name="properties" if="eclipse.running"> + <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> + </target> + + <target name="build.update.jar" depends="init" description="Build the plug-in: org.apache.metro.studio.tests 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}/org.apache.metro.studio.tests_0.1.1.jar" basedir="${temp.folder}/org.apache.metro.studio.tests_0.1.1" filesonly="false" whenempty="skip" update="false"/> + <delete dir="${temp.folder}"/> + </target> + + <target name="MetroStudioTests.jar" depends="init" unless="MetroStudioTests.jar" description="Create jar: MetroStudioTests.jar."> + <delete dir="${temp.folder}/MetroStudioTests.jar.bin"/> + <mkdir dir="${temp.folder}/MetroStudioTests.jar.bin"/> + <!-- compile the source code --> + <javac destdir="${temp.folder}/MetroStudioTests.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" source="${javacSource}" target="${javacTarget}" > + <compilerarg line="${compilerArg}"/> + <classpath> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui_3.0.0/ui.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.core.runtime_3.0.0/runtime.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.osgi_3.0.0/core.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.osgi_3.0.0/console.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.osgi_3.0.0/osgi.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.osgi_3.0.0/resolver.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.osgi_3.0.0/defaultAdaptor.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.osgi_3.0.0/eclipseAdaptor.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.help_3.0.0/help.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.swt_3.0.0/ws/${basews}/swt.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.swt.win32_3.0.0/ws/${basews}/swt.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.swt.win32_3.0.0"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jface_3.0.0/jface.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.workbench_3.0.0/compatibility.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.workbench_3.0.0/workbench.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.workbench.compatibility_3.0.0/compatibility.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.workbench.compatibility_3.0.0/workbench.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.core.expressions_3.0.0/expressions.jar"/> + <pathelement path="${build.result.folder}/../core/bin"/> + <pathelement path="${build.result.folder}/../core/MetroStudioCore.jar"/> + <pathelement path="${build.result.folder}/../core/lib/xstream-1.0.2.jar"/> + <pathelement path="${build.result.folder}/../core/lib/xdoclet-1.2b4.jar"/> + <pathelement path="${build.result.folder}/../core/lib/xjavadoc-1.0.jar"/> + <pathelement path="${build.result.folder}/../core/lib/commons-collections-2.0.jar"/> + <pathelement path="${build.result.folder}/../core/lib/commons-lang.jar"/> + <pathelement path="${build.result.folder}/../core/lib/commons-logging.jar"/> + <pathelement path="${build.result.folder}/../core/lib/avalon-util-defaults-1.2.1.jar"/> + <pathelement path="${build.result.folder}/../core/lib/avalon-util-env-1.1.1.jar"/> + <pathelement path="${build.result.folder}/../core/lib/metro-event-0.0.1.jar"/> + <pathelement path="${build.result.folder}/../core/lib/avalon-repository-api-2.0.0.jar"/> + <pathelement path="${build.result.folder}/../core/lib/avalon-repository-spi-2.0.0.jar"/> + <pathelement path="${build.result.folder}/../core/lib/avalon-repository-main-2.0.0.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.core.resources_3.0.0/resources.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.core.resources.win32_3.0.0/resources.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.core.resources.win32_3.0.0/resources-win32.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.core.runtime.compatibility_3.0.0/compatibility.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.update.configurator_3.0.0/configurator.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.core_3.0.0/jdtcore.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/com.swtdesigner.fragment.jdt.core_2.0.1/jdtcore.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/com.swtdesigner.fragment.jdt.core_2.0.1/designerJdtCore.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.text_3.0.0/text.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-antlr.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-apache-bsf.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-apache-resolver.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-commons-logging.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-commons-net.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-icontract.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-jai.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-jakarta-bcel.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-jakarta-log4j.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-jakarta-oro.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-jakarta-regexp.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-javamail.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-jdepend.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-jmf.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-jsch.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-junit.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-launcher.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-netrexx.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-nodeps.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-starteam.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-stylebook.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-swing.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-trax.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-vaj.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-weblogic.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-xalan1.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-xalan2.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.ant_1.6.1/lib/ant-xslp.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-antlr.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-apache-bsf.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-apache-resolver.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-commons-logging.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-commons-net.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-icontract.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-jai.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-jakarta-bcel.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-jakarta-log4j.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-jakarta-oro.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-jakarta-regexp.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-javamail.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-jdepend.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-jmf.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-jsch.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-junit.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-launcher.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-netrexx.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-nodeps.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-starteam.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-stylebook.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-swing.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-trax.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-vaj.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-weblogic.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-xalan1.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-xalan2.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.optional.junit_2.1.0/lib/ant-xslp.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.team.core_3.0.0/team.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.launching_3.0.0/launching.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.debug.core_3.0.0/dtcore.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.core.variables_3.0.0/variables.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.debug_3.0.0/jdi.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.debug_3.0.0/jdimodel.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.debug_3.0.0/tools.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.junit_3.8.1/junit.jar"/> + <pathelement path="${build.result.folder}/../ui/dist"/> + <pathelement path="${build.result.folder}/../ui/MetroStudioUI.jar"/> + <pathelement path="${build.result.folder}/../ui/lib/metro-event-0.0.1.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.views_3.0.0/views.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.workbench.texteditor_3.0.0/texteditor.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jface.text_3.0.0/jfacetext.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.editors_3.0.0/editors.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.ide_3.0.0/ide.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.win32_3.0.0/ide.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.win32_3.0.0/workbenchwin32.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.update.core_3.0.0/updatecore.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.update.core.win32_3.0.0/updatecore.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.update.ui_3.0.0/updateui.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.help.base_3.0.0/helpbase.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.lucene_1.3.0/parser.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.apache.lucene_1.3.0/lucene-1.3-final.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.help.appserver_3.0.0/appserver.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.forms_3.0.0/forms.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.core.filebuffers_3.0.0/filebuffers.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.pde.ui_3.0.0/pdeui.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.core_3.0.0/antsupport.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.debug.ui_3.0.0/dtui.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.console_3.0.0/console.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.debug.ui_3.0.0/jdiui.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.ui_3.0.0/jdt.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.search_3.0.0/search.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.compare_3.0.0/compare.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ltk.core.refactoring_3.0.0/refcore.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ltk.ui.refactoring_3.0.0/refui.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.pde_3.0.0/pde.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.pde.core_3.0.0/pdecore.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.intro_3.0.0/intro.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.cheatsheets_3.0.0/cheatsheets.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.pde.build_3.0.0/pdebuild.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ant.ui_3.0.0/antui.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.ui.externaltools_3.0.0/externaltools.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.junit_3.0.0/junitsupport.jar"/> + <pathelement path="C:/Eclipse/3.0/plugins/org.eclipse.jdt.junit.runtime_3.0.0/junitruntime.jar"/> + <pathelement path="${build.result.folder}/../launch/bin"/> + <pathelement path="${build.result.folder}/../launch/MetroStudioLaunch.jar"/> + <pathelement path="${build.result.folder}/../launch/lib/merlin-cli-3.3.0.jar"/> + <pathelement path="${build.result.folder}/../launch/lib/avalon-framework-api-4.2.0.jar"/> + <pathelement path="${build.result.folder}/../launch/lib/avalon-framework-impl-4.2.0.jar"/> + <pathelement path="${build.result.folder}/../launch/lib/avalon-meta-api-1.4.0.jar"/> + <pathelement path="${build.result.folder}/../launch/lib/avalon-meta-spi-1.4.0.jar"/> + <pathelement path="${build.result.folder}/../launch/lib/avalon-meta-impl-1.4.0.jar"/> + <pathelement path="${build.result.folder}/../launch/lib/avalon-meta-tools-1.4.0.jar"/> + <pathelement path="${build.result.folder}/../launch/lib/qdox-1.4.jar"/> + <pathelement path="lib/metro-event-0.0.1.jar"/> + </classpath> + <src path="src/" /> + </javac> + <!-- Copy necessary resources --> + <copy todir="${temp.folder}/MetroStudioTests.jar.bin" failonerror="true"> + <fileset dir="src/" excludes="**/*.java, **/package.htm*" /> + </copy> + <mkdir dir="${build.result.folder}"/> + <jar jarfile="${build.result.folder}/MetroStudioTests.jar" basedir="${temp.folder}/MetroStudioTests.jar.bin"/> + <delete dir="${temp.folder}/MetroStudioTests.jar.bin"/> + </target> + + <target name="MetroStudioTestssrc.zip" depends="init" unless="MetroStudioTestssrc.zip"> + <mkdir dir="${build.result.folder}"/> + <zip zipfile="${build.result.folder}/MetroStudioTestssrc.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: org.apache.metro.studio.tests."> + <available property="MetroStudioTests.jar" file="${build.result.folder}/MetroStudioTests.jar"/> + <antcall target="MetroStudioTests.jar"/> + </target> + + <target name="build.sources" depends="init"> + <available property="MetroStudioTestssrc.zip" file="${build.result.folder}/MetroStudioTestssrc.zip"/> + <antcall target="MetroStudioTestssrc.zip"/> + </target> + + <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> + <mkdir dir="${destination.temp.folder}/org.apache.metro.studio.tests_0.1.1"/> + <copy todir="${destination.temp.folder}/org.apache.metro.studio.tests_0.1.1" failonerror="true"> + <fileset dir="${build.result.folder}" includes="MetroStudioTests.jar" /> + </copy> + <copy todir="${destination.temp.folder}/org.apache.metro.studio.tests_0.1.1" failonerror="true"> + <fileset dir="${basedir}" includes="plugin.xml,MetroStudioTests.jar,lib/,test.xml,bin/" /> + </copy> + </target> + + <target name="build.zips" depends="init"> + </target> + + <target name="gather.sources" depends="init" if="destination.temp.folder"> + <mkdir dir="${destination.temp.folder}/org.apache.metro.studio.tests_0.1.1"/> + <copy file="${build.result.folder}/MetroStudioTestssrc.zip" todir="${destination.temp.folder}/org.apache.metro.studio.tests_0.1.1" failonerror="false"/> + </target> + + <target name="gather.logs" depends="init" if="destination.temp.folder"> + <mkdir dir="${destination.temp.folder}/org.apache.metro.studio.tests_0.1.1"/> + <copy file="${temp.folder}/MetroStudioTests.jar.bin.log" todir="${destination.temp.folder}/org.apache.metro.studio.tests_0.1.1" failonerror="false"/> + </target> + + <target name="clean" depends="init" description="Clean the plug-in: org.apache.metro.studio.tests of all the zips, jars and logs created."> + <delete file="${build.result.folder}/MetroStudioTests.jar"/> + <delete file="${build.result.folder}/MetroStudioTestssrc.zip"/> + <delete file="${plugin.destination}/org.apache.metro.studio.tests_0.1.1.jar"/> + <delete file="${plugin.destination}/org.apache.metro.studio.tests_0.1.1.zip"/> + <delete dir="${temp.folder}"/> + </target> + + <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder."> + <eclipse.convertPath fileSystemPath="D:/Avalon/studio/eclipse/test" property="resourcePath"/> + <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> + </target> + + <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.apache.metro.studio.tests."> + <delete dir="${temp.folder}"/> + <mkdir dir="${temp.folder}"/> + <antcall target="build.jars"/> + <antcall target="build.sources"/> + <antcall target="gather.bin.parts"> + <param name="destination.temp.folder" value="${temp.folder}/"/> + </antcall> + <antcall target="gather.sources"> + <param name="destination.temp.folder" value="${temp.folder}/"/> + </antcall> + <delete> + <fileset dir="${temp.folder}" includes="**/*.bin.log" /> + </delete> + <zip zipfile="${plugin.destination}/org.apache.metro.studio.tests_0.1.1.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/> + <delete dir="${temp.folder}"/> + </target> + +</project> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]