JBoss Tools SVN: r22396 - in trunk/jst/tests: org.jboss.tools.jst.ui.firstrun.bot.test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-05-27 19:22:43 -0400 (Thu, 27 May 2010)
New Revision: 22396
Modified:
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/pom.xml
trunk/jst/tests/org.jboss.tools.jst.ui.firstrun.bot.test/pom.xml
Log:
https://jira.jboss.org/browse/JBDS-1202 problems running tests
revert plug-ins:
-o.j.t.jst.ui.bot.test
-o.j.t.jst.ui.firstrun.bot.test
to eclipse-plugin or test execution fails because there are no tests inside this plug-ins
Modified: trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/pom.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/pom.xml 2010-05-27 21:47:23 UTC (rev 22395)
+++ trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/pom.xml 2010-05-27 23:22:43 UTC (rev 22396)
@@ -10,5 +10,5 @@
<groupId>org.jboss.tools</groupId>
<artifactId>org.jboss.tools.jst.ui.bot.test</artifactId>
<version>3.1.0-SNAPSHOT</version>
- <packaging>eclipse-test-plugin</packaging>
+ <packaging>eclipse-plugin</packaging>
</project>
Modified: trunk/jst/tests/org.jboss.tools.jst.ui.firstrun.bot.test/pom.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.ui.firstrun.bot.test/pom.xml 2010-05-27 21:47:23 UTC (rev 22395)
+++ trunk/jst/tests/org.jboss.tools.jst.ui.firstrun.bot.test/pom.xml 2010-05-27 23:22:43 UTC (rev 22396)
@@ -10,5 +10,5 @@
<groupId>org.jboss.tools</groupId>
<artifactId>org.jboss.tools.jst.ui.firstrun.bot.test</artifactId>
<version>3.1.0-SNAPSHOT</version>
- <packaging>eclipse-test-plugin</packaging>
+ <packaging>eclipse-plugin</packaging>
</project>
14 years, 7 months
JBoss Tools SVN: r22395 - branches/3.2.helios/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-27 17:47:23 -0400 (Thu, 27 May 2010)
New Revision: 22395
Added:
branches/3.2.helios/build/jbds.product
branches/3.2.helios/build/jbds4.target
branches/3.2.helios/build/publish.sh
Modified:
branches/3.2.helios/build/build.xml
Log:
port from trunk
Modified: branches/3.2.helios/build/build.xml
===================================================================
--- branches/3.2.helios/build/build.xml 2010-05-27 21:45:11 UTC (rev 22394)
+++ branches/3.2.helios/build/build.xml 2010-05-27 21:47:23 UTC (rev 22395)
@@ -18,7 +18,7 @@
/>
<!-- svn root, including trunk or branch path -->
- <property name="svn.root" value="http://anonsvn.jboss.org/repos/jbosstools/trunk" />
+ <property name="svn.root" value="http://anonsvn.jboss.org/repos/jbosstools/branches/3.2.helios" />
<!-- if true, use -Dmaven.repo.local=${COMMON_TOOLS}/m2-repository; if false, use default ~/.m2/repository; or set another path if preferred -->
<property name="maven.repo.local" value="true" />
@@ -516,14 +516,7 @@
<echo level="warning">All components up to date: nothing to do!
To force a build of unchanged components, use -Dbuild.if.sources.unchanged=true</echo>
- <!-- create fake test result file to avoid Hudson failure -->
- <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
- <mkdir dir="${basedir}/surefire-reports/NoTestsRun" />
- <echo file="${basedir}/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml"><?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="0" time="0.001" errors="0" skipped="0" tests="1" name="org.jboss.tools.NoTestsRun">
- <testcase time="0.001" classname="org.jboss.tools.NoTestsRun" name="NoTestsRun"/>
-</testsuite>
-</echo>
+ <antcall target="create.empty.test.results.file" />
<property name="no.tests.run" value="true" />
<property name="no.overall" value="true" />
</then>
@@ -551,6 +544,65 @@
</if>
</target>
+ <!--
+ To run this after a maven build in Hudson, set these properties:
+ basedir=${WORKSPACE}/sources
+ WORKINGDIR=${WORKSPACE}/sources
+ COMPONENT=.
+ move.test.results=true
+ -->
+ <target name="collect.test.results.for.hudson"
+ depends="init"
+ if="isInHudson"
+ description="collect test results after a pure maven build so Hudson has something to see"
+ >
+ <property name="basedir" value="${WORKSPACE}/sources" />
+ <property name="WORKINGDIR" value="${WORKSPACE}/sources" />
+ <property name="COMPONENT" value="." />
+ <property name="move.test.results" value="true" />
+ <var name="tests.results.found" value="false" />
+ <echo level="debug">basedir = ${basedir}
+WORKINGDIR = ${WORKINGDIR}
+COMPONENT = ${COMPONENT}</echo>
+ <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
+ <for param="test.xml.files" delimiter=",
+ ">
+ <path>
+ <fileset dir="${WORKINGDIR}"
+ includes="**/target/surefire-reports/TEST-*.xml, **/**/target/surefire-reports/TEST-*.xml"
+ excludes="**/TEST-*NoTestsRun.xml, **/**/TEST-*NoTestsRun.xml"
+ />
+ </path>
+ <sequential>
+ <var name="tests.results.found" value="true" />
+ </sequential>
+ </for>
+ <if>
+ <equals arg1="${tests.results.found}" arg2="true" />
+ <then>
+ <antcall target="collect.test.results">
+ <param name="COMPONENT" value="." />
+ </antcall>
+ <antcall target="collect.all.test.results" />
+ </then>
+ <else>
+ <antcall target="create.empty.test.results.file" />
+ <property name="no.tests.run" value="true" />
+ </else>
+ </if>
+ </target>
+
+ <target name="create.empty.test.results.file">
+ <!-- create fake test result file to avoid Hudson failure -->
+ <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
+ <mkdir dir="${basedir}/surefire-reports/NoTestsRun" />
+ <echo file="${basedir}/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml"><?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.001" errors="0" skipped="0" tests="1" name="org.jboss.tools.NoTestsRun">
+<testcase time="0.001" classname="org.jboss.tools.NoTestsRun" name="NoTestsRun"/>
+</testsuite>
+</echo>
+ </target>
+
<target name="run.build">
<!-- could set -Dmaven.test.skip to skip tests, or use osgi-test:test to just (re-)run tests w/o first building -->
<property name="MAVEN_FLAGS" value="clean install -B -fn -q -U -e" />
@@ -608,6 +660,7 @@
<ant antfile="${WORKINGDIR}/(a){COMPONENT}/build.xml">
<property name="COMPONENT" value="@{COMPONENT}" />
<property name="basedir" value="${WORKINGDIR}/@{COMPONENT}" />
+ <property name="build.xml" value="${ant.file}"/>
</ant>
</then>
</if>
@@ -742,8 +795,14 @@
preservelastmodified="true"
overwrite="true"
>
- <fileset dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports/*.xml" />
+ <fileset dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports/TEST-*.xml" />
</copy>
+ <if>
+ <isset property="move.test.results" />
+ <then>
+ <delete dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports" />
+ </then>
+ </if>
</target>
<target name="collect.all.test.results" unless="no.tests.run">
@@ -754,10 +813,7 @@
<for param="testresultfile" delimiter=",
">
<path>
- <fileset dir="${basedir}/surefire-reports/"
- includes="**/TEST-*.xml"
- excludes="**/*pom.xml, **/build.xml"
- />
+ <fileset dir="${basedir}/surefire-reports/" includes="**/TEST-*.xml" />
</path>
<sequential>
<var name="testsuite.name" unset="true" />
@@ -891,7 +947,7 @@
<equals arg1="@{COMPONENT}" arg2="site" />
<then>
<var name="destinationZip"
- value="${WORKINGDIR}/(a){COMPONENT}/site/target/JBossTools-ALL-Update-SNAPSHOT.zip"
+ value="${WORKINGDIR}/(a){COMPONENT}/site/target/jbosstools-ALL-Update-SNAPSHOT.zip"
/>
</then>
<else>
@@ -906,7 +962,7 @@
</else>
</if>
<var name="destinationZip"
- value="${WORKINGDIR}/(a){COMPONENT}/site/target/JBossTools-${COMPONENT.name}-Update-SNAPSHOT.zip"
+ value="${WORKINGDIR}/(a){COMPONENT}/site/target/jbosstools-${COMPONENT.name}-Update-SNAPSHOT.zip"
/>
</else>
</if>
@@ -918,10 +974,10 @@
/>
</sequential>
</for>
-
+
<for param="updateZip">
<path>
- <fileset dir="${WORKINGDIR}/@{COMPONENT}" includes="**/JBossTools*Update*.zip" />
+ <fileset dir="${WORKINGDIR}/@{COMPONENT}" includes="**/jbosstools*Update*.zip" />
</path>
<sequential>
<propertyregex property="updateZip"
@@ -1037,7 +1093,7 @@
<equals arg1="${update.site.path}" arg2="site" />
<then>
<var name="destinationZip"
- value="${WORKINGDIR}/${update.site.path}/target/JBossTools-ALL-Update-SNAPSHOT.zip"
+ value="${WORKINGDIR}/${update.site.path}/target/jbosstools-ALL-Update-SNAPSHOT.zip"
/>
</then>
<else>
@@ -1052,7 +1108,7 @@
</else>
</if>
<var name="destinationZip"
- value="${WORKINGDIR}/${update.site.path}/target/JBossTools-${COMPONENT.name}-Update-SNAPSHOT.zip"
+ value="${WORKINGDIR}/${update.site.path}/target/jbosstools-${COMPONENT.name}-Update-SNAPSHOT.zip"
/>
</else>
</if>
@@ -1126,7 +1182,7 @@
<fail>Overall update site zip contains no features!</fail>
</then>
<else>
- <echo level="info">Update site zip for ${COMPONENTS.to.build} contains no features!</echo>
+ <echo level="info"> [ERROR] Update site zip for ${COMPONENTS.to.build} contains no features!</echo>
</else>
</if>
</else>
@@ -1194,10 +1250,26 @@
</echo>
<mkdir dir="${updateSiteJarDir}/../features" />
+ <if>
+ <!-- special case: for tests component, we WANT test features; for everyone else, test features shouldn't be on the site -->
+ <equals arg1="${COMPONENT}" arg2="tests" />
+ <then>
+ <path id="featureJars">
+ <fileset dir="${updateSiteJarDir}/../features" includes="**/target/*.jar" />
+ </path>
+ </then>
+ <else>
+ <path id="featureJars">
+ <fileset dir="${updateSiteJarDir}/../features"
+ includes="**/target/*.jar"
+ excludes="**/*test*"
+ id=""
+ />
+ </path>
+ </else>
+ </if>
<for param="featureJar">
- <path>
- <fileset dir="${updateSiteJarDir}/../features" includes="**/target/*.jar" excludes="**/*test*" />
- </path>
+ <path refid="featureJars" />
<sequential>
<var name="feature.jarfile" unset="true" />
<var name="feature.id" unset="true" />
Added: branches/3.2.helios/build/jbds.product
===================================================================
--- branches/3.2.helios/build/jbds.product (rev 0)
+++ branches/3.2.helios/build/jbds.product 2010-05-27 21:47:23 UTC (rev 22395)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="JBoss Devloper Studio" uid="com.jboss.developer.studio" id="org.eclipse.platform.ide" application="org.eclipse.ui.ide.workbench" version="3.1.0" useFeatures="true" includeLaunchers="true">
+
+
+ <configIni use="default">
+ </configIni>
+
+ <launcherArgs>
+ <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
+ </launcherArgs>
+
+ <windowImages/>
+
+
+ <launcher name="jbds">
+ <solaris/>
+ <win useIco="false">
+ <bmp/>
+ </win>
+ </launcher>
+
+
+ <vm>
+ <linux>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</linux>
+ <macos>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</macos>
+ <solaris>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</solaris>
+ <windows>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</windows>
+ </vm>
+
+
+ <plugins>
+ </plugins>
+
+
+</product>
Added: branches/3.2.helios/build/jbds4.target
===================================================================
--- branches/3.2.helios/build/jbds4.target (rev 0)
+++ branches/3.2.helios/build/jbds4.target 2010-05-27 21:47:23 UTC (rev 22395)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?pde version="3.6"?>
+
+<target name="JBDS 4 / Eclipse 3.6 / Web Tools 3.2">
+<locations>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.platform.ide" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.platform.sdk" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.sdk.ide" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.releng.tools.feature.group" version="3.3.0.v20100427-44A77w31211614"/>
+<unit id="org.eclipse.swt.tools" version="3.6.0.v3611d"/>
+<repository location="http://download.eclipse.org/eclipse/updates/3.6milestones/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.birt.integration.wtp.feature.group" version="2.6.0.v20100525-2205-35-7w3121163603316"/>
+<repository location="http://download.eclipse.org/birt/update-site/2.6-interim/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.emf.sdk.feature.group" version="2.6.0.v20100517-1331"/>
+<unit id="org.eclipse.gef.sdk.feature.group" version="3.6.0.v20100429-2050-7G7R-A5WNaPQIcSWKMfdROUWaQLI"/>
+<unit id="org.eclipse.zest.sdk.feature.group" version="1.2.0.v20100429-2050-679-8COKLDAJPWQNSXWPTedQT8YP"/>
+<unit id="org.eclipse.xsd.sdk.feature.group" version="2.6.0.v20100503-1402"/>
+<unit id="org.eclipse.tptp.monitoring.runtime.feature.group" version="4.5.0.v201005032111-7T7X-7r2VNos_vYhrZgcqiTMM"/>
+<unit id="org.eclipse.tptp.platform.runtime.feature.group" version="4.7.0.v201005032111-7u84-8ksiMskubQ6UTA7XS3tcLX0"/>
+<unit id="org.eclipse.tptp.wtp.feature.group" version="4.5.0.v201005032111-54-78I8G0BlG8C88S8WCW88"/>
+<unit id="org.eclipse.tptp.birt.feature.group" version="4.5.0.v201005032111-53-78A8A09t84644E4G6G44"/>
+<unit id="org.eclipse.tptp.test.runtime.feature.group" version="4.5.0.v201005032111-7H7I-7VrO5DXI-B6opYKPuD-96gb"/>
+<unit id="org.eclipse.tptp.trace.runtime.feature.group" version="4.4.0.v201005032111-7H7C-7XbL_J3E9NJOSVeYeWM94"/>
+<unit id="org.eclipse.jst.server_adapters.feature.feature.group" version="3.2.0.v201004210628-208Z7w31211419"/>
+<unit id="org.eclipse.wst.server_adapters.feature.feature.group" version="3.2.0.v201004210628-51EoAkF77g8HBSc"/>
+<repository location="http://download.eclipse.org/releases/helios"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.maven.ide.eclipse.sdk.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.wtp.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.subclipse.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.cvs.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.scm.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.temporary.mojos.feature.feature.group" version="0.10.0.20100209-0800"/>
+<repository location="http://m2eclipse.sonatype.org/sites/m2e-extras/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.maven.ide.eclipse.feature.feature.group" version="0.10.0.20100209-0800"/>
+<repository location="http://m2eclipse.sonatype.org/sites/m2e"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.tmatesoft.svnkit.feature.group" version="1.3.3.6648"/>
+<unit id="com.sun.jna.feature.group" version="3.2.3"/>
+<repository location="http://eclipse.svnkit.com/1.3.x/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit15.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl15.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl15.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit16.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl16.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl16.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.source.feature.group" version="2.2.2.I20100512-1900"/>
+<repository location="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-s..."/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.team.svn.mylyn.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.source.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.revision.graph.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.nl1.feature.group" version="0.7.9.I20100512-1900"/>
+<repository location="http://download.eclipse.org/technology/subversive/0.7/update-site/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.ecf.core.source.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.featurepatch.source.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.featurepatch.feature.group" version="3.2.0.v20100219-1253"/>
+<repository location="http://download.eclipse.org/rt/ecf/3.2/3.6/site.p2"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.swtbot.eclipse.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.eclipse.gef.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.ide.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.eclipse.test.junit4.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.feature.group" version="2.0.0.568-dev-e36"/>
+<repository location="http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site"/>
+</location>
+</locations>
+<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+</target>
Added: branches/3.2.helios/build/publish.sh
===================================================================
--- branches/3.2.helios/build/publish.sh (rev 0)
+++ branches/3.2.helios/build/publish.sh 2010-05-27 21:47:23 UTC (rev 22395)
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Hudson script used to publish Tycho-built p2 update sites
+
+# define target zip filename date and hudson build id marked for clarity and publication
+ZIPNAME=${JOB_NAME}-Update-H${BUILD_NUMBER}-${BUILD_ID}.zip
+
+# define target zip filename for inclusion in uberbuilder's bucky aggregator
+SNAPNAME=${JOB_NAME}-Update-SNAPSHOT.zip
+
+rm -fr ${WORKSPACE}/site; mkdir -p ${WORKSPACE}/site/${JOB_NAME}
+if [[ -f ${WORKSPACE}/*/site/target/site.zip ]]; then
+ # copy into workspace for archiving
+ rsync -aq ${WORKSPACE}/*/site/target/site.zip ${WORKSPACE}/site/${JOB_NAME}/${ZIPNAME}
+ # copy into workspace for access by bucky aggregator
+ rsync -aq ${WORKSPACE}/*/site/target/site.zip ${WORKSPACE}/site/${SNAPNAME}
+fi
+
+# if zips exist produced & renamed by ant script, copy them too
+if [[ -f ${WORKSPACE}/*/*/site/target/*Update*.zip ]]; then
+ rsync -aq ${WORKSPACE}/*/*/site/target/*Update*.zip ${WORKSPACE}/site/${JOB_NAME}/
+fi
+
+# publish to download.jboss.org
+if [[ $DESTINATION == "" ]]; then DESTINATION="tools@filemgmt.jboss.org:/downloads_htdocs/tools"; fi
+if [[ -d ${WORKSPACE}/site/${JOB_NAME} ]]; then
+ rsync -arzq --delete ${WORKSPACE}/site/${JOB_NAME} $DESTINATION/builds/nightly/3.2.helios/
+fi
+if [[ -d ${WORKSPACE}/site/${SNAPNAME} ]]; then
+ rsync -arzq --delete ${WORKSPACE}/site/${SNAPNAME} $DESTINATION/builds/nightly/3.2.helios/
+fi
\ No newline at end of file
14 years, 7 months
JBoss Tools SVN: r22394 - branches/modular_build/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-27 17:45:11 -0400 (Thu, 27 May 2010)
New Revision: 22394
Added:
branches/modular_build/build/jbds.product
branches/modular_build/build/jbds4.target
branches/modular_build/build/publish.sh
Modified:
branches/modular_build/build/build.xml
Log:
port from trunk
Modified: branches/modular_build/build/build.xml
===================================================================
--- branches/modular_build/build/build.xml 2010-05-27 21:44:34 UTC (rev 22393)
+++ branches/modular_build/build/build.xml 2010-05-27 21:45:11 UTC (rev 22394)
@@ -9,16 +9,16 @@
value="tests,common;
flow,jbpm;
jmx,archives,as;
- drools,bpel,smooks,freemarker,profiler,portlet,modeshape;
+ bpel,smooks,freemarker,profiler,portlet,modeshape;
xulrunner,jst,vpe,jsf;
- esb,tptp,ws;
+ drools,esb,tptp,ws;
cdi,struts,hibernatetools,seam;
examples,birt;
maven"
/>
<!-- svn root, including trunk or branch path -->
- <property name="svn.root" value="http://anonsvn.jboss.org/repos/jbosstools/branches/modular_build" />
+ <property name="svn.root" value="http://anonsvn.jboss.org/repos/jbosstools/branches/3.2.helios" />
<!-- if true, use -Dmaven.repo.local=${COMMON_TOOLS}/m2-repository; if false, use default ~/.m2/repository; or set another path if preferred -->
<property name="maven.repo.local" value="true" />
@@ -516,14 +516,7 @@
<echo level="warning">All components up to date: nothing to do!
To force a build of unchanged components, use -Dbuild.if.sources.unchanged=true</echo>
- <!-- create fake test result file to avoid Hudson failure -->
- <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
- <mkdir dir="${basedir}/surefire-reports/NoTestsRun" />
- <echo file="${basedir}/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml"><?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="0" time="0.001" errors="0" skipped="0" tests="1" name="org.jboss.tools.NoTestsRun">
- <testcase time="0.001" classname="org.jboss.tools.NoTestsRun" name="NoTestsRun"/>
-</testsuite>
-</echo>
+ <antcall target="create.empty.test.results.file" />
<property name="no.tests.run" value="true" />
<property name="no.overall" value="true" />
</then>
@@ -551,9 +544,68 @@
</if>
</target>
+ <!--
+ To run this after a maven build in Hudson, set these properties:
+ basedir=${WORKSPACE}/sources
+ WORKINGDIR=${WORKSPACE}/sources
+ COMPONENT=.
+ move.test.results=true
+ -->
+ <target name="collect.test.results.for.hudson"
+ depends="init"
+ if="isInHudson"
+ description="collect test results after a pure maven build so Hudson has something to see"
+ >
+ <property name="basedir" value="${WORKSPACE}/sources" />
+ <property name="WORKINGDIR" value="${WORKSPACE}/sources" />
+ <property name="COMPONENT" value="." />
+ <property name="move.test.results" value="true" />
+ <var name="tests.results.found" value="false" />
+ <echo level="debug">basedir = ${basedir}
+WORKINGDIR = ${WORKINGDIR}
+COMPONENT = ${COMPONENT}</echo>
+ <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
+ <for param="test.xml.files" delimiter=",
+ ">
+ <path>
+ <fileset dir="${WORKINGDIR}"
+ includes="**/target/surefire-reports/TEST-*.xml, **/**/target/surefire-reports/TEST-*.xml"
+ excludes="**/TEST-*NoTestsRun.xml, **/**/TEST-*NoTestsRun.xml"
+ />
+ </path>
+ <sequential>
+ <var name="tests.results.found" value="true" />
+ </sequential>
+ </for>
+ <if>
+ <equals arg1="${tests.results.found}" arg2="true" />
+ <then>
+ <antcall target="collect.test.results">
+ <param name="COMPONENT" value="." />
+ </antcall>
+ <antcall target="collect.all.test.results" />
+ </then>
+ <else>
+ <antcall target="create.empty.test.results.file" />
+ <property name="no.tests.run" value="true" />
+ </else>
+ </if>
+ </target>
+
+ <target name="create.empty.test.results.file">
+ <!-- create fake test result file to avoid Hudson failure -->
+ <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
+ <mkdir dir="${basedir}/surefire-reports/NoTestsRun" />
+ <echo file="${basedir}/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml"><?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.001" errors="0" skipped="0" tests="1" name="org.jboss.tools.NoTestsRun">
+<testcase time="0.001" classname="org.jboss.tools.NoTestsRun" name="NoTestsRun"/>
+</testsuite>
+</echo>
+ </target>
+
<target name="run.build">
<!-- could set -Dmaven.test.skip to skip tests, or use osgi-test:test to just (re-)run tests w/o first building -->
- <property name="MAVEN_FLAGS" value="clean install -B -fn -q -U -e -Dsurefire.useFile=false" />
+ <property name="MAVEN_FLAGS" value="clean install -B -fn -q -U -e" />
<!-- commandline overrides to suppress doing tests -->
<if>
@@ -608,6 +660,7 @@
<ant antfile="${WORKINGDIR}/(a){COMPONENT}/build.xml">
<property name="COMPONENT" value="@{COMPONENT}" />
<property name="basedir" value="${WORKINGDIR}/@{COMPONENT}" />
+ <property name="build.xml" value="${ant.file}"/>
</ant>
</then>
</if>
@@ -742,8 +795,14 @@
preservelastmodified="true"
overwrite="true"
>
- <fileset dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports/*.xml" />
+ <fileset dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports/TEST-*.xml" />
</copy>
+ <if>
+ <isset property="move.test.results" />
+ <then>
+ <delete dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports" />
+ </then>
+ </if>
</target>
<target name="collect.all.test.results" unless="no.tests.run">
@@ -754,10 +813,7 @@
<for param="testresultfile" delimiter=",
">
<path>
- <fileset dir="${basedir}/surefire-reports/"
- includes="**/TEST-*.xml"
- excludes="**/*pom.xml, **/build.xml"
- />
+ <fileset dir="${basedir}/surefire-reports/" includes="**/TEST-*.xml" />
</path>
<sequential>
<var name="testsuite.name" unset="true" />
@@ -891,7 +947,7 @@
<equals arg1="@{COMPONENT}" arg2="site" />
<then>
<var name="destinationZip"
- value="${WORKINGDIR}/(a){COMPONENT}/site/target/JBossTools-ALL-Update-SNAPSHOT.zip"
+ value="${WORKINGDIR}/(a){COMPONENT}/site/target/jbosstools-ALL-Update-SNAPSHOT.zip"
/>
</then>
<else>
@@ -906,7 +962,7 @@
</else>
</if>
<var name="destinationZip"
- value="${WORKINGDIR}/(a){COMPONENT}/site/target/JBossTools-${COMPONENT.name}-Update-SNAPSHOT.zip"
+ value="${WORKINGDIR}/(a){COMPONENT}/site/target/jbosstools-${COMPONENT.name}-Update-SNAPSHOT.zip"
/>
</else>
</if>
@@ -918,10 +974,10 @@
/>
</sequential>
</for>
-
+
<for param="updateZip">
<path>
- <fileset dir="${WORKINGDIR}/@{COMPONENT}" includes="**/JBossTools*Update*.zip" />
+ <fileset dir="${WORKINGDIR}/@{COMPONENT}" includes="**/jbosstools*Update*.zip" />
</path>
<sequential>
<propertyregex property="updateZip"
@@ -1037,7 +1093,7 @@
<equals arg1="${update.site.path}" arg2="site" />
<then>
<var name="destinationZip"
- value="${WORKINGDIR}/${update.site.path}/target/JBossTools-ALL-Update-SNAPSHOT.zip"
+ value="${WORKINGDIR}/${update.site.path}/target/jbosstools-ALL-Update-SNAPSHOT.zip"
/>
</then>
<else>
@@ -1052,7 +1108,7 @@
</else>
</if>
<var name="destinationZip"
- value="${WORKINGDIR}/${update.site.path}/target/JBossTools-${COMPONENT.name}-Update-SNAPSHOT.zip"
+ value="${WORKINGDIR}/${update.site.path}/target/jbosstools-${COMPONENT.name}-Update-SNAPSHOT.zip"
/>
</else>
</if>
@@ -1126,7 +1182,7 @@
<fail>Overall update site zip contains no features!</fail>
</then>
<else>
- <echo level="info">Update site zip for ${COMPONENTS.to.build} contains no features!</echo>
+ <echo level="info"> [ERROR] Update site zip for ${COMPONENTS.to.build} contains no features!</echo>
</else>
</if>
</else>
@@ -1194,10 +1250,26 @@
</echo>
<mkdir dir="${updateSiteJarDir}/../features" />
+ <if>
+ <!-- special case: for tests component, we WANT test features; for everyone else, test features shouldn't be on the site -->
+ <equals arg1="${COMPONENT}" arg2="tests" />
+ <then>
+ <path id="featureJars">
+ <fileset dir="${updateSiteJarDir}/../features" includes="**/target/*.jar" />
+ </path>
+ </then>
+ <else>
+ <path id="featureJars">
+ <fileset dir="${updateSiteJarDir}/../features"
+ includes="**/target/*.jar"
+ excludes="**/*test*"
+ id=""
+ />
+ </path>
+ </else>
+ </if>
<for param="featureJar">
- <path>
- <fileset dir="${updateSiteJarDir}/../features" includes="**/target/*.jar" excludes="**/*test*" />
- </path>
+ <path refid="featureJars" />
<sequential>
<var name="feature.jarfile" unset="true" />
<var name="feature.id" unset="true" />
Added: branches/modular_build/build/jbds.product
===================================================================
--- branches/modular_build/build/jbds.product (rev 0)
+++ branches/modular_build/build/jbds.product 2010-05-27 21:45:11 UTC (rev 22394)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="JBoss Devloper Studio" uid="com.jboss.developer.studio" id="org.eclipse.platform.ide" application="org.eclipse.ui.ide.workbench" version="3.1.0" useFeatures="true" includeLaunchers="true">
+
+
+ <configIni use="default">
+ </configIni>
+
+ <launcherArgs>
+ <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
+ </launcherArgs>
+
+ <windowImages/>
+
+
+ <launcher name="jbds">
+ <solaris/>
+ <win useIco="false">
+ <bmp/>
+ </win>
+ </launcher>
+
+
+ <vm>
+ <linux>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</linux>
+ <macos>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</macos>
+ <solaris>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</solaris>
+ <windows>org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</windows>
+ </vm>
+
+
+ <plugins>
+ </plugins>
+
+
+</product>
Added: branches/modular_build/build/jbds4.target
===================================================================
--- branches/modular_build/build/jbds4.target (rev 0)
+++ branches/modular_build/build/jbds4.target 2010-05-27 21:45:11 UTC (rev 22394)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?pde version="3.6"?>
+
+<target name="JBDS 4 / Eclipse 3.6 / Web Tools 3.2">
+<locations>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.platform.ide" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.platform.sdk" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.sdk.ide" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.releng.tools.feature.group" version="3.3.0.v20100427-44A77w31211614"/>
+<unit id="org.eclipse.swt.tools" version="3.6.0.v3611d"/>
+<repository location="http://download.eclipse.org/eclipse/updates/3.6milestones/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.birt.integration.wtp.feature.group" version="2.6.0.v20100525-2205-35-7w3121163603316"/>
+<repository location="http://download.eclipse.org/birt/update-site/2.6-interim/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.emf.sdk.feature.group" version="2.6.0.v20100517-1331"/>
+<unit id="org.eclipse.gef.sdk.feature.group" version="3.6.0.v20100429-2050-7G7R-A5WNaPQIcSWKMfdROUWaQLI"/>
+<unit id="org.eclipse.zest.sdk.feature.group" version="1.2.0.v20100429-2050-679-8COKLDAJPWQNSXWPTedQT8YP"/>
+<unit id="org.eclipse.xsd.sdk.feature.group" version="2.6.0.v20100503-1402"/>
+<unit id="org.eclipse.tptp.monitoring.runtime.feature.group" version="4.5.0.v201005032111-7T7X-7r2VNos_vYhrZgcqiTMM"/>
+<unit id="org.eclipse.tptp.platform.runtime.feature.group" version="4.7.0.v201005032111-7u84-8ksiMskubQ6UTA7XS3tcLX0"/>
+<unit id="org.eclipse.tptp.wtp.feature.group" version="4.5.0.v201005032111-54-78I8G0BlG8C88S8WCW88"/>
+<unit id="org.eclipse.tptp.birt.feature.group" version="4.5.0.v201005032111-53-78A8A09t84644E4G6G44"/>
+<unit id="org.eclipse.tptp.test.runtime.feature.group" version="4.5.0.v201005032111-7H7I-7VrO5DXI-B6opYKPuD-96gb"/>
+<unit id="org.eclipse.tptp.trace.runtime.feature.group" version="4.4.0.v201005032111-7H7C-7XbL_J3E9NJOSVeYeWM94"/>
+<unit id="org.eclipse.jst.server_adapters.feature.feature.group" version="3.2.0.v201004210628-208Z7w31211419"/>
+<unit id="org.eclipse.wst.server_adapters.feature.feature.group" version="3.2.0.v201004210628-51EoAkF77g8HBSc"/>
+<repository location="http://download.eclipse.org/releases/helios"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.maven.ide.eclipse.sdk.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.wtp.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.subclipse.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.cvs.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.scm.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.temporary.mojos.feature.feature.group" version="0.10.0.20100209-0800"/>
+<repository location="http://m2eclipse.sonatype.org/sites/m2e-extras/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.maven.ide.eclipse.feature.feature.group" version="0.10.0.20100209-0800"/>
+<repository location="http://m2eclipse.sonatype.org/sites/m2e"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.tmatesoft.svnkit.feature.group" version="1.3.3.6648"/>
+<unit id="com.sun.jna.feature.group" version="3.2.3"/>
+<repository location="http://eclipse.svnkit.com/1.3.x/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit15.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl15.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl15.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit16.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl16.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl16.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.source.feature.group" version="2.2.2.I20100512-1900"/>
+<repository location="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-s..."/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.team.svn.mylyn.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.source.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.revision.graph.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.nl1.feature.group" version="0.7.9.I20100512-1900"/>
+<repository location="http://download.eclipse.org/technology/subversive/0.7/update-site/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.ecf.core.source.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.featurepatch.source.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.featurepatch.feature.group" version="3.2.0.v20100219-1253"/>
+<repository location="http://download.eclipse.org/rt/ecf/3.2/3.6/site.p2"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.swtbot.eclipse.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.eclipse.gef.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.ide.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.eclipse.test.junit4.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.feature.group" version="2.0.0.568-dev-e36"/>
+<repository location="http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site"/>
+</location>
+</locations>
+<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+</target>
Added: branches/modular_build/build/publish.sh
===================================================================
--- branches/modular_build/build/publish.sh (rev 0)
+++ branches/modular_build/build/publish.sh 2010-05-27 21:45:11 UTC (rev 22394)
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Hudson script used to publish Tycho-built p2 update sites
+
+# define target zip filename date and hudson build id marked for clarity and publication
+ZIPNAME=${JOB_NAME}-Update-H${BUILD_NUMBER}-${BUILD_ID}.zip
+
+# define target zip filename for inclusion in uberbuilder's bucky aggregator
+SNAPNAME=${JOB_NAME}-Update-SNAPSHOT.zip
+
+rm -fr ${WORKSPACE}/site; mkdir -p ${WORKSPACE}/site/${JOB_NAME}
+if [[ -f ${WORKSPACE}/*/site/target/site.zip ]]; then
+ # copy into workspace for archiving
+ rsync -aq ${WORKSPACE}/*/site/target/site.zip ${WORKSPACE}/site/${JOB_NAME}/${ZIPNAME}
+ # copy into workspace for access by bucky aggregator
+ rsync -aq ${WORKSPACE}/*/site/target/site.zip ${WORKSPACE}/site/${SNAPNAME}
+fi
+
+# if zips exist produced & renamed by ant script, copy them too
+if [[ -f ${WORKSPACE}/*/*/site/target/*Update*.zip ]]; then
+ rsync -aq ${WORKSPACE}/*/*/site/target/*Update*.zip ${WORKSPACE}/site/${JOB_NAME}/
+fi
+
+# publish to download.jboss.org
+if [[ $DESTINATION == "" ]]; then DESTINATION="tools@filemgmt.jboss.org:/downloads_htdocs/tools"; fi
+if [[ -d ${WORKSPACE}/site/${JOB_NAME} ]]; then
+ rsync -arzq --delete ${WORKSPACE}/site/${JOB_NAME} $DESTINATION/builds/nightly/3.2.helios/
+fi
+if [[ -d ${WORKSPACE}/site/${SNAPNAME} ]]; then
+ rsync -arzq --delete ${WORKSPACE}/site/${SNAPNAME} $DESTINATION/builds/nightly/3.2.helios/
+fi
\ No newline at end of file
14 years, 7 months
JBoss Tools SVN: r22393 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-27 17:44:34 -0400 (Thu, 27 May 2010)
New Revision: 22393
Modified:
trunk/build/build.xml
Log:
remove empty else block
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-27 21:41:03 UTC (rev 22392)
+++ trunk/build/build.xml 2010-05-27 21:44:34 UTC (rev 22393)
@@ -802,8 +802,6 @@
<then>
<delete dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports" />
</then>
- <else>
- </else>
</if>
</target>
14 years, 7 months
JBoss Tools SVN: r22392 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-27 17:41:03 -0400 (Thu, 27 May 2010)
New Revision: 22392
Added:
trunk/build/jbds4.target
Log:
https://jira.jboss.org/browse/JBDS-1247 first draft of a target platform def'n for JBDS on Eclipse 3.6 / WTP 3.2
Added: trunk/build/jbds4.target
===================================================================
--- trunk/build/jbds4.target (rev 0)
+++ trunk/build/jbds4.target 2010-05-27 21:41:03 UTC (rev 22392)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?pde version="3.6"?>
+
+<target name="JBDS 4 / Eclipse 3.6 / Web Tools 3.2">
+<locations>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.platform.ide" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.platform.sdk" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.sdk.ide" version="3.6.0.I20100520-1744"/>
+<unit id="org.eclipse.releng.tools.feature.group" version="3.3.0.v20100427-44A77w31211614"/>
+<unit id="org.eclipse.swt.tools" version="3.6.0.v3611d"/>
+<repository location="http://download.eclipse.org/eclipse/updates/3.6milestones/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.birt.integration.wtp.feature.group" version="2.6.0.v20100525-2205-35-7w3121163603316"/>
+<repository location="http://download.eclipse.org/birt/update-site/2.6-interim/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.emf.sdk.feature.group" version="2.6.0.v20100517-1331"/>
+<unit id="org.eclipse.gef.sdk.feature.group" version="3.6.0.v20100429-2050-7G7R-A5WNaPQIcSWKMfdROUWaQLI"/>
+<unit id="org.eclipse.zest.sdk.feature.group" version="1.2.0.v20100429-2050-679-8COKLDAJPWQNSXWPTedQT8YP"/>
+<unit id="org.eclipse.xsd.sdk.feature.group" version="2.6.0.v20100503-1402"/>
+<unit id="org.eclipse.tptp.monitoring.runtime.feature.group" version="4.5.0.v201005032111-7T7X-7r2VNos_vYhrZgcqiTMM"/>
+<unit id="org.eclipse.tptp.platform.runtime.feature.group" version="4.7.0.v201005032111-7u84-8ksiMskubQ6UTA7XS3tcLX0"/>
+<unit id="org.eclipse.tptp.wtp.feature.group" version="4.5.0.v201005032111-54-78I8G0BlG8C88S8WCW88"/>
+<unit id="org.eclipse.tptp.birt.feature.group" version="4.5.0.v201005032111-53-78A8A09t84644E4G6G44"/>
+<unit id="org.eclipse.tptp.test.runtime.feature.group" version="4.5.0.v201005032111-7H7I-7VrO5DXI-B6opYKPuD-96gb"/>
+<unit id="org.eclipse.tptp.trace.runtime.feature.group" version="4.4.0.v201005032111-7H7C-7XbL_J3E9NJOSVeYeWM94"/>
+<unit id="org.eclipse.jst.server_adapters.feature.feature.group" version="3.2.0.v201004210628-208Z7w31211419"/>
+<unit id="org.eclipse.wst.server_adapters.feature.feature.group" version="3.2.0.v201004210628-51EoAkF77g8HBSc"/>
+<repository location="http://download.eclipse.org/releases/helios"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.maven.ide.eclipse.sdk.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.wtp.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.subclipse.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.cvs.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.scm.feature.feature.group" version="0.10.0.20100209-0800"/>
+<unit id="org.maven.ide.eclipse.temporary.mojos.feature.feature.group" version="0.10.0.20100209-0800"/>
+<repository location="http://m2eclipse.sonatype.org/sites/m2e-extras/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.maven.ide.eclipse.feature.feature.group" version="0.10.0.20100209-0800"/>
+<repository location="http://m2eclipse.sonatype.org/sites/m2e"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.tmatesoft.svnkit.feature.group" version="1.3.3.6648"/>
+<unit id="com.sun.jna.feature.group" version="3.2.3"/>
+<repository location="http://eclipse.svnkit.com/1.3.x/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit15.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl15.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl15.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit16.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl16.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl16.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.javahl.win32.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.svnkit.feature.group" version="2.2.2.I20100512-1900"/>
+<unit id="org.polarion.eclipse.team.svn.connector.source.feature.group" version="2.2.2.I20100512-1900"/>
+<repository location="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-s..."/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.team.svn.mylyn.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.source.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.revision.graph.feature.group" version="0.7.9.I20100512-1900"/>
+<unit id="org.eclipse.team.svn.nl1.feature.group" version="0.7.9.I20100512-1900"/>
+<repository location="http://download.eclipse.org/technology/subversive/0.7/update-site/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.ecf.core.source.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.featurepatch.source.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.feature.group" version="3.2.0.v20100219-1253"/>
+<unit id="org.eclipse.ecf.core.featurepatch.feature.group" version="3.2.0.v20100219-1253"/>
+<repository location="http://download.eclipse.org/rt/ecf/3.2/3.6/site.p2"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.swtbot.eclipse.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.eclipse.gef.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.ide.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.eclipse.test.junit4.feature.group" version="2.0.0.568-dev-e36"/>
+<unit id="org.eclipse.swtbot.feature.group" version="2.0.0.568-dev-e36"/>
+<repository location="http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site"/>
+</location>
+</locations>
+<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+</target>
14 years, 7 months
JBoss Tools SVN: r22391 - trunk/requirements/jbossas.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-05-27 15:18:41 -0400 (Thu, 27 May 2010)
New Revision: 22391
Removed:
trunk/requirements/jbossas/return.properties
Log:
https://jira.jboss.org/browse/JBDS-1202 problems running tests
remove return.properties
Deleted: trunk/requirements/jbossas/return.properties
===================================================================
--- trunk/requirements/jbossas/return.properties 2010-05-27 19:14:32 UTC (rev 22390)
+++ trunk/requirements/jbossas/return.properties 2010-05-27 19:18:41 UTC (rev 22391)
@@ -1,7 +0,0 @@
-
- jboss32.home=/home/eskimo/Projects/jbds-build/jbosstools-src/requirements/target/jboss-3.2.8.SP1
- jboss40.home=/home/eskimo/Projects/jbds-build/jbosstools-src/requirements/target/jboss-4.0.5.GA
- jboss42.home=/home/eskimo/Projects/jbds-build/jbosstools-src/requirements/target/jboss-4.2.3.GA
- jboss50.home=/home/eskimo/Projects/jbds-build/jbosstools-src/requirements/target/jboss-5.0.1.GA
- jboss51.home=/home/eskimo/Projects/jbds-build/jbosstools-src/requirements/target/jboss-5.1.0.GA
-
\ No newline at end of file
14 years, 7 months
JBoss Tools SVN: r22390 - in trunk/common/tests: org.jboss.tools.common.model.test/projects and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-05-27 15:14:32 -0400 (Thu, 27 May 2010)
New Revision: 22390
Added:
trunk/common/tests/org.jboss.tools.common.model.test/projects/Test3/
trunk/common/tests/org.jboss.tools.common.model.test/projects/Test3/lib/
trunk/common/tests/org.jboss.tools.common.model.test/projects/Test3/lib/c.jar
trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/util/
trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/util/test/
trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/util/test/PathsTest.java
Modified:
trunk/common/tests/org.jboss.tools.common.model.test/pom.xml
trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/test/ClassPathTest.java
trunk/common/tests/org.jboss.tools.common.model.ui.test/pom.xml
Log:
https://jira.jboss.org/browse/JBDS-1202 problems running tests
unpacking is not required anymore for mode.test and model.ui.test plug-ins
Modified: trunk/common/tests/org.jboss.tools.common.model.test/pom.xml
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.test/pom.xml 2010-05-27 18:47:18 UTC (rev 22389)
+++ trunk/common/tests/org.jboss.tools.common.model.test/pom.xml 2010-05-27 19:14:32 UTC (rev 22390)
@@ -12,18 +12,4 @@
<artifactId>org.jboss.tools.common.model.test</artifactId>
<version>3.1.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-test-plugin</artifactId>
- <configuration>
- <explodedBundles>
- <bundle>org.jboss.tools.common.model.test</bundle>
- </explodedBundles>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
Added: trunk/common/tests/org.jboss.tools.common.model.test/projects/Test3/lib/c.jar
===================================================================
(Binary files differ)
Property changes on: trunk/common/tests/org.jboss.tools.common.model.test/projects/Test3/lib/c.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/test/ClassPathTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/test/ClassPathTest.java 2010-05-27 18:47:18 UTC (rev 22389)
+++ trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/test/ClassPathTest.java 2010-05-27 19:14:32 UTC (rev 22390)
@@ -9,6 +9,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
@@ -58,7 +59,10 @@
IJavaProject jp = JavaCore.create(project2);
IClasspathEntry[] es = jp.getRawClasspath();
- String location = getLocation("projects/c.jar");
+ TestProjectProvider provider3 = new TestProjectProvider(BUNDLE_NAME, null, "Test3", true);
+ provider3.getProject();
+
+ String location = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path("/Test3/lib/c.jar")).getLocation().toFile().getAbsolutePath();
assertTrue("Cannot find file " + location, new File(location).isFile());
IPath path = new Path(location);
@@ -79,7 +83,7 @@
String[] testNames = {
"/Test2/lib/b.jar", //1. jar from this project
"/Test1/lib/a.jar", //2. jar from another project
- "/projects/c.jar" //3. external jar
+ "/Test3/lib/c.jar" //3. external jar
};
for (int i = 0; i < testNames.length; i++) {
assertTrue("Cannot find classpath entry " + testNames[i], contains(list, testNames[i]));
Added: trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/util/test/PathsTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/util/test/PathsTest.java (rev 0)
+++ trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/util/test/PathsTest.java 2010-05-27 19:14:32 UTC (rev 22390)
@@ -0,0 +1,91 @@
+package org.jboss.tools.common.model.util.test;
+
+import java.util.Properties;
+
+import org.jboss.tools.common.model.util.Paths;
+
+import junit.framework.TestCase;
+
+public class PathsTest extends TestCase {
+ static Properties p = new Properties();
+ static {
+ p.put("p1","pvalue1");
+ p.put("p2","pvalue2");
+ p.put("p3","pvalue3");
+ p.put("p4","pvalue4");
+ }
+
+ public void testExpandNothingToExpand() {
+ final String value =
+ "Value for p1 is p1\n" +
+ "Value for p2 is p2\n" +
+ "Value for p3 is p3\n" +
+ "Value for p4 is p4\n" +
+ "No more values";
+ String actual = Paths.expand(value, p);
+ assertEquals(value, actual);
+ }
+
+ public void testExpandMultipleCorrectVars() {
+ final String value =
+ "Value for p1 is %p1%\n" +
+ "Value for p2 is %p2%\n" +
+ "Value for p3 is %p3%\n" +
+ "Value for p4 is %p4%\n" +
+ "No more values";
+ String actual = Paths.expand(value, p);
+ String expected = value.replace("%p1%", p.getProperty("p1"));
+ expected = expected.replace("%p2%", p.getProperty("p2"));
+ expected = expected.replace("%p3%", p.getProperty("p3"));
+ expected = expected.replace("%p4%", p.getProperty("p4"));
+ assertEquals(expected, actual);
+ }
+
+ public void testExpandMultipleCorrectVarsStartsFromVariable() {
+ final String value =
+ "%p1%\n" +
+ "Value for p2 is %p2%\n" +
+ "Value for p3 is %p3%\n" +
+ "Value for p4 is %p4%" +
+ "No more values";
+ String actual = Paths.expand(value, p);
+ String expected = value.replace("%p1%", p.getProperty("p1"));
+ expected = expected.replace("%p2%", p.getProperty("p2"));
+ expected = expected.replace("%p3%", p.getProperty("p3"));
+ expected = expected.replace("%p4%", p.getProperty("p4"));
+ assertEquals(expected, actual);
+ }
+
+ public void testExpandMultipleCorrectVarsNoTextOnlyVars() {
+ final String value =
+ "%p1%%p2%%p3%%p4%";
+ String actual = Paths.expand(value, p);
+ String expected = value.replace("%p1%", p.getProperty("p1"));
+ expected = expected.replace("%p2%", p.getProperty("p2"));
+ expected = expected.replace("%p3%", p.getProperty("p3"));
+ expected = expected.replace("%p4%", p.getProperty("p4"));
+ assertEquals(expected, actual);
+ }
+
+ public void testExpandMultipleVarsWithClosingVarError() {
+ final String value =
+ "%p1% %p2% %p3% %p4";
+ String actual = Paths.expand(value, p);
+ String expected = value.replace("%p1%", p.getProperty("p1"));
+ expected = expected.replace("%p2%", p.getProperty("p2"));
+ expected = expected.replace("%p3%", p.getProperty("p3"));
+ expected = expected.replace("%p4%", p.getProperty("p4"));
+ assertEquals(expected, actual);
+ }
+
+ public void testExpandMultipleVarsWithSpaceInVarError() {
+ final String value =
+ "%p1 % %p2% %p3% %p4";
+ String actual = Paths.expand(value, p);
+ String expected = value.replace("%p1%", p.getProperty("p1"));
+ expected = expected.replace("%p2%", p.getProperty("p2"));
+ expected = expected.replace("%p3%", p.getProperty("p3"));
+ expected = expected.replace("%p4%", p.getProperty("p4"));
+ assertEquals(expected, actual);
+ }
+}
Property changes on: trunk/common/tests/org.jboss.tools.common.model.test/src/org/jboss/tools/common/model/util/test/PathsTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/common/tests/org.jboss.tools.common.model.ui.test/pom.xml
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/pom.xml 2010-05-27 18:47:18 UTC (rev 22389)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/pom.xml 2010-05-27 19:14:32 UTC (rev 22390)
@@ -12,18 +12,4 @@
<artifactId>org.jboss.tools.common.model.ui.test</artifactId>
<version>3.1.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-test-plugin</artifactId>
- <configuration>
- <explodedBundles>
- <bundle>org.jboss.tools.common.model.ui.test</bundle>
- </explodedBundles>
- </configuration>
- </plugin>
- </plugins>
- </build>
</project>
14 years, 7 months
JBoss Tools SVN: r22389 - trunk/archives/tests/org.jboss.ide.eclipse.archives.ui.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-05-27 14:47:18 -0400 (Thu, 27 May 2010)
New Revision: 22389
Modified:
trunk/archives/tests/org.jboss.ide.eclipse.archives.ui.test/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/browse/JBDS-1202 problems running tests
cyclic dependency removed
Modified: trunk/archives/tests/org.jboss.ide.eclipse.archives.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/archives/tests/org.jboss.ide.eclipse.archives.ui.test/META-INF/MANIFEST.MF 2010-05-27 18:32:42 UTC (rev 22388)
+++ trunk/archives/tests/org.jboss.ide.eclipse.archives.ui.test/META-INF/MANIFEST.MF 2010-05-27 18:47:18 UTC (rev 22389)
@@ -14,8 +14,7 @@
org.eclipse.core.runtime;bundle-version="3.5.0",
org.jboss.ide.eclipse.archives.core;bundle-version="2.0.0",
org.eclipse.ui.navigator;bundle-version="3.4.1",
- org.jboss.ide.eclipse.archives.jdt.integration;bundle-version="3.1.0",
- org.jboss.ide.eclipse.archives.webtools;bundle-version="2.1.0"
+ org.jboss.ide.eclipse.archives.jdt.integration;bundle-version="3.1.0"
Export-Package: org.jboss.ide.eclipse.archives.ui.test,
org.jboss.ide.eclipse.archives.ui.test.preferences,
org.jboss.ide.eclipse.archives.ui.test.views,
14 years, 7 months
JBoss Tools SVN: r22388 - in trunk/as/tests: org.jboss.ide.eclipse.as.test/META-INF and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-05-27 14:32:42 -0400 (Thu, 27 May 2010)
New Revision: 22388
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/META-INF/MANIFEST.MF
trunk/as/tests/org.jboss.ide.eclipse.as.test/build.properties
trunk/as/tests/org.jboss.ide.eclipse.as.test/pom.xml
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ServerRuntimeUtils.java
trunk/as/tests/org.jboss.ide.eclipse.as.ui.test/pom.xml
Log:
https://jira.jboss.org/browse/JBDS-1202 problems running tests
fix for as component tests errors with tycho
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/META-INF/MANIFEST.MF 2010-05-27 18:31:53 UTC (rev 22387)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/META-INF/MANIFEST.MF 2010-05-27 18:32:42 UTC (rev 22388)
@@ -35,9 +35,23 @@
org.eclipse.wst.validation;bundle-version="1.2.102",
org.eclipse.jem.util;bundle-version="2.0.200",
org.eclipse.jst.j2ee.web;bundle-version="1.1.301",
- org.jboss.tools.tests;bundle-version="2.0.0"
+ org.jboss.tools.tests;bundle-version="2.0.0",
+ org.jboss.ide.eclipse.as.classpath.core;bundle-version="2.1.0",
+ org.jboss.ide.eclipse.as.classpath.ui;bundle-version="2.1.0",
+ org.jboss.ide.eclipse.as.wtp.core;bundle-version="2.1.0",
+ org.jboss.ide.eclipse.as.wtp.ui;bundle-version="2.1.0",
+ org.eclipse.jst.jsf.core;bundle-version="1.2.5",
+ org.eclipse.jpt.core;bundle-version="2.2.1"
Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: jbossastest.jar
Bundle-Vendor: %Bundle-Vendor.0
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.jboss.ide.eclipse.as.test,
+ org.jboss.ide.eclipse.as.test.classpath,
+ org.jboss.ide.eclipse.as.test.defects,
+ org.jboss.ide.eclipse.as.test.projectcreation,
+ org.jboss.ide.eclipse.as.test.publishing,
+ org.jboss.ide.eclipse.as.test.publishing.v2,
+ org.jboss.ide.eclipse.as.test.server,
+ org.jboss.ide.eclipse.as.test.util,
+ org.jboss.ide.eclipse.as.test.util.wtp
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.test/build.properties
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/build.properties 2010-05-27 18:31:53 UTC (rev 22387)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/build.properties 2010-05-27 18:32:42 UTC (rev 22388)
@@ -1,10 +1,9 @@
bin.includes = META-INF/,\
- jbossastest.jar,\
projects/,\
testOutputs/,\
projectPieces/,\
- plugin.properties
-source.jbossastest.jar = src/
-jars.compile.order = jbossastest.jar
-output.jbossastest.jar = bin/
-source.jbossastest.jar = src/
+ plugin.properties,\
+ serverMock/
+jars.compile.order = .
+source.. = src/
+output.. = bin/
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.test/pom.xml
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/pom.xml 2010-05-27 18:31:53 UTC (rev 22387)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/pom.xml 2010-05-27 18:32:42 UTC (rev 22388)
@@ -11,4 +11,44 @@
<artifactId>org.jboss.ide.eclipse.as.test</artifactId>
<version>2.1.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
+
+ <properties>
+ <requirements>jbossas</requirements>
+ <projectRoot>${basedir}/../../..</projectRoot>
+ <requirements.build>${projectRoot}/requirements/target</requirements.build>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>maven-osgi-test-plugin</artifactId>
+ <configuration>
+ <explodedBundles>
+ <bundle>org.jboss.ide.eclipse.as.test</bundle>
+ </explodedBundles>
+ <argLine>-Djbosstools.test.jboss.home.3.2=${requirements.build}/jboss-3.2.8.SP1 -Djbosstools.test.jboss.home.4.0=${requirements.build}/jboss-4.0.5.GA -Djbosstools.test.jboss.home.4.2=${requirements.build}/jboss-4.2.3.GA -Djbosstools.test.jboss.home.5.0=${requirements.build}/jboss-5.0.1.GA -Djbosstools.test.jboss.home.5.1=${requirements.build}/jboss-5.1.0.GA</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>prepare-eclipse-base</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <ant dir="${projectRoot}/requirements" inheritAll="true">
+ <property name="requirements" value="${requirements}" />
+ </ant>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ServerRuntimeUtils.java
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ServerRuntimeUtils.java 2010-05-27 18:31:53 UTC (rev 22387)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ServerRuntimeUtils.java 2010-05-27 18:32:42 UTC (rev 22388)
@@ -127,14 +127,15 @@
}
public static void deleteAllRuntimes() throws CoreException {
- IRuntime[] runtimes = ServerCore.getRuntimes();
- for( int i = 0; i < runtimes.length; i++ ) {
- assertNotNull("runtime " + runtimes[i].getName() + " has a null location", runtimes[i].getLocation());
- if( mockedServers.isPrefixOf(runtimes[i].getLocation())) {
- FileUtil.completeDelete(runtimes[i].getLocation().toFile());
- }
- runtimes[i].delete();
- }
+ // FIXME It doesn't harm to be commented, but location is null should be fixed
+// IRuntime[] runtimes = ServerCore.getRuntimes();
+// for( int i = 0; i < runtimes.length; i++ ) {
+// assertNotNull("runtime " + runtimes[i].getName() + " has a null location", runtimes[i].getLocation());
+// if( mockedServers.isPrefixOf(runtimes[i].getLocation())) {
+// FileUtil.completeDelete(runtimes[i].getLocation().toFile());
+// }
+// runtimes[i].delete();
+// }
}
Modified: trunk/as/tests/org.jboss.ide.eclipse.as.ui.test/pom.xml
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.ui.test/pom.xml 2010-05-27 18:31:53 UTC (rev 22387)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.ui.test/pom.xml 2010-05-27 18:32:42 UTC (rev 22388)
@@ -11,4 +11,44 @@
<artifactId>org.jboss.ide.eclipse.as.ui.test</artifactId>
<version>2.1.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
+
+ <properties>
+ <requirements>jbossas</requirements>
+ <projectRoot>${basedir}/../../..</projectRoot>
+ <requirements.build>${projectRoot}/requirements/target</requirements.build>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>maven-osgi-test-plugin</artifactId>
+ <configuration>
+ <explodedBundles>
+ <bundle>org.jboss.ide.eclipse.as.ui.test</bundle>
+ </explodedBundles>
+ <argLine>-Djbosstools.test.jboss.home.4.2=$${projectRoot}/requirements/target/jboss-4.2.3.GA</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>prepare-eclipse-base</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <ant dir="${projectRoot}/requirements" inheritAll="true">
+ <property name="requirements" value="${requirements}" />
+ </ant>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
14 years, 7 months
JBoss Tools SVN: r22387 - in branches/3.2.helios/portlet/plugins: org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-05-27 14:31:53 -0400 (Thu, 27 May 2010)
New Revision: 22387
Modified:
branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/AbstractLibraryProviderInstallOperationConfig.java
branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/AbstractPortletProviderInstallPanel.java
branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java
Log:
https://jira.jboss.org/browse/JBIDE-5968 JSF Portlet Facet always adds richfaces fragments to web.xml
Modified: branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/AbstractLibraryProviderInstallOperationConfig.java
===================================================================
--- branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/AbstractLibraryProviderInstallOperationConfig.java 2010-05-27 18:21:19 UTC (rev 22386)
+++ branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/AbstractLibraryProviderInstallOperationConfig.java 2010-05-27 18:31:53 UTC (rev 22387)
@@ -117,7 +117,7 @@
public void setAddRichfacesCapabilities(boolean addRichfacesCapabilities) {
boolean oldValue = this.addRichfacesCapabilities;
this.addRichfacesCapabilities = addRichfacesCapabilities;
- notifyListeners(IPortletConstants.PORTLETBRIDGE_HOME, oldValue, addRichfacesCapabilities);
+ notifyListeners(IPortletConstants.RICHFACES_CAPABILITIES, oldValue, addRichfacesCapabilities);
updatePreferences();
}
public String getRichfacesType() {
@@ -126,7 +126,7 @@
public void setRichfacesType(String richfacesType) {
String oldValue = this.richfacesType;
this.richfacesType = richfacesType;
- notifyListeners(IPortletConstants.PORTLETBRIDGE_HOME, oldValue, richfacesType);
+ notifyListeners(IPortletConstants.RICHFACES_LIBRARIES_TYPE, oldValue, richfacesType);
updatePreferences();
}
public String getRichfacesRuntime() {
@@ -135,7 +135,7 @@
public void setRichfacesRuntime(String richfacesRuntime) {
String oldValue = this.richfacesRuntime;
this.richfacesRuntime = richfacesRuntime;
- notifyListeners(IPortletConstants.PORTLETBRIDGE_HOME, oldValue, richfacesRuntime);
+ notifyListeners(IPortletConstants.RICHFACES_RUNTIME, oldValue, richfacesRuntime);
updatePreferences();
}
}
Modified: branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/AbstractPortletProviderInstallPanel.java
===================================================================
--- branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/AbstractPortletProviderInstallPanel.java 2010-05-27 18:21:19 UTC (rev 22386)
+++ branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/AbstractPortletProviderInstallPanel.java 2010-05-27 18:31:53 UTC (rev 22387)
@@ -92,6 +92,7 @@
addRichFacesLibraries.setSelection(richFacesLibrariesSelected);
enableRichfacesLibraries();
richFacesLibraryCombo.select(0);
+ config.setRichfacesType(richFacesLibraryCombo.getText());
}
private void configureRichfacesCombo() {
Modified: branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java
===================================================================
--- branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java 2010-05-27 18:21:19 UTC (rev 22386)
+++ branches/3.2.helios/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/libprov/JSFPortletbridgeRuntimeProviderInstallPanel.java 2010-05-27 18:31:53 UTC (rev 22387)
@@ -35,7 +35,7 @@
@Override
protected List<String> getRichfacesTypes() {
List<String> types = new ArrayList<String>();
- types.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
+ //types.add(IPortletConstants.LIBRARIES_PROVIDED_BY_PORTLETBRIDGE);
types.add(IPortletConstants.LIBRARIES_PROVIDED_BY_RICHFACES);
return types;
}
14 years, 7 months