Author: koen.aers(a)jboss.com
Date: 2008-12-01 21:44:54 -0500 (Mon, 01 Dec 2008)
New Revision: 12201
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/.project
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/allElements.xml
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/ant-contrib-LICENSE.txt
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/ant-contrib.jar
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/eclipse-test-framework-3.4.1.zip
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma.jar
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma.jar.version
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma_ant.jar
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/org.pluginbuilder.autotestsuite.feature-0.4.0.200805101600PRD.zip
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/run-tests.properties
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/run-tests.xml
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build.properties
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build_rcp.properties
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build_shared.xml
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/customTargets.xml
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/fetchSvnAll.xml
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/pluginbuilder-anttasks.jar
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/postBuild.xml
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/subversionSupport.xml
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/SVNCLIENTADAPTER-LICENSE
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/svnClientAdapter.jar
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/svnant.jar
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build.xml
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build_local.properties
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/maps/
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/maps/all.map
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/pluginbuilder.config
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/releases/
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/releases/HEAD.properties
Log:
initial import
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/.project
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/.project
(rev 0)
+++ trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/.project 2008-12-02 02:44:54
UTC (rev 12201)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.flow.jpdl4.builder</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ <nature>org.pluginbuilder.core.pluginBuilderNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/allElements.xml
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/allElements.xml
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/allElements.xml 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,96 @@
+<project name="allElements delegation and assemble customTargets.xml">
+<!-- FILE WILL BE OVERWRITTEN WHEN GENERATED -->
+ <target name="allElementsExceptSvnFetch"
unless="is.svn.fetch">
+ <antcall target="norcpbuild"/>
+ <antcall target="rcpbuild"/>
+ </target>
+
+ <target name="norcpbuild" unless="build.container.feature">
+ <ant antfile="${genericTargets}" target="${target}">
+ <property name="type" value="feature" />
+ <property name="id" value="org.jboss.tools.flow.jpdl4.feature"
/>
+ </ant>
+ <ant antfile="${genericTargets}" target="${target}">
+ <property name="type" value="feature" />
+ <property name="id" value="org.jboss.tools.flow.common.feature"
/>
+ </ant>
+
+ </target>
+
+ <target name="rcpbuild" if="build.container.feature">
+ <ant antfile="${genericTargets}" target="${target}">
+ <property name="type" value="feature" />
+ <property name="id"
value="org.eclipse.pde.build.container.feature" />
+ </ant>
+ </target>
+
+ <!-- generated assemble targets -->
+ <target name="assemble.org.jboss.tools.flow.jpdl4.feature">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="zipargs" value="" />
+ </ant>
+ </target>
+ <target name="assemble.org.jboss.tools.flow.common.feature">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="zipargs" value="" />
+ </ant>
+ </target>
+
+
+ <!-- assmble targets for RCP build -->
+ <target
name="assemble.org.eclipse.pde.build.container.feature.win32.win32.x86">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-win32.win32.x86.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.linux.gtk.x86">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-linux.gtk.x86.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.linux.gtk.ppc">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-linux.gtk.ppc.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.linux.gtk.x86_64">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-linux.gtk.x86_64.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.linux.motif.x86">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-linux.motif.x86.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.solaris.motif.sparc">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-solaris.motif.sparc.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.solaris.gtk.sparc">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-solaris.gtk.sparc.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.aix.motif.ppc">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-aix.motif.ppc.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.hpux.motif.PA_RISC">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-hpux.motif.PA_RISC.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.macosx.carbon.ppc">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-macosx.carbon.ppc.zip"/>
+ </ant>
+ </target>
+ <target
name="assemble.org.eclipse.pde.build.container.feature.macosx.carbon.x86">
+ <ant antfile="${assembleScriptName}"
dir="${buildDirectory}">
+ <property name="archiveName"
value="${archiveNamePrefix}-macosx.carbon.x86.zip"/>
+ </ant>
+ </target>
+</project>
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/ant-contrib-LICENSE.txt
===================================================================
---
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/ant-contrib-LICENSE.txt
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/ant-contrib-LICENSE.txt 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,47 @@
+/*
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 2001-2003 Ant-Contrib project. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Ant-Contrib project (
http://sourceforge.net/projects/ant-contrib)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The name Ant-Contrib must not be used to endorse or promote products
+ * derived from this software without prior written permission. For
+ * written permission, please contact
+ * ant-contrib-developers(a)lists.sourceforge.net.
+ *
+ * 5. Products derived from this software may not be called "Ant-Contrib"
+ * nor may "Ant-Contrib" appear in their names without prior written
+ * permission of the Ant-Contrib project.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE ANT-CONTRIB PROJECT OR ITS
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ */
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/ant-contrib.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/ant-contrib.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/eclipse-test-framework-3.4.1.zip
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/eclipse-test-framework-3.4.1.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma.jar.version
===================================================================
---
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma.jar.version
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma.jar.version 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,2 @@
+emma.jar is a patched 2.0.5312 which fixes an AIOB exception on 64 bit linux
+http://lukas.zapletalovi.com/blog:emma_code_coverage_tool_fixed_version
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma_ant.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/emma_ant.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/org.pluginbuilder.autotestsuite.feature-0.4.0.200805101600PRD.zip
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/org.pluginbuilder.autotestsuite.feature-0.4.0.200805101600PRD.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/run-tests.properties
===================================================================
---
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/run-tests.properties
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/run-tests.properties 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,91 @@
+# test.eclipse.host denotes the Eclipse installation which is the host for the test run.
+# The directory given here is expected to have an eclipse subdirectory.
+# The default is to use the same host as the build host but in general this should be
changed to
+# a separate installation. You can also set this directory to a non existing location and
provide
+# a zip file (see next property) which will then be extracted.
+# The test host does not have to be a full Java/PDE SDK, the Eclipse platform is fully
sufficient. Please ALWAYS USE FORWARD SLASHES.
+# @category testGeneral
+# @type Directory
+test.eclipse.host=${eclipseDir}/..
+
+# If you specify a non existing test.eclipse.host, you can provide a zipped Eclipse
installation here,
+# e.g. eclipse-platform-3.3.2-win32.zip. You can set the test.eclipse.host to a
subdirectory of the
+# buildDirectory if you want to have a fresh installation for every test run, e.g.
test.eclipse.host=${buildDirectory}/testhost
+# @category testGeneral
+# @type File
+test.eclipse.zip=
+
+# The location of the Eclipse extension site. It consists of the built features,
+# the Eclipse test framework and the autotestsuite. The extension site will be
+# added with the standalone update manager to ${test.eclipse.host}.
+# @category testGeneral
+# @type Directory
+test.eclipseExtensionDirectory=${buildDirectory}/eclipseextension/eclipse
+
+# Enable the autotestsuite trace in order to see which plugins and classes the
autotestsuite searches for tests.
+# Useful for debugging the filter expressions below.
+# @category testGeneral
+# @type Boolean
+autotestsuite.trace=true
+
+# Decides if the autotestsuite should run headless or not. Running headless means that
the workbench does
+# not get started and the tests are executed directly instead. Cannot be used for UI
tests, therefore.
+# @category testGeneral
+# @type Boolean
+autotestsuite.headless=false
+
+# Set the test application which the autoTestApplication runs with the test harness in
place. This is useful to
+# test the UI of an RCP application. This property is ignored if the headless mode is
turned on.
+# @category testGeneral
+#autotest.testapplication=org.eclipse.ide.ui.workbench
+
+# Directory where the reports are collected
+# @category testHidden
+test.result.dir=${buildDirectory}/test-reports
+
+# Specifies the overall report in ${test.result.dir}/xml
+# @category testHidden
+test.aggregated.report=testReport_${buildLabel}.xml
+
+# Workspace for the tests. Particularly useful is ${test.workspace}/.metadata/.log
+# @category testHidden
+test.workspace=${buildDirectory}/test-workspace
+
+# Defaults for autotestsuite
+# @category testHidden
+autotestsuite.plugin.inclusions=
+
+# Defaults for autotestsuite
+# @category testHidden
+autotestsuite.plugin.exclusions=
+
+# Defaults for autotestsuite
+# @category testHidden
+autotestsuite.class.inclusions=
+
+# Defaults for autotestsuite
+# @category testHidden
+autotestsuite.class.exclusions=
+
+# Denotes the ant script where the target ui-test is defined. Note that this property is
+# only necessary if you want to use the Eclipse test framework to run your test. If you
+# run the tests with the autotestsuite (i.e. you use the include/exclude filters below)
+# this property is not being used.
+# @category testHidden
+test.library.xml=${test.eclipseExtensionDirectory}/plugins/org.eclipse.test_3.1.0/library.xml
+
+# Enablement for code coverage.
+# @category testCoverage
+# @type Boolean
+pluginbuilder.is.runcoverage=false
+
+# Take a look at
http://emma.sourceforge.net/reference/ch02s06s02.html#filtersyntax.ANT
for the filter syntax.
+# @category testCoverage
+pluginbuilder.coverage.exclusionfilter=
+
+# @category testCoverage
+pluginbuilder.coverage.inclusionfilter=
+
+# Place for runtime data.
+# @category coverageHidden
+emma.coverage.output=${buildDirectory}/coverage.ec
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/run-tests.xml
===================================================================
---
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/run-tests.xml
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/automatedTests/run-tests.xml 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,255 @@
+<project name="Run automated Tests" default="run"
basedir=".">
+ <taskdef
resource="org/pluginbuilder/anttasks/pluginbuildertasks.properties"
classpath="../pluginbuilder-anttasks.jar" />
+ <typedef
resource="org/pluginbuilder/anttasks/pluginbuildertypes.properties"
classpath="../pluginbuilder-anttasks.jar" />
+
+ <GetHostName />
+ <property file="../../build_${hostname}.properties" />
+ <property file="../../build_local.properties" />
+ <property file="run-tests.properties" />
+ <property name="test.eclipse.host.eclipse"
value="${test.eclipse.host}/eclipse" />
+
+ <import file="../build_shared.xml" />
+
+ <condition property="is.emma">
+ <equals arg1="${pluginbuilder.is.runcoverage}" arg2="true"/>
+ </condition>
+
+ <target name="-init" depends="-emmaInit">
+ <antcall target="-unpackEclipse"/>
+ <antcall target="-installEclipseExtensionLocation"/>
+ <antcall target="umAddSite" />
+ <!-- Useful for debugging
+ <antcall target="umListFeaturesSite" />
+ -->
+ </target>
+
+ <target name="-installEclipseExtensionLocation">
+ <echo message="Installing plug-ins for testing into eclipse extension
location" />
+ <mkdir dir="${test.eclipseExtensionDirectory}"/>
+ <condition property="buildResultZipDest"
value="${test.eclipseExtensionDirectory}/.."
else="${test.eclipseExtensionDirectory}">
+ <equals arg1="${archivePrefix}" arg2="eclipse" />
+ </condition>
+ <unzip dest="${buildResultZipDest}">
+ <fileset dir="${buildDirectory}"
includes="${buildType}-**/*.zip"
excludes="**/${archiveNamePrefix}-*"/>
+ </unzip>
+ <antcall target="-emmaInstrument"/>
+ <unzip dest="${test.eclipseExtensionDirectory}/..">
+ <fileset dir="." includes="eclipse-test-framework*.zip" />
+ </unzip>
+ <unzip dest="${test.eclipseExtensionDirectory}">
+ <fileset dir="."
includes="org.pluginbuilder.autotestsuite*.zip" />
+ </unzip>
+ <echo
file="${test.eclipseExtensionDirectory}/.eclipseextension">id=org.eclipse.platform
+name=Eclipse Platform
+version=3.1.0</echo>
+ </target>
+
+ <target name="-unpackEclipse"
unless="isEclipseInstallationAvailable">
+ <antcall target="unpack.eclipse">
+ <param name="eclipse.installation.dir"
value="${test.eclipse.host.eclipse}"/>
+ <param name="eclipse.local.tar.non.server"
value="${test.eclipse.zip}"/>
+ </antcall>
+ </target>
+
+ <!-- Example target which demonstrates how to run a test suite with the Eclipse test
fwk.
+ Note that it is not needed if you use the autotestsuite
+
+ <target name="-runTestSuite" description="Should be called from
allTests.xml only">
+ <ant target="core-test" antfile="${test.library.xml}"
dir="${test.eclipse.host.eclipse}">
+ --><!-- inject additional properties for Eclipse startup with data-dir property
--><!--
+ <property name="data-dir" value="${test.workspace} -clean -dev
${basedir}/emma.jar" />
+ <property name="plugin-name" value="org.rssowl.core.tests"
/>
+ <property name="classname"
value="org.rssowl.core.tests.AllTests" />
+ <property name="eclipse-home"
value="${test.eclipse.host.eclipse}" />
+ <property name="extraVMargs"
value="-Demma.coverage.out.file=${emma.coverage.output}" />
+ </ant>
+ </target>
+
+ <target name="run" depends="-init,-runTestSuite,-emmaReport"
description="Run manually defined tests and create a report.">
+ <antcall target="umRemoveSite" />
+ <delete dir="${test.result.dir}" />
+ <mkdir dir="${test.result.dir}/xml" />
+ --><!-- collect creates an aggregated report file in ${test.eclipse.host}
--><!--
+ <ant target="collect" antfile="${test.library.xml}"
dir="${test.eclipse.host.eclipse}">
+ <property name="includes" value="*.xml" />
+ <property name="output-file" value="${test.aggregated.report}"
/>
+ </ant>
+ <copy file="${test.eclipse.host.eclipse}/${test.aggregated.report}"
todir="${test.result.dir}/xml" />
+
+ <BundleFileLocator
eclipseInstallationRoot="${test.eclipseExtensionDirectory}"
bundleId="org.pluginbuilder.autotestsuite.application"
filePath="JUNIT.XSL" property="junit.xsl.file" />
+ <style style="${junit.xsl.file}"
basedir="${test.result.dir}/xml" destdir="${test.result.dir}/html"
/>
+
+ <antcall target="-checkTestResultFileForErrors"/>
+ </target>
+ -->
+
+ <target name="run" depends="-init,-runAutoTests,-emmaReport"
description="Run all tests using the autotestsuite and create xml and html
reports.">
+ <antcall target="umRemoveSite" />
+ <junitreport todir="${test.result.dir}/xml"
tofile="${test.aggregated.report}">
+ <fileset dir="${test.result.dir}/xml">
+ <include name="*.xml" />
+ </fileset>
+ </junitreport>
+
+ <BundleFileLocator
eclipseInstallationRoot="${test.eclipseExtensionDirectory}"
bundleId="org.pluginbuilder.autotestsuite.application"
filePath="JUNIT.XSL" property="junit.xsl.file" />
+
+ <style style="${junit.xsl.file}"
basedir="${test.result.dir}/xml" includes="${test.aggregated.report}"
destdir="${test.result.dir}/html" />
+ </target>
+
+ <target name="-markErrorOrFailure" if="isErrorOrFailure">
+ <!-- Write Message to stderr and continue the build. Do not let the build fail so
that
+ other tasks which come afterwards can be completed. E.g. packaging might take
place
+ after test execution -->
+ <echo level="error" message="TESTS FAILED"/>
+ </target>
+
+ <target name="-checkTestResultFileForErrors"
unless="isErrorOrFailure" description="Check test result file for errors.
Not needed for autotestsuite where the return status is used to signal a failed
build.">
+ <echo message="Checke auf Fehler: ${test.aggregated.report}"/>
+
+ <condition property="isErrorOrFailure">
+ <hasErrorOrFailure
reportFile="${test.result.dir}/xml/${test.aggregated.report}" />
+ </condition>
+
+ <antcall target="-markErrorOrFailure" />
+ </target>
+
+ <target name="-runAutoTests">
+ <mkdir dir="${test.result.dir}/xml"/>
+ <BundleFileLocator eclipseInstallationRoot="${test.eclipse.host.eclipse}"
bundleId="org.eclipse.equinox.launcher" property="equinoxjar" />
+ <condition property="optJvmArg" else="-DdummyVar=NotOnMac"
value="-XstartOnFirstThread">
+ <os family="mac"/>
+ </condition>
+ <condition property="testApplication" else=""
value="-testApplication ${autotest.testapplication}">
+ <isset property="autotest.testapplication"/>
+ </condition>
+ <java fork="true" dir="." logError="true"
classname="org.eclipse.core.launcher.Main"
resultproperty="autotestsuite.result">
+
+ <arg line="-application
org.pluginbuilder.autotestsuite.application.autoTestApplication ${testApplication}"
/>
+ <arg line="-data ${test.workspace}" />
+ <arg line="-os ${os}" />
+ <arg line="-ws ${ws}" />
+ <arg line="-arch ${arch}" />
+ <arg line="-clean" />
+ <arg line="-consolelog" />
+ <arg line="-dev ${basedir}/emma.jar" />
+
+ <jvmarg value="-Demma.coverage.out.file=${emma.coverage.output}"/>
+ <jvmarg value="${optJvmArg}"/>
+ <jvmarg value="-Xmx512m"/>
+
+ <sysproperty key="autotestsuite.results.directory"
value="${test.result.dir}/xml" />
+ <sysproperty key="autotest.debug"
value="${autotestsuite.trace}" />
+ <sysproperty key="autotestsuite.headless"
value="${autotestsuite.headless}" />
+ <sysproperty key="autotestsuite.plugin.inclusions"
value="${autotestsuite.plugin.inclusions}" />
+ <sysproperty key="autotestsuite.plugin.exclusions"
value="${autotestsuite.plugin.exclusions}|^org.eclipse.test$" />
+ <sysproperty key="autotestsuite.class.inclusions"
value="${autotestsuite.class.inclusions}" />
+ <sysproperty key="autotestsuite.class.exclusions"
value="${autotestsuite.class.exclusions}" />
+
+ <classpath>
+ <pathelement location="${equinoxjar}" />
+ </classpath>
+ </java>
+ <condition property="isErrorOrFailure">
+ <not>
+ <equals arg1="${autotestsuite.result}" arg2="0"/>
+ </not>
+ </condition>
+
+ <antcall target="-markErrorOrFailure"/>
+ </target>
+
+ <target name="umAddSite">
+ <echo message="Adding Extension Site to ${test.eclipse.host}. Might fail if
extension already exists."/>
+ <!-- the addSite calls fails if the extension site already exists (for example
because it was not removed properly
+ from a previous build. Nonetheless the tests can proceed -->
+ <antcall target="updateManager">
+ <param name="updateManagerCommand" value="addSite"/>
+ <param name="updateManagerCommandParam" value="-from"/>
+ <param name="updateManagerCommandSiteUrl"
value="${test.eclipseExtensionDirectory}"/>
+ <param name="updateManagerCommandFailOnError"
value="false"/>
+ </antcall>
+ </target>
+
+ <target name="umRemoveSite">
+ <!-- This command might fail if the Extension Site has never been added or was
properly removed before. -->
+ <echo message="Removing Extension Site from ${test.eclipse.host}."/>
+
+ <antcall target="updateManager">
+ <param name="updateManagerCommand" value="removeSite"/>
+ <param name="updateManagerCommandParam" value="-to"/>
+ <param name="updateManagerCommandSiteUrl"
value="${test.eclipseExtensionDirectory}"/>
+ <param name="updateManagerCommandFailOnError"
value="false"/>
+ </antcall>
+ </target>
+
+ <target name="umListFeaturesSite">
+ <antcall target="updateManager">
+ <param name="updateManagerCommand" value="listFeatures"/>
+ <param name="updateManagerCommandParam" value="-from"/>
+ <param name="updateManagerCommandSiteUrl"
value="${test.eclipseExtensionDirectory}"/>
+ <param name="updateManagerCommandFailOnError"
value="false"/>
+ </antcall>
+
+ </target>
+
+ <target name="updateManager">
+ <BundleFileLocator eclipseInstallationRoot="${test.eclipse.host.eclipse}"
bundleId="org.eclipse.equinox.launcher" property="equinoxjar" />
+ <java classname="org.eclipse.equinox.launcher.Main" fork="true"
failonerror="${updateManagerCommandFailOnError}">
+ <arg value="-ws" />
+ <arg value="${ws}" />
+ <arg value="-os" />
+ <arg value="${os}" />
+ <arg value="-application" />
+ <arg value="org.eclipse.update.core.standaloneUpdate" />
+ <arg value="-command" />
+ <arg value="${updateManagerCommand}" />
+ <arg value="${updateManagerCommandParam}" />
+ <arg value="${updateManagerCommandSiteUrl}" />
+
+ <classpath>
+ <pathelement location="${equinoxjar}" />
+ </classpath>
+
+ </java>
+ </target>
+
+
+
+ <target name="-emmaInit" if="is.emma">
+ <path id='emma.lib' >
+ <fileset dir='.' includes='*.jar' />
+ </path>
+ <taskdef resource='emma_ant.properties' classpathref='emma.lib'
/>
+ </target>
+
+ <target name="-emmaReport" if="is.emma">
+ <mkdir dir="${test.result.dir}/coverage" />
+ <emma enabled="${pluginbuilder.is.runcoverage}">
+ <report encoding="UTF-8">
+ <fileset dir="${buildDirectory}" includes="*.emma"/>
+ <fileset file="${emma.coverage.output}"/>
+ <html outfile="${test.result.dir}/coverage/coverage.html" />
+
+ <sourcepath>
+ <dirset dir="${buildDirectory}/plugins">
+ </dirset>
+ </sourcepath>
+
+ </report>
+ </emma>
+ </target>
+
+ <target name="-emmaInstrument" if="is.emma">
+ <!-- <emma enabled="${pluginbuilder.is.runcoverage}"> -->
+ <emma>
+ <instr verbosity="info"
metadatafile="${buildDirectory}/metadata.emma" mode="overwrite">
+ <instrpath>
+ <fileset dir="${test.eclipseExtensionDirectory}"
includes="**/*.jar" excludes="**/emma*.jar"/>
+ <dirset dir="${test.eclipseExtensionDirectory}/plugins"
includes="*" />
+ </instrpath>
+ <!--
http://emma.sourceforge.net/reference/ch02s06s02.html#filtersyntax.ANT
-->
+ <filter includes="${pluginbuilder.coverage.inclusionfilter}"
excludes="${pluginbuilder.coverage.exclusionfilter}" />
+ </instr>
+ </emma>
+ </target>
+</project>
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build.properties
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build.properties
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build.properties 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,210 @@
+# The prefix that will be used inside the generated archive. This should be set to
eclipse
+# so that the archive can be directly unzipped into the dropins directory of the
+# Eclipse installation.
+# @category packaging
+archivePrefix=eclipse
+
+# The location under which all of the build output will be collected.
+# @category packaging
+collectingFolder=${archivePrefix}
+
+# Choose configurations if you want to build configuration specific plug-ins. However, if
you
+# only want to create RCP distributables for different platforms do not change the
default
+# *,*,*. If you select any other entry than *,*,* you also have to provide an assemble
task in allElements.xml.
+# @category compiling
+# @type list
separator=&;values=*,*,*&win32,win32,x86&linux,gtk,ppc&linux,gtk,x86 &
linux,gtk,x86_64 & linux,motif,x86 & solaris,motif,sparc & solaris,gtk,sparc
& aix,motif,ppc & hpux,motif,PA_RISC & macosx,carbon,ppc &
macosx,carbon,x86
+#configs=*,*,*
+
+
+# By default PDE creates one archive (result) per entry listed in the configs property.
+# Setting this value to true will cause PDE to only create one output containing all
+# artifacts for all the platforms listed in the configs property.
+# @category packaging
+# @type Boolean
+#groupConfigurations=false
+
+#The format of the archive. By default a zip is created using antZip.
+#The list can only contain the configuration for which the desired format is different
than zip.
+# E.g. win32,win32,x86 - antZip
+#archivesFormat=
+
+# Set to true for Jnlp generation
+# @category jnlp
+# @type Boolean
+# generateJnlp=false
+
+# Codebase should be a URL that will be used as the root of all relative URLs in the
output.
+# @category jnlp
+#jnlp.codebase=<codebase url>
+
+# @category jnlp
+#jnlp.j2se=<j2se version>
+
+# @category jnlp
+#jnlp.locale=<a locale>
+
+# Generate <offlineAllowed/> attribute in the generated features
+# @category jnlp
+# @type Boolean
+#jnlp.generateOfflineAllowed=
+
+# Set to ${configs} in order to filter the content of the generated jnlp files based on
the configuration being built
+# @category jnlp
+# @type enum values=${configs}
+# jnlp.configs=
+
+# Check if you want to sign jars
+# @type Boolean
+# @category jarsigning
+#signJars=false
+
+# The Alias used for signing jars
+# @category jarsigning
+#sign.alias=
+
+# A path to the keystore used for signing jars
+# @category jarsigning
+#sign.keystore=
+
+# The password for the keystore
+# @category jarsigning
+#sign.storepass=
+
+#Arguments to send to the zip executable
+# @category packaging
+zipargs=
+
+#Arguments to send to the tar executable
+# @category packaging
+tarargs=
+
+# Control the creation of a file containing the version included in each configuration -
on by default
+# @type Boolean
+#generateVersionsLists=true
+
+# Indicates whether you want the set of plug-ins and features to be considered during the
build to be limited to the ones reachable from the features / plugins being built
+# @type Boolean
+filteredDependencyCheck=false
+
+# Indicates whether the resolution should be done in development mode (i.e. ignore
multiple bundles with singletons)
+# @type Boolean
+resolution.devMode=false
+
+#pluginPath is a list of locations in which to find plugins and features. This list is
separated by the platform file separator (; or :)
+#a location is one of:
+#- the location of the jar or folder that is the plugin or feature : /path/to/foo.jar or
/path/to/foo
+#- a directory that contains a /plugins or /features subdirectory
+#- the location of a feature.xml, or for 2.1 style plugins, the plugin.xml or
fragment.xml
+#pluginPath=
+
+
+# The location of the Java jars to compile against. Typically the rt.jar for your
JDK/JRE
+# @category compiling
+# bootclasspath=${java.home}/lib/rt.jar
+
+# @category executionEnvironment
+#CDC-1.0/Foundation-1.0=
+# @category executionEnvironment
+#CDC-1.1/Foundation-1.1=
+# @category executionEnvironment
+#OSGi/Minimum-1.0=
+# @category executionEnvironment
+#OSGi/Minimum-1.1=
+# @category executionEnvironment
+#JRE-1.1=
+# @category executionEnvironment
+#J2SE-1.2=
+# @category executionEnvironment
+#J2SE-1.3=
+# @category executionEnvironment
+#J2SE-1.4=
+# @category executionEnvironment
+#J2SE-1.5=
+# @category executionEnvironment
+#JavaSE-1.6=
+# @category executionEnvironment
+#PersonalJava-1.1=
+# @category executionEnvironment
+#PersonalJava-1.2=
+# @category executionEnvironment
+#CDC-1.0/PersonalBasis-1.0=
+# @category executionEnvironment
+#CDC-1.0/PersonalJava-1.0=
+# @category executionEnvironment
+#CDC-1.1/PersonalBasis-1.1=
+# @category executionEnvironment
+#CDC-1.1/PersonalJava-1.1=
+
+# Specify the output format of the compiler log when eclipse jdt is used
+# @category compiling
+logExtension=.log
+
+# Whether or not to include debug info in the output jars
+# @category compiling
+# @type Boolean
+javacDebugInfo=true
+
+# Whether or not to fail the build if there are compiler errors
+# @category compiling
+# @type Boolean
+javacFailOnError=true
+
+# Enable or disable verbose mode of the compiler
+# @category compiling
+# @type Boolean
+javacVerbose=true
+
+# Extra arguments for the compiler. These are specific to the java compiler being used.
+# @category compiling
+#compilerArg=
+
+# Default value for the version of the source code. This value is used when compiling
plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in
build.properties
+# @type enum values=1.1,1.2,1.3,1.4,1.5,1.6
+# @category compiling
+#javacSource=1.3
+javacSource=1.5
+
+# Default value for the version of the byte code targeted. This value is used when
compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set
javacTarget in build.properties.
+# @type enum values=1.1,1.2,1.3,1.4,1.5,1.6
+# @category compiling
+#javacTarget=1.1
+javacTarget=1.5
+
+# Set the description for the update site. The update manager shows the description in
the Updates dialog.
+# @category updateSite
+updateSiteDescription=jBPM jPDL 4 GPD Update Site
+
+# There will be one category for the generated update site. Here you can set the name.
+# It is more like an id with which features refer to their category and does not appear
in the GUI.
+# @category updateSite
+updateSiteCategoryName=Builds
+
+# Here you can set the Label of the category which will be displayed in the Updates
dialog.
+# @category updateSite
+updateSiteCategoryLabel=Nightly Builds
+
+# Create a provisioning (p2) repository. Since Eclipse 3.4 it is recommended that you
create
+# a p2 repository for your features.
+# However, the installation of old-style (pre p2) update sites is still possible.
+# @type Boolean
+# @category p2
+generate.p2.metadata=true
+
+# @category hidden
+p2.metadata.repo=file:${buildDirectory}/repo
+
+# @category hidden
+p2.artifact.repo=file:${buildDirectory}/repo
+
+# The name of the metadata repository. The Update Manager will display this name.
+# @category p2
+p2.metadata.repo.name=jPDL4 GPD Update Site
+
+# The name of the artifacts repository
+# @category p2
+p2.artifact.repo.name=Artifact Repo Name
+
+# @category hidden
+p2.flavor=tooling
+# @category hidden
+p2.publish.artifacts=true
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build_rcp.properties
===================================================================
---
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build_rcp.properties
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build_rcp.properties 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,37 @@
+# The name of the Product Configuration file (.product). You can either put a product
file in the root
+# folder of this pluginbuilder project and specify its name here. Or you can use an
existing product file
+# from one of your plug-ins by specifying a path like
${buildDirectory}/plugins/<your-plugin>/<your-product>.product.
+# This field is mandatory.
+# @category rcp
+product=
+
+# Select the platforms for which you want to create RCP deliverables.
+# @category rcp
+# @type list separator=&;values=win32,win32,x86&linux,gtk,ppc&linux,gtk,x86
& linux,gtk,x86_64 & linux,motif,x86 & solaris,motif,sparc &
solaris,gtk,sparc & aix,motif,ppc & hpux,motif,PA_RISC & macosx,carbon,ppc
& macosx,carbon,x86
+configs=win32,win32,x86
+
+# Prefix for the created archive file name. The archive name always contains the
configuration. The prefix and configuration are divided by a minus character. If you want
to include the version you can reference the property ${version.full}, a sample value for
archiveNamePrefix is myRcpApp-${version.full}
+# @category rcp
+archiveNamePrefix=
+
+# You need to set this to true in order to get archives for your configurations.
+# @category rcp
+# @type Boolean
+# runPackager=false
+runPackager=true
+
+# A Pluginbuilder property which prevents running the postBuild target. Since the RCP
+# build is usually run after a regular build which includes the postBuild phase
no.postBuild
+# should be activated for RCP builds
+# @category rcp_hidden
+# @type Boolean
+no.postBuild=true
+
+# Another Pluginbuilder property which should be activated for RCP builds
+# @category rcp_hidden
+# @type Boolean
+build.container.feature=true
+
+# Set the root path in the platform specific packages
+# @category packaging
+# archivePrefix=
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build_shared.xml
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build_shared.xml
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/build_shared.xml 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,116 @@
+<project name="Shared build targets">
+ <!-- the following properties must be set from the calling script
+ <property name="eclipse.installation.dir"
value="${buildDirectory}"/>
+ <property name="eclipse.local.tar.non.server"
value="${test.eclipse.zip}"/>
+ eclipse.download.cache,pluginbuilder.eclipse.url
+ optional:
+ <property name="pluginbuilder.additional.feature.urls"
value="featureurl1,featureurl2"/>
+ -->
+
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties"
classpath="${buildHome}/build-files/ant-contrib.jar" />
+
+ <target name="unpack.eclipse">
+ <condition property="unpack.eclipse">
+ <not>
+ <available type="dir" file="${eclipse.installation.dir}"/>
+ </not>
+ </condition>
+ <antcall target="-unpack.eclipse.ifnecessary"/>
+ </target>
+
+ <!-- call either with or feature.url or pluginbuilder.eclipse.url
+ sets property archive.location to the archive path in download cache.
+ -->
+ <target name="-set.archive.location"
if="pluginbuilder.is.server">
+ <!-- set default, useful for server where pluginbuilder.eclipse.url.default can be
specified in build_local.properties -->
+ <property name="pluginbuilder.eclipse.url"
value="${pluginbuilder.eclipse.url.default}"/>
+ <condition property="archive.url" value="${feature.url}"
else="${pluginbuilder.eclipse.url}">
+ <isset property="feature.url"/>
+ </condition>
+ <mkdir dir="${eclipse.download.cache}"/>
+ <tempfile destdir="${eclipse.download.cache}"
property="tmp.file" suffix=".txt"
prefix="downloadurl"/>
+ <echo file="${tmp.file}" message="${archive.url}"/>
+ <checksum file="${tmp.file}"
property="pluginbuilder.eclipse.url.checksum"/>
+ <delete file="${tmp.file}"/>
+ <property name="archive.location"
value="${eclipse.download.cache}/${pluginbuilder.eclipse.url.checksum}"/>
+ <!-- <echo message="${archive.location} is archive location for
${archive.url}"/> -->
+ </target>
+
+ <target name="-set.eclipse.local.tar.server"
if="pluginbuilder.is.server" depends="-set.archive.location">
+ <property name="eclipse.local.tar"
value="${archive.location}"/>
+ </target>
+
+ <target name="-set.eclipse.local.tar.non.server"
unless="pluginbuilder.is.server">
+ <property name="eclipse.local.tar"
value="${eclipse.local.tar.non.server}"/>
+ </target>
+
+ <target name="-get.archive.ifnecessary"
unless="eclipse.is.downloaded">
+ <condition property="archive.url" value="${feature.url}"
else="${pluginbuilder.eclipse.url}">
+ <isset property="feature.url"/>
+ </condition>
+ <get src="${archive.url}" dest="${archive.location}" />
+ </target>
+
+ <target name="-get.archive" depends="-set.archive.location"
if="pluginbuilder.is.server">
+ <condition property="eclipse.is.downloaded">
+ <available file="${archive.location}"
property="${eclipse.is.downloaded}"/>
+ </condition>
+ <antcall target="-get.archive.ifnecessary"/>
+ </target>
+
+ <target name="-get.features" if="pluginbuilder.is.server" >
+ <property name="pluginbuilder.feature.urls"
value="${pluginbuilder.feature.urls.default}"/>
+ <foreach list="${pluginbuilder.feature.urls}"
param="feature.url" delimiter="," target="-get.archive"
inheritall="true"/>
+ </target>
+
+ <target name="-unpack.features" if="pluginbuilder.is.server">
+ <property name="pluginbuilder.feature.urls"
value="${pluginbuilder.feature.urls.default}"/>
+ <foreach list="${pluginbuilder.feature.urls}"
param="feature.url" delimiter="," target="-unpack.feature"
inheritall="true"/>
+ </target>
+
+ <target name="-unpack.feature"
depends="-set.archive.location">
+ <property name="tempunziplocation"
value="${buildDirectory}/tmpunzip"/>
+ <delete dir="${tempunziplocation}" failonerror="false"/>
+ <mkdir dir="${tempunziplocation}"/>
+ <unzip src="${archive.location}" overwrite="true"
dest="${tempunziplocation}"/>
+ <condition property="moveroot"
value="${tempunziplocation}/eclipse" else="${tempunziplocation}">
+ <available file="${tempunziplocation}/eclipse"
type="dir"/>
+ </condition>
+ <move todir="${eclipse.installation.dir}"
includeemptydirs="true">
+ <fileset dir="${moveroot}" includes="**"/>
+ </move>
+ </target>
+
+ <target name="-unpack.eclipse.ifnecessary"
if="unpack.eclipse">
+ <antcall target="-get.archive"/>
+ <condition property="is.windows">
+ <os family="windows"/>
+ </condition>
+ <antcall target="-unpack.eclipse.windows"/>
+ <antcall target="-unpack.eclipse.linux"/>
+ <antcall target="-get.features"/>
+ <antcall target="-unpack.features"/>
+ </target>
+
+ <target name="-unpack.eclipse.windows" if="is.windows"
depends="-set.eclipse.local.tar.server,-set.eclipse.local.tar.non.server">
+ <unzip src="${eclipse.local.tar}" overwrite="true"
dest="${eclipse.installation.dir}/.."/>
+ </target>
+
+ <target name="-unpack.eclipse.linux" unless="is.windows"
depends="-set.eclipse.local.tar.server,-set.eclipse.local.tar.non.server">
+ <untar src="${eclipse.local.tar}" overwrite="true"
dest="${eclipse.installation.dir}/.." compression="gzip"/>
+ </target>
+
+ <target name="test">
+ <property name="buildDirectory" value="C:/Temp/tst"/>
+ <mkdir dir="${buildDirectory}"/>
+ <property name="eclipse.download.cache"
value="C:/Temp/downloadcache"/>
+ <property name="pluginbuilder.is.server" value="true"/>
+ <property name="pluginbuilder.eclipse.url"
value="http://mirror.yoxos-eclipse-distribution.de/eclipse.org/eclip...
+
+ <property name="eclipse.installation.dir"
value="C:/Temp/eclipse_root/eclipse"/>
+ <delete dir="${eclipse.installation.dir}"
failonerror="false"/>
+ <property name="pluginbuilder.feature.urls"
value="http://self.pluginbuilder.org/0.2.0/org.pluginbuilder.feature...
+ <antcall target="unpack.eclipse"/>
+ </target>
+
+</project>
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/customTargets.xml
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/customTargets.xml
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/customTargets.xml 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,208 @@
+<project name="Build specific targets and properties"
default="noDefault">
+ <condition property="isNightlyBuild">
+ <equals arg1="${buildType}" arg2="N" />
+ </condition>
+ <condition property="isNightlyOrIntegrationBuild">
+ <or>
+ <equals arg1="${buildType}" arg2="N" />
+ <equals arg1="${buildType}" arg2="I" />
+ </or>
+ </condition>
+
+ <property file="${buildHome}/pluginbuilder.config" />
+
+ <property file="${buildDirectory}/version.properties" />
+ <property name="buildLabel" value="${buildType}-${version.full}"
/>
+ <property name="buildId" value="${version.full}" />
+
+ <condition property="isCVSOrCopy" value="true">
+ <or>
+ <equals arg1="${pluginbuilder.is.cvs}" arg2="true"/>
+ <equals arg1="${pluginbuilder.is.copy}" arg2="true"/>
+ </or>
+ </condition>
+ <condition property="isSVN" value="true">
+ <equals arg1="${pluginbuilder.is.svn}" arg2="true"/>
+ </condition>
+ <condition property="isRunTests" value="true">
+ <equals arg1="${pluginbuilder.is.runtests}" arg2="true"/>
+ </condition>
+
+
+ <target name="allElements">
+ <condition property="isFetch" value="true">
+ <equals arg1="${target}" arg2="fetchElement"/>
+ </condition>
+ <condition property="is.svn.fetch" value="true">
+ <and>
+ <equals arg1="${target}" arg2="fetchElement"/>
+ <equals arg1="${pluginbuilder.is.svn}" arg2="true"/>
+ </and>
+ </condition>
+
+ <antcall target="allElementsExceptSvnFetch"/>
+ <antcall target="fetchSubversion"/>
+ </target>
+
+ <import file="allElements.xml"/>
+ <import file="subversionSupport.xml"/>
+
+
+ <!-- ===================================================================== -->
+ <!-- Check out map files from correct repository -->
+ <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
+ <!-- ===================================================================== -->
+ <target name="getMapFiles" if="isCVSOrCopy">
+ <echo message="Copying map files."/>
+ <copy todir="${buildDirectory}/maps">
+ <fileset dir="${buildHome}/maps"
includes="*.map"></fileset>
+ </copy>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before setup -->
+ <!-- ===================================================================== -->
+ <target name="preSetup">
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do after setup but before starting the build proper -->
+ <!-- ===================================================================== -->
+ <target name="postSetup">
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do before fetching the build elements -->
+ <!-- ===================================================================== -->
+ <target name="preFetch">
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do after fetching the build elements -->
+ <!-- ===================================================================== -->
+ <target name="postFetch">
+ <condition property="is.fetch" value="true">
+ <available file="${buildDirectory}/plugins"/>
+ </condition>
+ <fail unless="is.fetch" message="There was no plug-in fetched. Was
the configuration generated? Is the repository correct?"/>
+ <antcall target="replaceVersions"/>
+ </target>
+
+ <target name="replaceVersions">
+ <fail unless="version.full" message="Property version.full must be
set" />
+ <fail unless="version.qualifier" message="Property version.qualifier
must be set" />
+
+ <echo message="Updating versions in feature and plugin manifests. Full version:
${version.full}, qualifier: ${version.qualifier}"/>
+ <replaceregexp
+
match="(<feature[^>]*version=)"0.0.0""
+ replace="\1"${version.full}""
+ byline="false"
+ flags="s">
+ <fileset dir="${buildDirectory}/features"
includes="**/feature.xml"/>
+ </replaceregexp>
+ <replaceregexp
+
match="(<feature[^>]*version=".*)qualifier""
+ replace="\1${version.qualifier}""
+ byline="false"
+ flags="s">
+ <fileset dir="${buildDirectory}/features"
includes="**/feature.xml"/>
+ </replaceregexp>
+ <!-- in a manual build started with export from the feature.xml, there is no
+ need to replace the versions in the plugin.xml files if they are set to 0.0.0,
+ but here it needs to be -->
+ <replace dir="${buildDirectory}/plugins">
+ <include name="**/plugin.xml"/>
+ <replacefilter token="0.0.0" value="${version.full}" />
+ </replace>
+ <replace dir="${buildDirectory}/plugins">
+ <include name="**/META-INF/MANIFEST.MF"/>
+ <replacefilter token="Bundle-Version: 0.0.0" value="Bundle-Version:
${version.full}" />
+ <replacefilter token="qualifier" value="${version.qualifier}"
/>
+ </replace>
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do before generating the build scripts. -->
+ <!-- ===================================================================== -->
+ <target name="preGenerate">
+ <!-- fail unless="featureVersion" message="Property featureVersion
must be set.
+ Either directly or in case of a nightly build with
nightlyBuildFeatureVersionPrefix." />
+ -->
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do after generating the build scripts. -->
+ <!-- ===================================================================== -->
+ <target name="postGenerate">
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do before running the build.xmls for the elements being built. -->
+ <!-- ===================================================================== -->
+ <target name="preProcess">
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do after running the build.xmls for the elements being built. -->
+ <!-- ===================================================================== -->
+ <target name="postProcess">
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do before running assemble. -->
+ <!-- ===================================================================== -->
+ <target name="preAssemble">
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do after running assemble. -->
+ <!-- ===================================================================== -->
+ <target name="postAssemble">
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Steps to do before/after packaging RCP. -->
+ <!-- ===================================================================== -->
+ <target name="prePackage">
+ </target>
+
+ <target name="postPackage">
+ <!-- copy build results for rcp build -->
+ <copy todir="${buildResultsDirectory}" flatten="true">
+ <fileset dir="${buildDirectory}"
includes="${buildType}-**/*.zip" />
+ </copy>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the build is done. -->
+ <!-- ===================================================================== -->
+ <property name="buildResultsDirectory"
value="${buildDirectory}/results" />
+ <target name="postBuild" depends="-prepareBuildResultsDirectory"
unless="no.postBuild">
+ <antcall target="runTests"/>
+ <copy todir="${buildResultsDirectory}" flatten="true">
+ <fileset dir="${buildDirectory}"
includes="${buildType}-**/*.zip" />
+ </copy>
+ <condition property="is.External.Postbuild">
+ <available file="${buildHome}/build-files/postBuild.xml"/>
+ </condition>
+ <antcall target="callExternalPostBuild"/>
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Run tests. -->
+ <!-- ===================================================================== -->
+ <target name="runTests" if="isRunTests">
+ <property name="automatedTestsHome"
location="${buildHome}/build-files/automatedTests"/>
+
+ <ant antfile="${automatedTestsHome}/run-tests.xml" target="run"
dir="${automatedTestsHome}">
+ <property name="test.result.dir"
value="${buildResultsDirectory}/testresults"/>
+ </ant>
+ </target>
+ <!--======================================================-->
+ <!-- Gather build results -->
+ <!-- ==================================================== -->
+ <target name="-prepareBuildResultsDirectory">
+ <echo message="Creating ${buildResultsDirectory}" />
+ <mkdir dir="${buildResultsDirectory}" />
+ </target>
+
+ <!--======================================================-->
+ <!-- Call External post build file if available -->
+ <!-- ==================================================== -->
+ <target name="callExternalPostBuild"
if="is.External.Postbuild">
+ <ant antfile="${buildHome}/build-files/postBuild.xml"/>
+ </target>
+
+ <target name="noDefault">
+ <echo message="You must specify a target when invoking this file" />
+ </target>
+</project>
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/fetchSvnAll.xml
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/fetchSvnAll.xml
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/fetchSvnAll.xml 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,5 @@
+<project name="Generated">
+ <target name="fetch.svn.all">
+ <!-- use pluginbuilder editor to change content -->
+ </target>
+</project>
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/pluginbuilder-anttasks.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/pluginbuilder-anttasks.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/postBuild.xml
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/postBuild.xml
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/postBuild.xml 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,109 @@
+<project name="Run as part of postBuild" default="main">
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties"
classpath="${buildHome}/build-files/ant-contrib.jar" />
+ <taskdef
resource="org/pluginbuilder/anttasks/pluginbuildertasks.properties"
classpath="${buildHome}/build-files/pluginbuilder-anttasks.jar" />
+
+
+ <target name="main">
+ <property name="UpdateSiteStagingLocation"
value="${buildDirectory}/tmpUpdateSite/updateSite"/>
+ <property name="UpdateSiteFinalLocation"
value="${buildResultsDirectory}/../updateSite"/>
+ <property name="siteXmlFile"
value="${UpdateSiteStagingLocation}/site.xml"/>
+
+ <antcall target="-generateUpdateSite"/>
+ <antcall target="-createNightlyBuildSiteXml"/>
+ <zip destfile="${buildResultsDirectory}/updateSite-${version.full}.zip"
basedir="${UpdateSiteStagingLocation}"/>
+ <antcall target="deleteSiteXml"/>
+ <copy todir="${UpdateSiteFinalLocation}">
+ <fileset dir="${UpdateSiteStagingLocation}"
includes="**"/>
+ </copy>
+ <delete dir="${UpdateSiteStagingLocation}/../.."
includes="tmpUpdateSite/**" includeemptydirs="true"/>
+ <antcall target="-p2"/>
+ </target>
+
+ <target name="deleteSiteXml" unless="isNightlyBuild">
+ <!-- in release builds the site.xml should not be overwritten, so older version can
survive -->
+ <delete file="${siteXmlFile}"/>
+ </target>
+
+ <!--======================================================-->
+ <!-- UpdateSite Export target, to be called from allElements -->
+ <!-- ==================================================== -->
+ <target name="updateSiteExport">
+ <ant antfile="build.xml"
dir="${buildDirectory}/features/${id}/" target="build.update.jar">
+ <property name="feature.destination"
value="${UpdateSiteStagingLocation}/features"/>
+ <property name="plugin.destination"
value="${UpdateSiteStagingLocation}/plugins"/>
+ </ant>
+ </target>
+
+ <target name="-generateUpdateSite">
+ <!-- Create the directory structure -->
+ <mkdir dir="${UpdateSiteStagingLocation}"/>
+ <mkdir dir="${UpdateSiteStagingLocation}/features"/>
+ <mkdir dir="${UpdateSiteStagingLocation}/plugins"/>
+ <condition property="jarProcessor.sign" value="true">
+ <istrue value="${signJars}"/>
+ </condition>
+ <!-- Build the jar files -->
+ <ant antfile="${builder}/customTargets.xml"
target="allElements">
+ <property name="genericTargets"
value="${builder}/postBuild.xml"/>
+ <property name="target" value="updateSiteExport"/>
+ </ant>
+ <!-- site.xml files for integration and release builds are handled elsewhere
-->
+ <antcall target="-createNightlyBuildSiteXml"/>
+ <delete dir="${buildDirectory}/temp.updatesite"/>
+ </target>
+
+ <target name="-createNightlyBuildSiteXml">
+ <echo>${siteXmlFile}</echo>
+ <echo file="${siteXmlFile}"><?xml
version="1.0" encoding="UTF-8"?>
+<site>
+ <description>${updateSiteDescription}</description>
+</echo>
+ <foreach list="${pluginbuilder.features}" delimiter=","
target="-appendFeatureElement" param="featureId"
inheritall="true"/>
+ <echo file="${siteXmlFile}"
append="true"> <category-def
name="${updateSiteCategoryName}"
+ label="${updateSiteCategoryLabel}">
+ </category-def>
+</site></echo>
+ </target>
+
+ <target name="-appendFeatureElement">
+ <!-- we can not rely on ${version.full} at this point since people could use
+ a fix feature id like 0.5.0.qualifier. ${version.full} would only work if
+ the feature were set to 0.0.0 -->
+ <loadfile property="featurexml"
srcfile="${buildDirectory}/features/${featureId}/feature.xml"/>
+ <SetRegex input="${featurexml}"
match="^.*<feature.+?version="(.+?)".*$"
property="realFeatureVersion" value="\1" />
+ <echo file="${siteXmlFile}"
append="true"> <feature
+ url="features/${featureId}_${realFeatureVersion}.jar"
+ id="${featureId}"
+ version="${realFeatureVersion}">
+ <category name="${updateSiteCategoryName}"/>
+ </feature>
+</echo>
+ </target>
+
+ <target name="-p2">
+ <condition property="is.p2" value="true">
+ <equals arg1="${generate.p2.metadata}" arg2="true"/>
+ </condition>
+ <property name="p2archive"
value="${buildResultsDirectory}/p2-repository-${version.full}.zip"/>
+ <antcall target="-createP2Archive"/>
+ <antcall target="-createP2UpdateSite"/>
+ </target>
+
+ <target name="-createP2Archive" if="is.p2">
+ <pathconvert property="repodir">
+ <resources>
+ <url url="${p2.metadata.repo}"/>
+ </resources>
+ <map from="file:" to=""/>
+ </pathconvert>
+ <zip destfile="${p2archive}" basedir="${repodir}"/>
+ </target>
+
+ <target name="-createP2UpdateSite" if="is.p2">
+ <property name="p2updatesite"
value="${buildResultsDirectory}/../p2-updateSite"/>
+ <delete dir="${p2updatesite}"/>
+ <mkdir dir="${p2updatesite}"/>
+ <unzip src="${p2archive}" dest="${p2updatesite}"/>
+ </target>
+
+</project>
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/subversionSupport.xml
===================================================================
---
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/subversionSupport.xml
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/subversionSupport.xml 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,23 @@
+<project name="to be included into customTargets.xml">
+
+ <import file="fetchSvnAll.xml"/>
+
+ <path id="project.classpath">
+ <pathelement location="${buildHome}/build-files/svn/svnant.jar"/>
+ <pathelement
location="${buildHome}/build-files/svn/svnClientAdapter.jar"/>
+ </path>
+
+ <target name="fetchSubversion" if="is.svn.fetch">
+ <taskdef resource="svntask.properties"
classpathref="project.classpath"/>
+ <property name="fetchTag" value="HEAD"/>
+ <antcall target="fetch.svn.all"/>
+ </target>
+
+ <target name="svn.co">
+ <property name="target.dir" value="${element.id}"/>
+ <svn javahl="false" username="${pluginbuilder.svn.user}"
password="${pluginbuilder.svn.password}">
+ <checkout revision="${fetchTag}" url="${url}/${project.name}"
destPath="${buildDirectory}/${target}/${target.dir}" />
+ </svn>
+ </target>
+
+</project>
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/SVNCLIENTADAPTER-LICENSE
===================================================================
---
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/SVNCLIENTADAPTER-LICENSE
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/SVNCLIENTADAPTER-LICENSE 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,185 @@
+SVNClientAdapter Library License
+
+This license applies to all portions of SVNClientAdapter library, which
+are not externally-maintained libraries (e.g. JavaHL or JavaSVN).
+
+Such libraries have their own licenses; we recommend you read them, as
+their terms may differ from the terms below.
+
+=============================================================================
+ Apache License
+ Version 2.0, January 2004
+
http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
\ No newline at end of file
Added:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/svnClientAdapter.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/svnClientAdapter.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/svnant.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build-files/svn/svnant.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build.xml
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build.xml
(rev 0)
+++ trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build.xml 2008-12-02 02:44:54
UTC (rev 12201)
@@ -0,0 +1,237 @@
+<!-- This script will not be uploaded to the server.
+ PLEASE DO NOT MODIFY
+ If you modify this script it is likely that the build will not work on the server
+-->
+<project name="Build Facade" default="main">
+ <taskdef
resource="org/pluginbuilder/anttasks/pluginbuildertasks.properties"
classpath="build-files/pluginbuilder-anttasks.jar" />
+
+ <GetHostName />
+ <property file="build_${hostname}.properties" />
+ <property file="build_local.properties" />
+ <property name="eclipse.installation.dir"
value="${eclipseDir}"/>
+ <import file="build-files/build_shared.xml"/>
+
+ <target name="-properties">
+
+ <!-- versioning -->
+ <property name="build.version" value="HEAD"/>
+ <property file="releases/${build.version}.properties" />
+ <tstamp>
+ <format property="version.qualifier"
pattern="yyyyMMddHHmm" timezone="GMT" unit="minute"/>
+ </tstamp>
+
+ <property name="buildTypePresentation" value=""/>
+ <property name="version.full"
value="${version}.${version.qualifier}${buildTypePresentation}"/>
+
+ <!-- includes -->
+ <GetHostName />
+ <property file="build_${hostname}.properties" />
+ <property file="build_local.properties" />
+ <property file="pluginbuilder.config" />
+
+ <!-- set defaults -->
+ <property name="buildTarget" value="main"/>
+ <property name="verboseAnt" value="-Ddummy=true"/>
+
+ <!-- check if clean should be called -->
+ <condition property="is.clean">
+ <or>
+ <equals arg1="main" arg2="${buildTarget}"
trim="true"/>
+ <equals arg1="fetch" arg2="${buildTarget}"
trim="true"/>
+ </or>
+ </condition>
+
+ <condition property="no.rcp.build" value="true">
+ <not>
+ <equals arg1="${pluginbuilder.is.rcpbuild}" arg2="true"/>
+ </not>
+ </condition>
+
+ </target>
+
+ <target name="-prepare.build.host">
+
+ <antcall target="unpack.eclipse"/>
+
+ <available type="dir" file="${eclipseDir}/plugins"
property="eclipseDir.plugins.exists"/>
+ <fail message="Could not find directory ${eclipseDir}/plugins. Please check
eclipseDir in build_local.properties"
unless="eclipseDir.plugins.exists"/>
+
+ <!-- determine buildfiles -->
+ <BundleFileLocator eclipseInstallationRoot="${eclipseDir}"
bundleId="org.eclipse.pde.build" filePath="scripts/build.xml"
property="regularbuildfile" />
+ <dirname file="${regularbuildfile}" property="scriptdir"/>
+ <property name="productbuildfile"
value="${scriptdir}/productBuild/productBuild.xml"/>
+
+ <!-- determine launcher -->
+ <BundleFileLocator eclipseInstallationRoot="${eclipseDir}"
bundleId="org.eclipse.equinox.launcher" property="equinoxjar" />
+
+ </target>
+
+ <target name="-clean" if="is.clean">
+ <echo level="info" message="Cleaning directory
${buildDirectory}"/>
+ <delete dir="${buildDirectory}" verbose="false"/>
+ <mkdir dir="${buildDirectory}"/>
+ </target>
+
+ <target name="-build"
depends="-properties,-clean,-prepare.build.host">
+ <condition property="no.rcp.build" value="true">
+ <not>
+ <equals arg1="${pluginbuilder.is.rcpbuild}" arg2="true"/>
+ </not>
+ </condition>
+ <antcall target="-build.internal">
+ <param name="buildfile" value="${regularbuildfile}"/>
+ </antcall>
+ <!-- build rcp omitting fetch -->
+ <property name="buildSystemProperty.skipFetch"
value="true"/>
+ <antcall target="-build.rcp.internal"/>
+ </target>
+
+ <target name="-build.rcp.internal" unless="no.rcp.build">
+ <property prefix="buildSystemProperty."
file="${buildHome}/build-files/build_rcp.properties"/>
+ <antcall target="-checkProductProperty"/>
+ <antcall target="-build.internal">
+ <param name="buildfile" value="${productbuildfile}"/>
+ </antcall>
+ </target>
+
+ <target name="-checkProductProperty">
+ <condition property="isProductSet">
+ <and>
+ <isset property="buildSystemProperty.product"/>
+ <not><equals arg1="${product}" arg2=""/></not>
+ </and>
+ </condition>
+ <fail message="Building an RCP application requires a Product Configuration
file to be specified ('product' property)."
unless="isProductSet"/>
+ </target>
+
+ <target name="rcp"
depends="-properties,-clean,-prepare.build.host" description="Build RCP
only">
+ <fail message="Please enable and configure an RCP build in the Plug-in Builder
Editor before calling this target." if="no.rcp.build"/>
+ <antcall target="-build.rcp.internal"/>
+ </target>
+
+ <target name="-build.internal">
+ <property name="buildResultsDirectory"
value="${buildDirectory}/results" />
+
+ <java classname="org.eclipse.equinox.launcher.Main" fork="true"
+ failonerror="true" errorproperty="build.stderr">
+ <arg value="-ws" />
+ <arg value="${ws}" />
+ <arg value="-os" />
+ <arg value="${os}" />
+ <arg value="-application" />
+ <arg value="org.eclipse.ant.core.antRunner" />
+ <arg value="-buildfile" />
+ <arg value="${buildfile}" />
+ <arg value="${buildTarget}" />
+ <arg value="-data" />
+ <arg value="${buildDirectory}/workspace" />
+ <arg value="${verboseAnt}"/>
+ <jvmarg value="-Dbasews=${ws}" />
+ <jvmarg value="-Dbaseos=${os}" />
+ <jvmarg value="-Dbasearch=${arch}" />
+ <jvmarg value="-Dbuilder=${buildHome}/build-files" />
+ <jvmarg value="-DjavacFailOnError=true"/>
+ <jvmarg value="-DbuildDirectory=${buildDirectory}"/>
+ <jvmarg value="-DbuildResultsDirectory=${buildResultsDirectory}"/>
+ <jvmarg value="-DbaseLocation=${eclipseDir}"/>
+ <jvmarg value="-DbuildHome=${buildHome}"/>
+ <jvmarg value="-Dversion.full=${version.full}"/>
+ <jvmarg
value="-Dversion.qualifier=${version.qualifier}${buildTypePresentation}"/>
+ <jvmarg value="-DbuildType=${buildType}"/>
+ <jvmarg value="-DfetchTag=${fetchTag}"/>
+ <jvmarg
value="-DbuildProperties=${buildHome}/build-files/build.properties"/>
+
+ <classpath>
+ <pathelement location="${equinoxjar}" />
+ </classpath>
+
+ <syspropertyset>
+ <propertyset>
+ <propertyref prefix="buildSystemProperty"/>
+ <mapper type="glob" from="buildSystemProperty.*"
to="*"/>
+ </propertyset>
+ </syspropertyset>
+ </java>
+
+ <!-- save stderr for scrutinizing later -->
+ <echo file="${buildDirectory}/stderr.txt">${build.stderr}</echo>
+
+ <echo taskname="stderr">${build.stderr}</echo>
+
+ <condition property="is.build.error" value="true">
+ <contains string="${build.stderr}" substring="BUILD
FAILED"/>
+ </condition>
+ <!-- Note that the fail task throws an exception which will be intercepted
+ from calling antcalls. During that processing the status will
+ be lost and set to 1. Therefor ethe processing of TESTS FAILED which should
+ return an exit status of 2 can only take place in main targets. -->
+ <fail message="PDE Build failed" if="is.build.error"
status="1"/>
+
+ </target>
+
+ <target name="main-cc"
+ description="This target is suited to be run from cruisecontrol. The property
'label' is expected to be set from cruisecontrol.">
+ <!-- Note that pluginbuilder also provides an EclipseLabelIncrementer which creates
Eclipse version labels.
+ see
http://www.pluginbuilder.org/faq.html -->
+ <property name="version.full" value="${label}"/>
+ <SetRegex input="${label}" match=".+\..+\..+\.(.*)"
property="version.qualifier" value="\1" />
+ <antcall target="-build"/>
+ </target>
+
+ <target name="main" description="Run the main target of
customTargets.xml. Return status 0,1,2 for Success, Build Failure and Test
Failure">
+ <property name="buildTarget" value="main"/>
+ <antcall target="-build"/>
+
+ <!-- this must be done in a top level target because otherwise the
+ status would not get throuhg. If fail is called somewhere within
+ an antcall the created exception will be caught which would result
+ in a return status of 1 -->
+ <loadfile srcFile="${buildDirectory}/stderr.txt"
property="build.stderr"/>
+ <condition property="is.tests.failed" value="true">
+ <contains string="${build.stderr}" substring="TESTS
FAILED"/>
+ </condition>
+ <fail message="Tests failed" if="is.tests.failed"
status="2"/>
+ </target>
+
+ <target name="fetch" description="Run the fetch target of
customTargets.xml.">
+ <property name="buildTarget" value="fetch"/>
+ <antcall target="-build"/>
+ </target>
+
+ <target name="generate" description="Run the generate target of
customTargets.xml.">
+ <property name="buildTarget" value="generate"/>
+ <antcall target="-build"/>
+ </target>
+
+ <target name="process" description="Run the process target of
customTargets.xml.">
+ <property name="buildTarget" value="process"/>
+ <antcall target="-build"/>
+ </target>
+
+ <target name="assemble" description="Run the assemble target of
customTargets.xml.">
+ <property name="buildTarget" value="assemble"/>
+ <antcall target="-build"/>
+ </target>
+
+ <target name="postBuild" description="Run the postBuild target of
customTargets.xml.">
+ <property name="buildTarget" value="postBuild"/>
+ <antcall target="-build"/>
+ <!-- see main for a description why this must take place here. It is very ugly
-->
+ <loadfile srcFile="${buildDirectory}/stderr.txt"
property="build.stderr"/>
+ <condition property="is.tests.failed" value="true">
+ <contains string="${build.stderr}" substring="TESTS
FAILED"/>
+ </condition>
+ <fail message="Tests failed" if="is.tests.failed"
status="2"/>
+ </target>
+
+ <target name="buildProperties" description="Print out derived
properties for the current build." depends="-properties">
+ <fail message="You have to set the property 'buildPropertiesFile' if
calling buildProperties" unless="buildPropertiesFile"/>
+ <condition property="subdir" value="nightly"
else="releases">
+ <equals arg1="${buildType}" arg2="N"/>
+ </condition>
+ <echo file="${buildPropertiesFile}">relativeServerResultsDir:
${subdir}
+version.full: ${version.full}
+version.qualifier: ${version.qualifier}</echo>
+ </target>
+
+</project>
\ No newline at end of file
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build_local.properties
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build_local.properties
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/build_local.properties 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,26 @@
+# The location of this pluginbuilder project. It provides the base directory for the
build scripts.
+# @category localsettings
+# @type Directory
+buildHome=/Users/koen/Workspace/Eclipse/3.4.1/GPD-4.0/org.jboss.tools.flow.jpdl4.builder
+
+# The directory where the build takes place. This directory WILL BE DELETED before every
build.
+# @category localsettings
+# @type Directory
+buildDirectory=/tmp/pluginbuilder/org.jboss.tools.flow.jpdl4.builder
+
+# The eclipse build host. Must be an Eclipse SDK installation with JDT and PDE. And in
the case of RCP builds the RCP Delta Pack must be included, too.
+# @category localsettings
+# @type Directory
+eclipseDir=/Users/koen/Software/Eclipse/SDK/3.4.1/eclipse/
+
+# Environment for both the Eclipse build and test host. Determines baseos.
+# @category localsettings
+os=macosx
+
+# Environment for both the Eclipse build and test host. Determines basews.
+# @category localsettings
+ws=carbon
+
+# Environment for both the Eclipse build and test host. Determines basearch.
+# @category localsettings
+arch=x86
\ No newline at end of file
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/maps/all.map
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/maps/all.map
(rev 0)
+++ trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/maps/all.map 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,4 @@
+feature(a)org.jboss.tools.flow.jpdl4.feature=COPY,/Users/koen/Workspace/Eclipse/3.4.1/GPD-4.0,org.jboss.tools.flow.jpdl4.feature
+plugin(a)org.jboss.tools.flow.jpdl4=COPY,/Users/koen/Workspace/Eclipse/3.4.1/GPD-4.0,org.jboss.tools.flow.jpdl4
+feature(a)org.jboss.tools.flow.common.feature=COPY,/Users/koen/Workspace/Eclipse/3.4.1/GPD-4.0,org.jboss.tools.flow.common.feature
+plugin(a)org.jboss.tools.flow.common=COPY,/Users/koen/Workspace/Eclipse/3.4.1/GPD-4.0,org.jboss.tools.flow.common
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/pluginbuilder.config
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/pluginbuilder.config
(rev 0)
+++ trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/pluginbuilder.config 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,10 @@
+#Thu Nov 27 12:17:44 EST 2008
+autotestsuite.class.exclusions=.*All(Tests|PDE_Tests|_Tests|PDETests).*
+pluginbuilder.features=org.jboss.tools.flow.jpdl4.feature,org.jboss.tools.flow.common.feature
+pluginbuilder.is.svn=false
+autotestsuite.class.inclusions=.*
+pluginbuilder.is.runtests=false
+autotestsuite.plugin.inclusions=.*(test|tests)$
+pluginbuilder.is.cvs=false
+pluginbuilder.is.copy=true
+pluginbuilder.is.rcpbuild=false
Added: trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/releases/HEAD.properties
===================================================================
--- trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/releases/HEAD.properties
(rev 0)
+++
trunk/jbpm/builders/org.jboss.tools.flow.jpdl4.builder/releases/HEAD.properties 2008-12-02
02:44:54 UTC (rev 12201)
@@ -0,0 +1,20 @@
+# if version.qualifier is not given, it is generated using the current time
+# see build.xml
+#version.qualifier=
+
+# version must match with feature version except the feature version is 0.0.0
+version=0.1.0
+
+# the tag which is used to fetch the sources from Version Control
+# CVS: overwrites the tag given in the map files!
+fetchTag=HEAD
+
+buildType=N
+
+# buildTypePresentation will be appended to the qualifier, they should be more
+# descriptive than the buildType.
+# Typical values are
+# NGT for nightly
+# INT for integration
+# PRD for production
+buildTypePresentation=NGT
\ No newline at end of file