You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(41) |
Apr
(9) |
May
|
Jun
|
Jul
(39) |
Aug
(38) |
Sep
(135) |
Oct
(220) |
Nov
(75) |
Dec
(74) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(44) |
Feb
(160) |
Mar
(49) |
Apr
(69) |
May
(40) |
Jun
(52) |
Jul
(47) |
Aug
(51) |
Sep
(19) |
Oct
(22) |
Nov
(36) |
Dec
(76) |
| 2007 |
Jan
(154) |
Feb
(165) |
Mar
(186) |
Apr
(143) |
May
(175) |
Jun
(133) |
Jul
(203) |
Aug
(177) |
Sep
(136) |
Oct
|
Nov
|
Dec
|
|
From: <caw...@us...> - 2007-02-19 17:35:35
|
Revision: 1972
http://svn.sourceforge.net/rubyeclipse/?rev=1972&view=rev
Author: cawilliams
Date: 2007-02-19 09:35:12 -0800 (Mon, 19 Feb 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/NodeFactory.java
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/offsetprovider/BeforeFirstMethodInClassOffsetProvider.java
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/ui/pages/ExtractMethodPage.java
trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/util/NameValidator.java
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/NodeFactory.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/NodeFactory.java 2007-02-19 17:34:40 UTC (rev 1971)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/NodeFactory.java 2007-02-19 17:35:12 UTC (rev 1972)
@@ -44,6 +44,7 @@
import org.jruby.ast.ClassVarNode;
import org.jruby.ast.Colon2Node;
import org.jruby.ast.CommentNode;
+import org.jruby.ast.ConstDeclNode;
import org.jruby.ast.ConstNode;
import org.jruby.ast.DVarNode;
import org.jruby.ast.DefnNode;
@@ -363,4 +364,8 @@
public static Node createLocalVarNode(String argName) {
return new LocalVarNode(pos, 0, argName);
}
+
+ public static Node createConstDeclNode(String name, Node valueNode) {
+ return new ConstDeclNode(pos, null, name, valueNode);
+ }
}
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/offsetprovider/BeforeFirstMethodInClassOffsetProvider.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/offsetprovider/BeforeFirstMethodInClassOffsetProvider.java 2007-02-19 17:34:40 UTC (rev 1971)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/offsetprovider/BeforeFirstMethodInClassOffsetProvider.java 2007-02-19 17:35:12 UTC (rev 1972)
@@ -31,6 +31,7 @@
package org.rubypeople.rdt.refactoring.offsetprovider;
import org.jruby.ast.DefnNode;
+import org.jruby.ast.ModuleNode;
import org.jruby.ast.Node;
import org.rubypeople.rdt.refactoring.core.NodeProvider;
import org.rubypeople.rdt.refactoring.nodewrapper.ClassNodeWrapper;
@@ -38,28 +39,36 @@
public class BeforeFirstMethodInClassOffsetProvider extends OffsetProvider {
- private PartialClassNodeWrapper classPart;
-
+ private Node bodyNode;
+ private Node declEndNode;
+
public BeforeFirstMethodInClassOffsetProvider(ClassNodeWrapper classNode, String document) {
this(classNode.getFirstPartialClassNode(), document);
}
public BeforeFirstMethodInClassOffsetProvider(PartialClassNodeWrapper classPart, String document){
super(document);
- this.classPart = classPart;
+ this.bodyNode = classPart.getClassBodyNode();
+ this.declEndNode = classPart.getDeclarationEndNode();
}
+
+ public BeforeFirstMethodInClassOffsetProvider(ModuleNode classNode, String document){
+ super(document);
+ this.bodyNode = classNode.getBodyNode();
+ this.declEndNode = classNode.getCPath();
+ }
@Override
public Node getInsertAfterNode() {
- if (NodeProvider.hasChildNode(classPart.getClassBodyNode(), DefnNode.class)) {
- Node contentNode = classPart.getClassBodyNode();
+ if (NodeProvider.hasChildNode(bodyNode, DefnNode.class)) {
+ Node contentNode = bodyNode;
Node firstMethodNode = NodeProvider.getFirstChildNode(contentNode, DefnNode.class);
if (NodeProvider.hasNodeBefore(contentNode, firstMethodNode)) {
return NodeProvider.getNodeBefore(contentNode, firstMethodNode);
}
- return classPart.getDeclarationEndNode();
+ return declEndNode;
}
- return classPart.getClassBodyNode();
+ return bodyNode;
}
}
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/ui/pages/ExtractMethodPage.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/ui/pages/ExtractMethodPage.java 2007-02-19 17:34:40 UTC (rev 1971)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/ui/pages/ExtractMethodPage.java 2007-02-19 17:35:12 UTC (rev 1972)
@@ -33,6 +33,7 @@
import java.util.Observable;
import java.util.Observer;
+import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.ltk.ui.refactoring.UserInputWizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
@@ -196,7 +197,7 @@
private HashMap<Object, Boolean> completedValidators = new HashMap<Object, Boolean>();
public void setError(String message) {
- setMessage(message, ConvertTempToFieldPage.ERROR);
+ setMessage(message, IMessageProvider.ERROR);
}
public void setComplete(Object source, boolean complete) {
Modified: trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/util/NameValidator.java
===================================================================
--- trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/util/NameValidator.java 2007-02-19 17:34:40 UTC (rev 1971)
+++ trunk/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/util/NameValidator.java 2007-02-19 17:35:12 UTC (rev 1972)
@@ -57,4 +57,9 @@
return valid && Keyword.getKeyword(stringToValidate, stringToValidate.length()) == null;
}
+ public static boolean isValidConstantName(String newName) {
+ // FIXME Check for valid constant name
+ return isValidClassName(newName);
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-02-19 17:34:42
|
Revision: 1971
http://svn.sourceforge.net/rubyeclipse/?rev=1971&view=rev
Author: cawilliams
Date: 2007-02-19 09:34:40 -0800 (Mon, 19 Feb 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/LaunchingMessages.properties
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/LaunchingMessages.properties
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/LaunchingMessages.properties 2007-02-19 15:34:17 UTC (rev 1970)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/LaunchingMessages.properties 2007-02-19 17:34:40 UTC (rev 1971)
@@ -1,5 +1,5 @@
#########################################
-# (c) Copyright RubyPeople, Inc. 2002.
+# (c) Copyright RubyPeople, Inc. 2002, 2007
# All Rights Reserved.
#########################################
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-02-19 15:34:22
|
Revision: 1970
http://svn.sourceforge.net/rubyeclipse/?rev=1970&view=rev
Author: cawilliams
Date: 2007-02-19 07:34:17 -0800 (Mon, 19 Feb 2007)
Log Message:
-----------
add ruby nature
Modified Paths:
--------------
trunk/org.rubypeople.rdt.refactoring.tests/.project
Modified: trunk/org.rubypeople.rdt.refactoring.tests/.project
===================================================================
--- trunk/org.rubypeople.rdt.refactoring.tests/.project 2007-02-19 14:24:20 UTC (rev 1969)
+++ trunk/org.rubypeople.rdt.refactoring.tests/.project 2007-02-19 15:34:17 UTC (rev 1970)
@@ -1,28 +1,34 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.rubypeople.rdt.refactoring.tests</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.rubypeople.rdt.refactoring.tests</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.rubypeople.rdt.core.rubybuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.rubypeople.rdt.core.rubynature</nature>
+ </natures>
+</projectDescription>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-02-19 14:24:21
|
Revision: 1969
http://svn.sourceforge.net/rubyeclipse/?rev=1969&view=rev
Author: cawilliams
Date: 2007-02-19 06:24:20 -0800 (Mon, 19 Feb 2007)
Log Message:
-----------
fix problem where we could never load the variables and containers file
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java 2007-02-18 16:54:06 UTC (rev 1968)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java 2007-02-19 14:24:20 UTC (rev 1969)
@@ -891,38 +891,9 @@
try {
in = new DataInputStream(new BufferedInputStream(new FileInputStream(file)));
switch (in.readInt()) {
- case 2 :
+ case VARIABLES_AND_CONTAINERS_FILE_VERSION :
new VariablesAndContainersLoadHelper(in).load();
break;
- case 1 : // backward compatibility, load old format
- // variables
- int size = in.readInt();
- while (size-- > 0) {
- String varName = in.readUTF();
- String pathString = in.readUTF();
- if (CP_ENTRY_IGNORE.equals(pathString))
- continue;
- IPath varPath = Path.fromPortableString(pathString);
- this.variables.put(varName, varPath);
- this.previousSessionVariables.put(varName, varPath);
- }
-
- // containers
- IRubyModel model = getRubyModel();
- int projectSize = in.readInt();
- while (projectSize-- > 0) {
- String projectName = in.readUTF();
- IRubyProject project = model.getRubyProject(projectName);
- int containerSize = in.readInt();
- while (containerSize-- > 0) {
- IPath containerPath = Path.fromPortableString(in.readUTF());
- int length = in.readInt();
- byte[] containerString = new byte[length];
- in.readFully(containerString);
- recreatePersistedContainer(project, containerPath, new String(containerString), true/*add to container values*/);
- }
- }
- break;
}
} catch (IOException e) {
if (file.exists())
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 16:54:12
|
Revision: 1968
http://svn.sourceforge.net/rubyeclipse/?rev=1968&view=rev
Author: mbarchfe
Date: 2007-02-18 08:54:06 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
run refactoring tests separately, since their test suites create TestCases dynamically
Modified Paths:
--------------
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.xml
trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config
Modified: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.xml 2007-02-18 16:53:06 UTC (rev 1967)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.xml 2007-02-18 16:54:06 UTC (rev 1968)
@@ -72,6 +72,17 @@
<property name="vmargs" value="-Dautotest.debug=${autotestsuite.trace} -Dautotestsuite.plugin.inclusions=${autotestsuite.plugin.inclusions} -Dautotestsuite.plugin.exclusions=${autotestsuite.plugin.exclusions} -Dautotestsuite.class.inclusions=${autotestsuite.class.inclusions} -Dautotestsuite.class.exclusions=${autotestsuite.class.exclusions} -Dnet.sourceforge.cobertura.datafile=${cobertura.ser}" />
</ant>
+
+ <ant target="ui-test" antfile="${test.library.xml}" dir="${test.eclipse.host}">
+ <!-- use -clean because plug-ins have been unzipped into the eclipse folder -->
+ <property name="data-dir" value="${test.workspace} -clean" />
+ <property name="test-output" value="refactoring.xml" />
+ <property name="plugin-name" value="org.rubypeople.rdt.refactoring.tests" />
+ <property name="classname" value="org.rubypeople.rdt.refactoring.tests.TS_All" />
+ <property name="eclipse-home" value="${test.eclipse.host}" />
+
+ </ant>
+
</target>
<target name="run" depends="-init,runAllTestSuite" description="Run all tests and create a report.">
Modified: trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config 2007-02-18 16:53:06 UTC (rev 1967)
+++ trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config 2007-02-18 16:54:06 UTC (rev 1968)
@@ -1,5 +1,5 @@
-#Sun Feb 18 13:14:27 CET 2007
-autotestsuite.class.exclusions=.*FTC_.*
+#Sun Feb 18 17:29:33 CET 2007
+autotestsuite.class.exclusions=.*FTC_.*;.*\\.refactoring\\..*
test.eclipse.zip=C\:\\downloads\\eclipse-SDK-3.2.1-win32.zip
autotestsuite.trace=true
pluginbuilder.features=org.rubypeople.rdt,org.rubypeople.rdt-tests
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 16:53:12
|
Revision: 1967
http://svn.sourceforge.net/rubyeclipse/?rev=1967&view=rev
Author: mbarchfe
Date: 2007-02-18 08:53:06 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
renamed featureVersion to version
Modified Paths:
--------------
trunk/org.rubypeople.rdt.doc.user/build.xml
trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml
Modified: trunk/org.rubypeople.rdt.doc.user/build.xml
===================================================================
--- trunk/org.rubypeople.rdt.doc.user/build.xml 2007-02-18 12:15:15 UTC (rev 1966)
+++ trunk/org.rubypeople.rdt.doc.user/build.xml 2007-02-18 16:53:06 UTC (rev 1967)
@@ -12,9 +12,10 @@
<property name="javacSource" value="1.3"/>
<property name="javacTarget" value="1.2"/>
<property name="compilerArg" value=""/>
- <property name="featureVersion" value="0.9.0"/>
- <!-- featureVersion might also be set from outside -->
- <echo message="Using featureVersion=${featureVersion}"/>
+ <property name="version" value="0.9.0"/>
+ <property name="version.full" value="0.9.0.07NGT"/>
+ <!-- version might also be set from outside -->
+ <echo message="Using version=${version}"/>
<target name="init" depends="properties">
<condition property="pluginTemp" value="${buildTempFolder}/plugins">
@@ -40,7 +41,7 @@
<antcall target="gather.bin.parts">
<param name="destination.temp.folder" value="${temp.folder}/"/>
</antcall>
- <zip zipfile="${plugin.destination}/org.rubypeople.rdt.doc.user_${featureVersion}.jar" basedir="${temp.folder}/org.rubypeople.rdt.doc.user_${featureVersion}" filesonly="false" whenempty="skip" update="false"/>
+ <zip zipfile="${plugin.destination}/org.rubypeople.rdt.doc.user_${version.full}.jar" basedir="${temp.folder}/org.rubypeople.rdt.doc.user_${version.full}" filesonly="false" whenempty="skip" update="false"/>
<delete dir="${temp.folder}"/>
</target>
@@ -50,7 +51,7 @@
in a subdirectory but base.dir may not be an absolute path, because then the references in toc.xml would
be absolute, too -->
<java classpath="${basedir}/lib/ant.jar:${basedir}/lib/ant-launcher.jar:${basedir}/lib/ant-trax.jar" classname="org.apache.tools.ant.Main" dir="${basedir}" fork="true" >
- <arg value="-DfeatureVersion=${featureVersion}"/>
+ <arg value="-Dversion=${version}"/>
<arg value="-f"/>
<arg value="buildDocbook.xml"/>
<arg value="html"/>
@@ -61,8 +62,8 @@
</target>
<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
- <mkdir dir="${destination.temp.folder}/org.rubypeople.rdt.doc.user_${featureVersion}"/>
- <copy todir="${destination.temp.folder}/org.rubypeople.rdt.doc.user_${featureVersion}" failonerror="true">
+ <mkdir dir="${destination.temp.folder}/org.rubypeople.rdt.doc.user_${version.full}"/>
+ <copy todir="${destination.temp.folder}/org.rubypeople.rdt.doc.user_${version.full}" failonerror="true">
<fileset dir="${basedir}" includes="plugin.xml,toc.xml,plugin.properties,html/,images/,META-INF/" excludes="build.xml" />
</copy>
</target>
@@ -71,7 +72,7 @@
</target>
<target name="gather.sources" depends="init" if="destination.temp.folder">
- <copy todir="${destination.temp.folder}/org.rubypeople.rdt.doc.user_${featureVersion}" failonerror="false">
+ <copy todir="${destination.temp.folder}/org.rubypeople.rdt.doc.user_${version.full}" failonerror="false">
<fileset dir="${basedir}" includes="docbook.xml,buildDocbook.xml,customizationLayer.xsl"/>
</copy>
</target>
@@ -102,7 +103,7 @@
<delete>
<fileset dir="${temp.folder}" includes="**/*.bin.log" />
</delete>
- <zip zipfile="${plugin.destination}/org.rubypeople.rdt.doc.user_${featureVersion}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
+ <zip zipfile="${plugin.destination}/org.rubypeople.rdt.doc.user_${version.full}.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
<delete dir="${temp.folder}"/>
</target>
Modified: trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml
===================================================================
--- trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml 2007-02-18 12:15:15 UTC (rev 1966)
+++ trunk/org.rubypeople.rdt.doc.user/buildDocbook.xml 2007-02-18 16:53:06 UTC (rev 1967)
@@ -20,7 +20,7 @@
</target>
<target name="init" depends="docbook.unpack">
- <fail unless="featureVersion" message="Property featureVersion must be set. Please always call this script from build.xml"/>
+ <fail unless="version" message="Property version must be set. Please always call this script from build.xml"/>
<available type="dir" file="${docbook.xsl.dir}" property="did.unpack.work" />
<fail unless="did.unpack.work" message="Docbook xsl directory ${} was not created."/>
</target>
@@ -38,7 +38,7 @@
<target name="replaceVarInCustomizationLayer">
<copy file="customizationLayer.xsl" tofile="customizationLayerCopy.xsl"/>
<replace file="customizationLayerCopy.xsl">
- <replacefilter token="@@VERSION@@" value="${featureVersion}"/>
+ <replacefilter token="@@VERSION@@" value="${version}"/>
</replace>
</target>
@@ -60,7 +60,6 @@
<param name="eclipse.plugin.id" expression="org.rubypeople.rdt.doc.user"/>
<param name="eclipse.plugin.name" expression="%Plugin.name"/>
<param name="eclipse.plugin.provider" expression="%providerName"/>
- <param name="eclipse.plugin.version" expression="${featureVersion}"/>
<xmlcatalog id="docbook.catalog">
<dtd publicId="-//OASIS//DTD DocBook V3.1//EN" location="${docbook.dtd.dir}/docbookx.dtd"/>
</xmlcatalog>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 12:15:17
|
Revision: 1966
http://svn.sourceforge.net/rubyeclipse/?rev=1966&view=rev
Author: mbarchfe
Date: 2007-02-18 04:15:15 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
exclude functional test suites (match FTC_)
Modified Paths:
--------------
trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config
Modified: trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config 2007-02-18 11:48:48 UTC (rev 1965)
+++ trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config 2007-02-18 12:15:15 UTC (rev 1966)
@@ -1,5 +1,5 @@
-#Sat Feb 17 16:59:21 CET 2007
-autotestsuite.class.exclusions=.*All(Tests|PDE_Tests|_Tests|PDETests).*
+#Sun Feb 18 13:14:27 CET 2007
+autotestsuite.class.exclusions=.*FTC_.*
test.eclipse.zip=C\:\\downloads\\eclipse-SDK-3.2.1-win32.zip
autotestsuite.trace=true
pluginbuilder.features=org.rubypeople.rdt,org.rubypeople.rdt-tests
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 11:48:50
|
Revision: 1965
http://svn.sourceforge.net/rubyeclipse/?rev=1965&view=rev
Author: mbarchfe
Date: 2007-02-18 03:48:48 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
crap
Removed Paths:
-------------
trunk/org.rubypeople.rdt.pluginbuilder/build-files/${buildResultsDirectory}/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 11:47:08
|
Revision: 1964
http://svn.sourceforge.net/rubyeclipse/?rev=1964&view=rev
Author: mbarchfe
Date: 2007-02-18 03:47:06 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
not needed anymore
Removed Paths:
-------------
trunk/org.rubypeople.rdt.build/cruiseControl/customTargets.xml
trunk/org.rubypeople.rdt.build/cruiseControl/svn_co_rdt
Deleted: trunk/org.rubypeople.rdt.build/cruiseControl/customTargets.xml
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/customTargets.xml 2007-02-18 11:46:13 UTC (rev 1963)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/customTargets.xml 2007-02-18 11:47:06 UTC (rev 1964)
@@ -1,291 +0,0 @@
-<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>
- <echo message="BuildType: ${buildType}"/>
- <property file="${buildDirectory}/version.properties"/>
- <property name="buildLabel" value="${buildType}-${featureVersion}"/>
- <property name="buildId" value="${featureVersion}"/>
- <!-- ===================================================================== -->
- <!-- Run a given ${target} on all elements being built -->
- <!-- Add on <ant> task for each top level element being built. -->
- <!-- ===================================================================== -->
- <target name="allElements">
- <condition property="isFetch" value="true">
- <equals arg1="${target}" arg2="fetchElement"/>
- </condition>
- <antcall target="delegateToGenericTargets"/>
- <antcall target="fetchFromSubversionRepository"/>
- </target>
-
-
- <target name="fetchFromSubversionRepository" if="isFetch">
- <exec executable="${svnScript}">
- <arg line="${buildDirectory}"/>
- <arg line="${fetchTag}"/>
- </exec>
- </target>
-
- <target name="delegateToGenericTargets" unless="isFetch">
- <echo message="Delegating ${target}"/>
- <ant antfile="${genericTargets}" target="${target}" >
- <property name="type" value="feature" />
- <property name="id" value="org.rubypeople.rdt" />
- </ant>
- <ant antfile="${genericTargets}" target="${target}" >
- <property name="type" value="feature" />
- <property name="id" value="org.rubypeople.rdt-tests" />
- </ant>
- </target>
-
- <!-- ===================================================================== -->
- <!-- Targets to assemble the built elements for particular configurations -->
- <!-- These generally call the generated assemble scripts (named in -->
- <!-- ${assembleScriptName}) but may also add pre and post processing -->
- <!-- Add one target for each root element and each configuration -->
- <!-- ===================================================================== -->
- <target name="assemble.org.rubypeople.rdt">
- <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
- <property name="zipargs" value="" />
- </ant>
- </target>
- <target name="assemble.org.rubypeople.rdt-tests">
- <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
- <property name="zipargs" value="" />
- </ant>
- </target>
- <!-- ===================================================================== -->
- <!-- Check out map files from correct repository -->
- <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
- <!-- ===================================================================== -->
- <target name="getMapFiles">
- <!-- Since we use subversion map files are not used anymore. See script
- svn_co_rdt for more information about subversion checkout -->
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do before setup -->
- <!-- ===================================================================== -->
- <target name="preSetup" unless="featureVersion">
- <tstamp>
- <!-- unfortunately one "y" in the pattern pads with 0, so 2005 will be displayed as 05 -->
- <format property="build.tstamp" pattern="5MMddhhmm"/>
- </tstamp>
- <condition property="featureVersion" value="${nightlyBuildFeatureVersionPrefix}${build.tstamp}NGT">
- <equals arg1="${buildType}" arg2="N"/>
- </condition>
- <condition property="featureVersion" value="${nightlyBuildFeatureVersionPrefix}${build.tstamp}INT">
- <equals arg1="${buildType}" arg2="I"/>
- </condition>
- <fail unless="featureVersion" message="Property featureVersion must be set. Either directly or in case of a nightly build with nightlyBuildFeatureVersionPrefix."/>
- <echo message="Using featureVersion: ${featureVersion}."/>
- <echo file="${buildDirectory}/version.properties" message="featureVersion=${featureVersion}"/>
- </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">
-
- <antcall target="replaceVersions"/>
- <antcall target="setUpdateSiteURL"/>
- </target>
-
- <target name="replaceVersions" if="baseFeatureVersion">
- <echo message="Replacing version in the feature files: replacing ${baseFeatureVersion} with ${featureVersion}"/>
- <!-- make sure to select the test feature file as well -->
- <replace dir="${buildDirectory}/features">
- <include name="org.rubypeople.*/feature.xml"/>
- <replacefilter token="${baseFeatureVersion}" value="${featureVersion}" />
- </replace>
- <!-- 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="org.rubypeople.*/plugin.xml"/>
- <replacefilter token="${baseFeatureVersion}" value="${featureVersion}" />
- </replace>
- <replace dir="${buildDirectory}/plugins">
- <include name="org.rubypeople.*/META-INF/MANIFEST.MF"/>
- <replacefilter token="Bundle-Version: ${baseFeatureVersion}" value="Bundle-Version: ${featureVersion}" />
- </replace>
- </target>
-
- <target name="setUpdateSiteURL" if="isNightlyOrIntegrationBuild">
-
- <!-- do not replace the update site URL if it is a release build -->
- <condition property="updateSiteUrl"
- value="${nightlyBuildUpdateSiteURL}"
- else="${integrationBuildUpdateSiteURL}">
- <isset property="isNightlyBuild"/>
- </condition>
- <echo message="Setting update-site URL: ${updateSiteUrl}"/>
- <replace dir="${buildDirectory}/features">
- <include name="org.rubypeople.*/feature.xml"/>
- <replacefilter token="${releaseUpdateSiteURL}" value="${updateSiteUrl}" />
- </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 after the build is done. -->
- <!-- ===================================================================== -->
- <target name="postBuild">
- <property name="UpdateSiteStagingLocation" value="${buildDirectory}/updateSite"/>
- <property name="sitePackagePrefix" value="org.rubypeople.updatesite"/>
- <antcall target="generateUpdateSite"/>
- <antcall target="test"/>
- <antcall target="package"/>
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to test the build results -->
- <!-- ===================================================================== -->
- <target name="test" unless="dontRunTests">
- <echo message="Setting up tests in ${eclipseAutomatedTestHome}"/>
- <delete>
- <fileset dir="${eclipseAutomatedTestHome}" includes="**/*RDT*.zip"/>
- </delete>
- <copy file="${buildDirectory}/${buildLabel}/org.rubypeople.rdt-${buildId}.zip" tofile="${eclipseAutomatedTestHome}/eclipse-SDK-RDT-${buildId}.zip" />
- <copy file="${buildDirectory}/${buildLabel}/org.rubypeople.rdt-tests-${buildId}.zip" tofile="${eclipseAutomatedTestHome}/eclipse-junit-tests-RDT-${buildId}.zip" />
- <ant antfile="${eclipseAutomatedTestHome}/test.xml" target="runtests" dir="${eclipseAutomatedTestHome}">
- <property name="os" value="${baseos}" />
- <property name="ws" value="${basews}" />
- <property name="arch" value="${basearch}" />
- <property name="testPlugin" value="org.rubypeople.rdt.tests.all_${featureVersion}" />
- <property name="report" value="org.rubypeople.rdt.tests.all" />
- </ant>
- </target>
- <!--======================================================-->
- <!-- UpdateSite Export target -->
- <!-- ==================================================== -->
- <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"/>
- <!-- Build the jar files -->
- <antcall target="allElements">
- <param name="genericTargets" value="${builder}/customTargets.xml"/>
- <param name="target" value="updateSiteExport"/>
- </antcall>
- <!-- site.xml files for integration and release builds are handled in build-RDT.xml -->
- <antcall target="createNightlyBuildSiteXml"/>
- <delete dir="${buildDirectory}/temp.updatesite"/>
- </target>
-
- <target name="createNightlyBuildSiteXml" if="isNightlyBuild">
- <echo file="${UpdateSiteStagingLocation}/site.xml"><?xml version="1.0" encoding="UTF-8"?>
- <site>
- <description> The Ruby Development Tools nightly builds. </description>
- <feature url="features/org.rubypeople.rdt_${featureVersion}.jar" id="org.rubypeople.rdt" version="${featureVersion}"> <category
- name="RubyEclipseNightlyBuilds"/> </feature>
- <category-def name="RubyEclipseNightlyBuilds" label="RDT Nightly Builds"> </category-def> </site>
- </echo>
- </target>
-
- <target name="package">
- <echo message="Creating and filling ${buildResultsDirectory}" />
- <mkdir dir="${buildResultsDirectory}"/>
- <mkdir dir="${buildResultsDirectory}/logs"/>
-
- <copy todir="${buildResultsDirectory}/logs" flatten="true">
- <fileset dir="${buildDirectory}">
- <include name="**/*.log"/>
- </fileset>
- </copy>
- <copy todir="${buildResultsDirectory}" flatten="true">
- <fileset dir="${buildDirectory}">
- <include name="**/org.rubypeople.rdt-*.zip"/>
- <include name="**/Changelog.txt"/>
- <!-- exclude the org.rubypeople.rdt-tests-*.zip file -->
- <exclude name="**/*-tests-*"/>
- </fileset>
- </copy>
-
- <!-- rename the results file, so that every build result file has a unique name and
- browsers don't fool users with cached versions -->
- <copy file="${eclipseAutomatedTestHome}/results/html/org.rubypeople.rdt.tests.all_.html"
- tofile="${buildResultsDirectory}/org.rubypeople.rdt.tests.all_${featureVersion}.html"
- failonerror="false"/>
-
- <copy file="${buildDirectory}/workspace-rdt-tests/.metadata/.log"
- tofile="${buildResultsDirectory}/logs/testsWorkspace.log"
- failonerror="false"/>
-
- <mkdir dir="${buildResultsDirectory}/updateSite"/>
- <copy todir="${buildResultsDirectory}/updateSite">
- <fileset dir="${buildDirectory}/updateSite"/>
- </copy>
-
- <mkdir dir="${buildResultsDirectory}/doc"/>
- <copy todir="${buildResultsDirectory}/doc">
- <fileset dir="${buildDirectory}/plugins/org.rubypeople.rdt.doc.user">
- <include name="html/**/*"/>
- <include name="images/**/*"/>
- </fileset>
- </copy>
-
- </target>
- <!-- ===================================================================== -->
- <!-- Steps to do to publish the build results -->
- <!-- ===================================================================== -->
- <target name="publish">
- </target>
- <!-- ===================================================================== -->
- <!-- Default target -->
- <!-- ===================================================================== -->
- <target name="noDefault">
- <echo message="You must specify a target when invoking this file" />
- </target>
-</project>
Deleted: trunk/org.rubypeople.rdt.build/cruiseControl/svn_co_rdt
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/svn_co_rdt 2007-02-18 11:46:13 UTC (rev 1963)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/svn_co_rdt 2007-02-18 11:47:06 UTC (rev 1964)
@@ -1,32 +0,0 @@
-#!/bin/sh
-# arg1: builddirectory
-# arg2: label
-if [ "$2" == "" ]; then
- echo "There are two arguments required: buildDirectory and Tag"
- exit 1
-fi
-label=$2
-if [ "$2" == "HEAD" ]; then
- labelurl=trunk
-else
- labelurl=tags/$2
-fi
-url=https://svn.sourceforge.net/svnroot/rubyeclipse/${labelurl}
-echo "Using svn repository url: ${url}, target dir: $1"
-#
-# Fetch the features
-#
-featuresDir=$1/features
-# the features use mappings from project name to feature name which has been achieved with the rdt.map for CVS
-svn co ${url}/org.rubypeople.rdt-feature $feature $featuresDir/org.rubypeople.rdt
-svn co ${url}/org.rubypeople.rdt-feature/unit-tests-feature $feature $featuresDir/org.rubypeople.rdt-tests
-
-#
-# Fetch the plugins
-#
-pluginsDir=$1/plugins
-plugins="org.epic.regexp org.rubypeople.rdt org.rubypeople.rdt.debug.core.tests org.rubypeople.rdt.launching org.rubypeople.rdt.ui org.kxml2 org.rubypeople.rdt.core org.rubypeople.rdt.debug.ui org.rubypeople.rdt.launching.tests org.rubypeople.rdt.ui.tests org.rubypeople.eclipse.shams org.rubypeople.rdt.core.tests org.rubypeople.rdt.debug.ui.tests org.rubypeople.rdt.tests.all org.rubypeople.eclipse.testutils org.rubypeople.rdt.debug.core org.rubypeople.rdt.doc.user org.rubypeople.rdt.testunit org.jruby org.rubypeople.rdt.refactoring org.rubypeople.rdt.refactoring.tests"
-
-for plugin in $plugins; do
- svn co ${url}/$plugin $pluginsDir/$plugin
-done
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 11:46:15
|
Revision: 1963
http://svn.sourceforge.net/rubyeclipse/?rev=1963&view=rev
Author: mbarchfe
Date: 2007-02-18 03:46:13 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
not needed anymore
Removed Paths:
-------------
trunk/org.rubypeople.rdt.build/bootstrap/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 11:45:23
|
Revision: 1962
http://svn.sourceforge.net/rubyeclipse/?rev=1962&view=rev
Author: mbarchfe
Date: 2007-02-18 03:45:20 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
added config.xml itself to bootstrapper, so that a check-in will automatically update the config.xml file on the build server
Modified Paths:
--------------
trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
Modified: trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-18 11:42:08 UTC (rev 1961)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-18 11:45:20 UTC (rev 1962)
@@ -5,6 +5,7 @@
<property name="buildDirectory" value="/home/rdt/build-cc"/>
<bootstrappers>
<svnbootstrapper localworkingcopy="../pluginbuilder"/>
+ <svnbootstrapper localworkingcopy="."/>
</bootstrappers>
<!-- Defines where cruise looks for changes, to decide whether to run the build -->
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 11:42:16
|
Revision: 1961
http://svn.sourceforge.net/rubyeclipse/?rev=1961&view=rev
Author: mbarchfe
Date: 2007-02-18 03:42:08 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
updated artifactspublisher
Modified Paths:
--------------
trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
Modified: trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-18 11:39:10 UTC (rev 1960)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-18 11:42:08 UTC (rev 1961)
@@ -37,9 +37,9 @@
<!-- Publishers are run *after* a build completes -->
<publishers>
<onsuccess>
- <artifactspublisher
- dir="checkout/RDT/dist"
- dest="artifacts/RDT"/>
+ <artifactspublisher
+ dir="${buildDirectory}/results"
+ dest="artifacts/RDT"/>
<execute command="/home/rdt/cruiseControlWorkspace/purgeNightlyBuildWebSite.sh"/>
<scp
sourcedir="${buildDirectory}/results"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 11:39:17
|
Revision: 1960
http://svn.sourceforge.net/rubyeclipse/?rev=1960&view=rev
Author: mbarchfe
Date: 2007-02-18 03:39:10 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
refer build results in new place
Modified Paths:
--------------
trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
Modified: trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-18 11:38:09 UTC (rev 1959)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-18 11:39:10 UTC (rev 1960)
@@ -2,7 +2,7 @@
<project name="RDT" buildafterfailed="false">
<plugin name="labelincrementer" classname="org.rubypeople.rdt.cruisecontrol.plugin.EclipsePluginLabelProvider"/>
<labelincrementer prefix="0.8.0"/>
-
+ <property name="buildDirectory" value="/home/rdt/build-cc"/>
<bootstrappers>
<svnbootstrapper localworkingcopy="../pluginbuilder"/>
</bootstrappers>
@@ -17,15 +17,16 @@
<ant antscript="/home/rdt/cruisecontrol-bin-2.5/apache-ant-1.6.5/bin/ant"
antWorkingDir="../pluginbuilder"
buildfile="build.xml"
- target="dist-cc"
+ target="main-cc"
uselogger="true"
- usedebug="false">
- <property name="version.prefix" value="0.8.0"/>
+ usedebug="false">
+ <property name="version" value="0.8.0"/>
+ <property name="buildDirectory" value="${buildDirectory}"/>
</ant>
</schedule>
<log dir="logs/RDT">
- <merge dir="/home/rdt/ccbuild/results/testresults/xml"/>
+ <merge dir="${buildDirectory}/results/testresults/xml"/>
</log>
<!-- more recent versions of CC should use the listener below, instead of the currentbuildstatusbootstrapper, currentbuildstatuspublisher combination. NOTE: Must match filename in CC reporting/jsp - override.properties: user.build.status.file -->
@@ -41,30 +42,29 @@
dest="artifacts/RDT"/>
<execute command="/home/rdt/cruiseControlWorkspace/purgeNightlyBuildWebSite.sh"/>
<scp
- sourcedir="checkout/RDT/dist"
+ sourcedir="${buildDirectory}/results"
file="."
options="-r"
targetuser="rubypeople"
targethost="download.rubypeople.org"
targetdir="~/subdomains/download/httpdocs/nightly"/>
<scp
- sourcedir="checkout/RDT/dist/updateSite"
+ sourcedir="${buildDirectory}/results/updateSite"
file="."
options="-r"
targetuser="rubypeople"
targethost="download.rubypeople.org"
targetdir="~/subdomains/updatesite/httpdocs/nightly"/>
</onsuccess>
- <!--
+
<email
mailhost="mail.sf.net"
returnaddress="mba...@us..."
- buildresultsurl="http://213.239.199.113:8080/cruisecontrol/buildresults/RDT"
- skipusers="false"
+ buildresultsurl="http://rdtcc.pluginbuilder.org/cruisecontrol/buildresults/RDT"
+ skipusers="true"
spamwhilebroken="false">
<always address="rub...@li..."/>
</email>
- -->
</publishers>
</project>
</cruisecontrol>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 11:38:12
|
Revision: 1959
http://svn.sourceforge.net/rubyeclipse/?rev=1959&view=rev
Author: mbarchfe
Date: 2007-02-18 03:38:09 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
Added Paths:
-----------
trunk/org.rubypeople.rdt.pluginbuilder/build-files/${buildResultsDirectory}/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-18 11:37:56
|
Revision: 1958
http://svn.sourceforge.net/rubyeclipse/?rev=1958&view=rev
Author: mbarchfe
Date: 2007-02-18 03:37:55 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
tidying up, added rdt specfic postBuild
Modified Paths:
--------------
trunk/org.rubypeople.rdt.pluginbuilder/build-files/customTargets.xml
trunk/org.rubypeople.rdt.pluginbuilder/build.xml
Added Paths:
-----------
trunk/org.rubypeople.rdt.pluginbuilder/build-files/postBuild.xml
Removed Paths:
-------------
trunk/org.rubypeople.rdt.pluginbuilder/build-cc.xml
Deleted: trunk/org.rubypeople.rdt.pluginbuilder/build-cc.xml
===================================================================
Modified: trunk/org.rubypeople.rdt.pluginbuilder/build-files/customTargets.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/customTargets.xml 2007-02-17 22:03:25 UTC (rev 1957)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/customTargets.xml 2007-02-18 11:37:55 UTC (rev 1958)
@@ -141,22 +141,24 @@
<target name="postBuild" depends="-prepareBuildResultsDirectory">
<antcall target="runTests"/>
<antcall target="package"/>
+ <condition property="is.External.Postbuild">
+ <available file="${buildHome}/build-files/postBuild.xml"/>
+ </condition>
+ <antcall target="callExternalPostBuild"/>
</target>
<!-- ===================================================================== -->
<!-- Run tests. -->
<!-- ===================================================================== -->
<property name="buildResultsDirectory" value="${buildDirectory}/results" />
<target name="runTests" if="isRunTests">
- <property name="automatedTestsHome" location="${buildHome}/build-files/automatedTests"/>
+ <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"/>
- <!-- important inherited properties: testResultDir and cobertura.result.dir -->
</ant>
-
- </target>
+ </target>
<!--======================================================-->
- <!-- Preparing build results -->
+ <!-- Gather build results -->
<!-- ==================================================== -->
<target name="-prepareBuildResultsDirectory">
<echo message="Creating ${buildResultsDirectory}" />
@@ -164,13 +166,18 @@
</target>
<target name="package">
<copy todir="${buildResultsDirectory}" flatten="true">
- <fileset dir="${buildDirectory}/${buildLabel}">
- <include name="*.zip" />
- </fileset>
+ <fileset dir="${buildDirectory}" includes="${buildType}-**/*.zip" />
</copy>
</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>
+</project>
\ No newline at end of file
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/postBuild.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/postBuild.xml (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/postBuild.xml 2007-02-18 11:37:55 UTC (rev 1958)
@@ -0,0 +1,76 @@
+<project name="Run as part of postBuild" default="main">
+
+ <target name="main">
+ <property name="UpdateSiteStagingLocation" value="${buildResultsDirectory}/updateSite"/>
+ <antcall target="-generateUpdateSite"/>
+ <antcall target="-gatherFiles"/>
+ </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"/>
+ <!-- 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" if="isNightlyBuild">
+ <echo file="${UpdateSiteStagingLocation}/site.xml"><?xml
+ version="1.0" encoding="UTF-8"?>
+ <site> <description> The Ruby Development Tools nightly
+ builds. </description> <feature
+ url="features/org.rubypeople.rdt_${version.full}.jar"
+ id="org.rubypeople.rdt"
+ version="${version.full}"> <category
+ name="RubyEclipseNightlyBuilds"/> </feature>
+ <category-def name="RubyEclipseNightlyBuilds"
+ label="RDT Nightly Builds"> </category-def>
+ </site> </echo>
+ </target>
+
+ <target name="-gatherFiles">
+ <mkdir dir="${buildResultsDirectory}/logs"/>
+
+ <copy todir="${buildResultsDirectory}/logs" flatten="true">
+ <fileset dir="${buildDirectory}">
+ <include name="**/*.log"/>
+ </fileset>
+ </copy>
+ <copy todir="${buildResultsDirectory}" flatten="true">
+ <fileset dir="${buildDirectory}">
+ <include name="**/Changelog.txt"/>
+ </fileset>
+ </copy>
+
+ <!--<copy file="${buildDirectory}/workspace-rdt-tests/.metadata/.log"
+ tofile="${buildResultsDirectory}/logs/testsWorkspace.log" failonerror="false"/>
+ -->
+
+ <!--
+ <mkdir dir="${buildResultsDirectory}/doc"/>
+ <copy todir="${buildResultsDirectory}/doc">
+ <fileset dir="${buildDirectory}/plugins/org.rubypeople.rdt.doc.user">
+ <include name="html/**/*"/>
+ <include name="images/**/*"/>
+ </fileset>
+ </copy>
+ -->
+ </target>
+</project>
Modified: trunk/org.rubypeople.rdt.pluginbuilder/build.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build.xml 2007-02-17 22:03:25 UTC (rev 1957)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build.xml 2007-02-18 11:37:55 UTC (rev 1958)
@@ -28,19 +28,21 @@
<fileset dir="${eclipseDir}/plugins" includes="org.eclipse.pde.build_*/scripts/build.xml" id="pde.plugin.path" />
<pathconvert property="buildfile" refid="pde.plugin.path" />
<fail message="Could not find org.eclipse.pde.build_*/scripts/build.xml in ${eclipseDir}/plugins. PDE not installed?" unless="buildfile"/>
- <condition property="is.buildTarget.main.or.fetch">
+
+ <!-- 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>
-
- <!-- set defaults -->
- <property name="buildTarget" value="main"/>
- <property name="verboseAnt" value="-Ddummy=true"/>
</target>
- <target name="-clean" if="is.buildTarget.main.or.fetch">
+ <target name="-clean" if="is.clean">
<echo level="info" message="Cleaning directory ${buildDirectory}"/>
<delete dir="${buildDirectory}" verbose="false"/>
<mkdir dir="${buildDirectory}"/>
@@ -82,10 +84,10 @@
</java>
</target>
- <target name="dist-cc"
+ <target name="main-cc"
description="This target is suited to be run from cruisecontrol. The property 'label' is expected to be set from cruisecontrol.">
<property name="version.full" value="${label}"/>
- <!-- TODO: extract qualifier from label -->
+ <!-- TODO: extract qualifier correctly from label -->
<property name="version.qualifier" value="${label}"/>
<antcall target="-build"/>
</target>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-17 22:03:28
|
Revision: 1957
http://svn.sourceforge.net/rubyeclipse/?rev=1957&view=rev
Author: mbarchfe
Date: 2007-02-17 14:03:25 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
merge test log files
Modified Paths:
--------------
trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
Modified: trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-17 20:30:27 UTC (rev 1956)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-17 22:03:25 UTC (rev 1957)
@@ -25,7 +25,7 @@
</schedule>
<log dir="logs/RDT">
- <merge dir="/home/rdt/eclipse-testing/results/xml"/>
+ <merge dir="/home/rdt/ccbuild/results/testresults/xml"/>
</log>
<!-- more recent versions of CC should use the listener below, instead of the currentbuildstatusbootstrapper, currentbuildstatuspublisher combination. NOTE: Must match filename in CC reporting/jsp - override.properties: user.build.status.file -->
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-17 20:30:31
|
Revision: 1956
http://svn.sourceforge.net/rubyeclipse/?rev=1956&view=rev
Author: mbarchfe
Date: 2007-02-17 12:30:27 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
now run pluginbuilder build.xml
Modified Paths:
--------------
trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
Modified: trunk/org.rubypeople.rdt.build/cruiseControl/config.xml
===================================================================
--- trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-17 20:24:20 UTC (rev 1955)
+++ trunk/org.rubypeople.rdt.build/cruiseControl/config.xml 2007-02-17 20:30:27 UTC (rev 1956)
@@ -2,6 +2,10 @@
<project name="RDT" buildafterfailed="false">
<plugin name="labelincrementer" classname="org.rubypeople.rdt.cruisecontrol.plugin.EclipsePluginLabelProvider"/>
<labelincrementer prefix="0.8.0"/>
+
+ <bootstrappers>
+ <svnbootstrapper localworkingcopy="../pluginbuilder"/>
+ </bootstrappers>
<!-- Defines where cruise looks for changes, to decide whether to run the build -->
<modificationset quietperiod="180">
@@ -11,10 +15,13 @@
<!-- Configures the actual build loop, how often and which build file/target -->
<schedule interval="60">
<ant antscript="/home/rdt/cruisecontrol-bin-2.5/apache-ant-1.6.5/bin/ant"
- buildfile="build-RDT.xml"
- target="dist"
+ antWorkingDir="../pluginbuilder"
+ buildfile="build.xml"
+ target="dist-cc"
uselogger="true"
- usedebug="false"/>
+ usedebug="false">
+ <property name="version.prefix" value="0.8.0"/>
+ </ant>
</schedule>
<log dir="logs/RDT">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-17 20:24:21
|
Revision: 1955
http://svn.sourceforge.net/rubyeclipse/?rev=1955&view=rev
Author: mbarchfe
Date: 2007-02-17 12:24:20 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
pluginbuilder v 0.2.0 configuration
Added Paths:
-----------
trunk/org.rubypeople.rdt.pluginbuilder/.project
trunk/org.rubypeople.rdt.pluginbuilder/build-cc.xml
trunk/org.rubypeople.rdt.pluginbuilder/build-files/
trunk/org.rubypeople.rdt.pluginbuilder/build-files/allElements.xml
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/JUNIT.XSL
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/ant-contrib-LICENSE.txt
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/ant-contrib.jar
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/eclipse-test-framework-3.2.zip
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/org.pluginbuilder.autotestsuite.feature-0.1.0.200702131649PRD.zip
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.properties
trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.xml
trunk/org.rubypeople.rdt.pluginbuilder/build-files/build.properties
trunk/org.rubypeople.rdt.pluginbuilder/build-files/customTargets.xml
trunk/org.rubypeople.rdt.pluginbuilder/build-files/fetchSvnAll.xml
trunk/org.rubypeople.rdt.pluginbuilder/build-files/subversionSupport.xml
trunk/org.rubypeople.rdt.pluginbuilder/build-files/svn/
trunk/org.rubypeople.rdt.pluginbuilder/build-files/svn/SVNCLIENTADAPTER-LICENSE
trunk/org.rubypeople.rdt.pluginbuilder/build-files/svn/svnClientAdapter.jar
trunk/org.rubypeople.rdt.pluginbuilder/build-files/svn/svnant.jar
trunk/org.rubypeople.rdt.pluginbuilder/build.xml
trunk/org.rubypeople.rdt.pluginbuilder/build_local.properties
trunk/org.rubypeople.rdt.pluginbuilder/pluginbuilder.config
trunk/org.rubypeople.rdt.pluginbuilder/releases/
trunk/org.rubypeople.rdt.pluginbuilder/releases/HEAD.properties
Added: trunk/org.rubypeople.rdt.pluginbuilder/.project
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/.project (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/.project 2007-02-17 20:24:20 UTC (rev 1955)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.rubypeople.rdt.pluginbuilder</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ <nature>org.pluginbuilder.core.pluginBuilderNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-cc.xml
===================================================================
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/allElements.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/allElements.xml (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/allElements.xml 2007-02-17 20:24:20 UTC (rev 1955)
@@ -0,0 +1,23 @@
+<project name="allElements delegation and assemble customTargets.xml">
+<!-- FILE WILL BE OVERWRITTEN WHEN GENERATED -->
+ <target name="allElementsExceptSvnFetch" unless="is.svn.fetch">
+ <ant antfile="${genericTargets}" target="${target}">
+ <property name="type" value="feature" />
+ <property name="id" value="org.rubypeople.rdt" />
+ </ant> <ant antfile="${genericTargets}" target="${target}">
+ <property name="type" value="feature" />
+ <property name="id" value="org.rubypeople.rdt-tests" />
+ </ant>
+ </target>
+
+ <target name="assemble.org.rubypeople.rdt">
+ <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
+ <property name="zipargs" value="" />
+ </ant>
+ </target> <target name="assemble.org.rubypeople.rdt-tests">
+ <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
+ <property name="zipargs" value="" />
+ </ant>
+ </target>
+
+</project>
\ No newline at end of file
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/JUNIT.XSL
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/JUNIT.XSL (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/JUNIT.XSL 2007-02-17 20:24:20 UTC (rev 1955)
@@ -0,0 +1,455 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<xsl:output method="html" indent="yes"/>
+<xsl:decimal-format decimal-separator="." grouping-separator="," />
+
+<xsl:template match="testsuites">
+ <HTML>
+ <HEAD>
+ <style type="text/css">
+ body {
+ font:normal 68% verdana,arial,helvetica;
+ color:#000000;
+ }
+ table tr td, table tr th {
+ font-size: 68%;
+ }
+ table.details tr th{
+ font-weight: bold;
+ text-align:left;
+ background:#a6caf0;
+ }
+ table.details tr td{
+ background:#eeeee0;
+ }
+
+ p {
+ line-height:1.5em;
+ margin-top:0.5em; margin-bottom:1.0em;
+ }
+ h1 {
+ margin: 0px 0px 5px; font: 165% verdana,arial,helvetica
+ }
+ h2 {
+ margin-top: 1em; margin-bottom: 0.5em; font: bold 125% verdana,arial,helvetica
+ }
+ h3 {
+ margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica
+ }
+ h4 {
+ margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+ }
+ h5 {
+ margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+ }
+ h6 {
+ margin-bottom: 0.5em; font: bold 100% verdana,arial,helvetica
+ }
+ .Error {
+ font-weight:bold; color:red;
+ }
+ .Failure {
+ font-weight:bold; color:purple;
+ }
+ .Properties {
+ text-align:right;
+ }
+ </style>
+ <script language="JavaScript">
+ var TestCases = new Array();
+ var cur;
+ <xsl:for-each select="./testsuite">
+ <xsl:apply-templates select="properties"/>
+ </xsl:for-each>
+
+ </script>
+ <script language="JavaScript"><![CDATA[
+ function displayProperties (name) {
+ var win = window.open('','JUnitSystemProperties','scrollbars=1,resizable=1');
+ var doc = win.document.open();
+ doc.write("<html><head><title>Properties of " + name + "</title>");
+ doc.write("<style>")
+ doc.write("body {font:normal 68% verdana,arial,helvetica; color:#000000; }");
+ doc.write("table tr td, table tr th { font-size: 68%; }");
+ doc.write("table.properties { border-collapse:collapse; border-left:solid 1 #cccccc; border-top:solid 1 #cccccc; padding:5px; }");
+ doc.write("table.properties th { text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#eeeeee; }");
+ doc.write("table.properties td { font:normal; text-align:left; border-right:solid 1 #cccccc; border-bottom:solid 1 #cccccc; background-color:#fffffff; }");
+ doc.write("h3 { margin-bottom: 0.5em; font: bold 115% verdana,arial,helvetica }");
+ doc.write("</style>");
+ doc.write("</head><body>");
+ doc.write("<h3>Properties of " + name + "</h3>");
+ doc.write("<div align=\"right\"><a href=\"javascript:window.close();\">Close</a></div>");
+ doc.write("<table class='properties'>");
+ doc.write("<tr><th>Name</th><th>Value</th></tr>");
+ for (prop in TestCases[name]) {
+ doc.write("<tr><th>" + prop + "</th><td>" + TestCases[name][prop] + "</td></tr>");
+ }
+ doc.write("</table>");
+ doc.write("</body></html>");
+ doc.close();
+ win.focus();
+ }
+ ]]>
+ </script>
+ </HEAD>
+ <body>
+ <a name="top"></a>
+ <xsl:call-template name="pageHeader"/>
+
+ <!-- Summary part -->
+ <xsl:call-template name="summary"/>
+ <hr size="1" width="95%" align="left"/>
+
+ <!-- Package List part -->
+ <xsl:call-template name="packagelist"/>
+ <hr size="1" width="95%" align="left"/>
+
+ <!-- For each package create its part -->
+ <xsl:call-template name="packages"/>
+ <hr size="1" width="95%" align="left"/>
+
+ <!-- For each class create the part -->
+ <xsl:call-template name="classes"/>
+
+ </body>
+ </HTML>
+</xsl:template>
+
+
+
+ <!-- ================================================================== -->
+ <!-- Write a list of all packages with an hyperlink to the anchor of -->
+ <!-- of the package name. -->
+ <!-- ================================================================== -->
+ <xsl:template name="packagelist">
+ <h2>Packages</h2>
+ Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.
+ <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
+ <xsl:call-template name="testsuite.test.header"/>
+ <!-- list all packages recursively -->
+ <xsl:for-each select="./testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
+ <xsl:sort select="@package"/>
+ <xsl:variable name="testsuites-in-package" select="/testsuites/testsuite[./@package = current()/@package]"/>
+ <xsl:variable name="testCount" select="sum($testsuites-in-package/@tests)"/>
+ <xsl:variable name="errorCount" select="sum($testsuites-in-package/@errors)"/>
+ <xsl:variable name="failureCount" select="sum($testsuites-in-package/@failures)"/>
+ <xsl:variable name="timeCount" select="sum($testsuites-in-package/@time)"/>
+
+ <!-- write a summary for the package -->
+ <tr valign="top">
+ <!-- set a nice color depending if there is an error/failure -->
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="$failureCount > 0">Failure</xsl:when>
+ <xsl:when test="$errorCount > 0">Error</xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+ <td><a href="#{@package}"><xsl:value-of select="@package"/></a></td>
+ <td><xsl:value-of select="$testCount"/></td>
+ <td><xsl:value-of select="$errorCount"/></td>
+ <td><xsl:value-of select="$failureCount"/></td>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="$timeCount"/>
+ </xsl:call-template>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
+
+
+ <!-- ================================================================== -->
+ <!-- Write a package level report -->
+ <!-- It creates a table with values from the document: -->
+ <!-- Name | Tests | Errors | Failures | Time -->
+ <!-- ================================================================== -->
+ <xsl:template name="packages">
+ <!-- create an anchor to this package name -->
+ <xsl:for-each select="/testsuites/testsuite[not(./@package = preceding-sibling::testsuite/@package)]">
+ <xsl:sort select="@package"/>
+ <a name="{@package}"></a>
+ <h3>Package <xsl:value-of select="@package"/></h3>
+
+ <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
+ <xsl:call-template name="testsuite.test.header"/>
+
+ <!-- match the testsuites of this package -->
+ <xsl:apply-templates select="/testsuites/testsuite[./@package = current()/@package]" mode="print.test"/>
+ </table>
+ <a href="#top">Back to top</a>
+ <p/>
+ <p/>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="classes">
+ <xsl:for-each select="testsuite">
+ <xsl:sort select="@name"/>
+ <!-- create an anchor to this class name -->
+ <a name="{@name}"></a>
+ <h3>TestCase <xsl:value-of select="@name"/></h3>
+
+ <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
+ <xsl:call-template name="testcase.test.header"/>
+ <!--
+ test can even not be started at all (failure to load the class)
+ so report the error directly
+ -->
+ <xsl:if test="./error">
+ <tr class="Error">
+ <td colspan="4"><xsl:apply-templates select="./error"/></td>
+ </tr>
+ </xsl:if>
+ <xsl:apply-templates select="./testcase" mode="print.test"/>
+ </table>
+ <div class="Properties">
+ <a>
+ <xsl:attribute name="href">javascript:displayProperties('<xsl:value-of select="@package"/>.<xsl:value-of select="@name"/>');</xsl:attribute>
+ Properties >>
+ </a>
+ </div>
+ <p/>
+
+ <a href="#top">Back to top</a>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="summary">
+ <h2>Summary</h2>
+ <xsl:variable name="testCount" select="sum(testsuite/@tests)"/>
+ <xsl:variable name="errorCount" select="sum(testsuite/@errors)"/>
+ <xsl:variable name="failureCount" select="sum(testsuite/@failures)"/>
+ <xsl:variable name="timeCount" select="sum(testsuite/@time)"/>
+ <xsl:variable name="successRate" select="($testCount - $failureCount - $errorCount) div $testCount"/>
+ <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
+ <tr valign="top">
+ <th>Tests</th>
+ <th>Failures</th>
+ <th>Errors</th>
+ <th>Success rate</th>
+ <th>Time</th>
+ </tr>
+ <tr valign="top">
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="$failureCount > 0">Failure</xsl:when>
+ <xsl:when test="$errorCount > 0">Error</xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+ <td><xsl:value-of select="$testCount"/></td>
+ <td><xsl:value-of select="$failureCount"/></td>
+ <td><xsl:value-of select="$errorCount"/></td>
+ <td>
+ <xsl:call-template name="display-percent">
+ <xsl:with-param name="value" select="$successRate"/>
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="$timeCount"/>
+ </xsl:call-template>
+ </td>
+
+ </tr>
+ </table>
+ <table border="0" width="95%">
+ <tr>
+ <td style="text-align: justify;">
+ Note: <i>failures</i> are anticipated and checked for with assertions while <i>errors</i> are unanticipated.
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
+
+ <!--
+ Write properties into a JavaScript data structure.
+ This is based on the original idea by Erik Hatcher (er...@ha...)
+ -->
+ <xsl:template match="properties">
+ cur = TestCases['<xsl:value-of select="../@package"/>.<xsl:value-of select="../@name"/>'] = new Array();
+ <xsl:for-each select="property">
+ <xsl:sort select="@name"/>
+ cur['<xsl:value-of select="@name"/>'] = '<xsl:call-template name="JS-escape"><xsl:with-param name="string" select="@value"/></xsl:call-template>';
+ </xsl:for-each>
+ </xsl:template>
+
+<!-- Page HEADER -->
+<xsl:template name="pageHeader">
+ <h1>Unit Test Results</h1>
+ <table width="100%">
+ <tr>
+ <td align="left"></td>
+ <td align="right">Designed for use with <a href='http://www.junit.org'>JUnit</a> and <a href='http://ant.apache.org'>Ant</a>.</td>
+ </tr>
+ </table>
+ <hr size="1"/>
+</xsl:template>
+
+<xsl:template match="testsuite" mode="header">
+ <tr valign="top">
+ <th width="80%">Name</th>
+ <th>Tests</th>
+ <th>Errors</th>
+ <th>Failures</th>
+ <th nowrap="nowrap">Time(s)</th>
+ </tr>
+</xsl:template>
+
+<!-- class header -->
+<xsl:template name="testsuite.test.header">
+ <tr valign="top">
+ <th width="80%">Name</th>
+ <th>Tests</th>
+ <th>Errors</th>
+ <th>Failures</th>
+ <th nowrap="nowrap">Time(s)</th>
+ </tr>
+</xsl:template>
+
+<!-- method header -->
+<xsl:template name="testcase.test.header">
+ <tr valign="top">
+ <th>Name</th>
+ <th>Status</th>
+ <th width="80%">Type</th>
+ <th nowrap="nowrap">Time(s)</th>
+ </tr>
+</xsl:template>
+
+
+<!-- class information -->
+<xsl:template match="testsuite" mode="print.test">
+ <tr valign="top">
+ <!-- set a nice color depending if there is an error/failure -->
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="@failures[.> 0]">Failure</xsl:when>
+ <xsl:when test="@errors[.> 0]">Error</xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+
+ <!-- print testsuite information -->
+ <td><a href="#{@name}"><xsl:value-of select="@name"/></a></td>
+ <td><xsl:value-of select="@tests"/></td>
+ <td><xsl:value-of select="@errors"/></td>
+ <td><xsl:value-of select="@failures"/></td>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="@time"/>
+ </xsl:call-template>
+ </td>
+ </tr>
+</xsl:template>
+
+<xsl:template match="testcase" mode="print.test">
+ <tr valign="top">
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="failure | error">Error</xsl:when>
+ </xsl:choose>
+ </xsl:attribute>
+ <td><xsl:value-of select="@name"/></td>
+ <xsl:choose>
+ <xsl:when test="failure">
+ <td>Failure</td>
+ <td><xsl:apply-templates select="failure"/></td>
+ </xsl:when>
+ <xsl:when test="error">
+ <td>Error</td>
+ <td><xsl:apply-templates select="error"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td>Success</td>
+ <td></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ <td>
+ <xsl:call-template name="display-time">
+ <xsl:with-param name="value" select="@time"/>
+ </xsl:call-template>
+ </td>
+ </tr>
+</xsl:template>
+
+
+<xsl:template match="failure">
+ <xsl:call-template name="display-failures"/>
+</xsl:template>
+
+<xsl:template match="error">
+ <xsl:call-template name="display-failures"/>
+</xsl:template>
+
+<!-- Style for the error and failure in the tescase template -->
+<xsl:template name="display-failures">
+ <xsl:choose>
+ <xsl:when test="not(@message)">N/A</xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@message"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <!-- display the stacktrace -->
+ <code>
+ <p/>
+ <xsl:call-template name="br-replace">
+ <xsl:with-param name="word" select="."/>
+ </xsl:call-template>
+ </code>
+ <!-- the later is better but might be problematic for non-21" monitors... -->
+ <!--pre><xsl:value-of select="."/></pre-->
+</xsl:template>
+
+<xsl:template name="JS-escape">
+ <xsl:param name="string"/>
+ <xsl:choose><!-- something isn't right here, basically all single quotes need to be replaced with backslash-single-quote
+ <xsl:when test="contains($string,''')">
+ <xsl:value-of select="substring-before($string,''')"/>
+ \'
+ <xsl:call-template name="JS-escape">
+ <xsl:with-param name="string" select="substring-after($string,''')"/>
+ </xsl:call-template>
+ </xsl:when> -->
+ <xsl:when test="contains($string,'\')">
+ <xsl:value-of select="substring-before($string,'\')"/>\\<xsl:call-template name="JS-escape">
+ <xsl:with-param name="string" select="substring-after($string,'\')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$string"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+
+<!--
+ template that will convert a carriage return into a br tag
+ @param word the text from which to convert CR to BR tag
+-->
+<xsl:template name="br-replace">
+ <xsl:param name="word"/>
+ <xsl:choose>
+ <xsl:when test="contains($word,'
')">
+ <xsl:value-of select="substring-before($word,'
')"/>
+ <br/>
+ <xsl:call-template name="br-replace">
+ <xsl:with-param name="word" select="substring-after($word,'
')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$word"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template name="display-time">
+ <xsl:param name="value"/>
+ <xsl:value-of select="format-number($value,'0.000')"/>
+</xsl:template>
+
+<xsl:template name="display-percent">
+ <xsl:param name="value"/>
+ <xsl:value-of select="format-number($value,'0.00%')"/>
+</xsl:template>
+
+</xsl:stylesheet>
+
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/ant-contrib-LICENSE.txt
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/ant-contrib-LICENSE.txt (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/ant-contrib-LICENSE.txt 2007-02-17 20:24:20 UTC (rev 1955)
@@ -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...@li....
+ *
+ * 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/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/ant-contrib.jar
===================================================================
(Binary files differ)
Property changes on: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/ant-contrib.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/eclipse-test-framework-3.2.zip
===================================================================
(Binary files differ)
Property changes on: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/eclipse-test-framework-3.2.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/org.pluginbuilder.autotestsuite.feature-0.1.0.200702131649PRD.zip
===================================================================
(Binary files differ)
Property changes on: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/org.pluginbuilder.autotestsuite.feature-0.1.0.200702131649PRD.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.properties
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.properties (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.properties 2007-02-17 20:24:20 UTC (rev 1955)
@@ -0,0 +1,51 @@
+#
+# BEGIN default properties for executing run-tests.xml standalone
+# (these properties are already set if run-tests.xml is called
+# from the postBuild target in custumTargets.xml)
+#
+
+buildType=N
+# archivePrefix is used to determine to which location the build result must be
+# extracted:
+# if ${archivePrefix} == eclipse the folder will be ${test.eclipse.base}
+# ${test.eclipse.host} otherwise.
+# Note: The latter makes only sense if archive Prefix is set to ".". If it has
+# another value the eclipse host won't be created successfully.
+archivePrefix=.
+
+# test.eclipse.zip must be a zip file for windows and tar file for linux
+test.eclipse.zip=C:/downloads/eclipse-SDK-3.2.1-win32.zip
+autotestsuite.trace=true
+autotestsuite.plugin.inclusions=.*test$
+autotestsuite.plugin.exclusions=
+autotestsuite.class.inclusions=.*
+autotestsuite.class.exclusions=.*\\.All.*;.*ServerCommunication.*
+
+#
+# END default properties for executing run-tests.xml standalone
+#
+
+# test.eclipse.host points to a directory where an Eclipse installation for the
+# tests will be built. Therefore ${test.eclipse.zip} will be extracted first and
+# then there will be additional plug-ins be "installed", which means they will
+# be extracted. The implication of this kind of installation is that the test
+# Eclipse host must be called with the clean parameter later
+# It is expected that test.eclipse.host contains a subfolder eclipse.
+# The plug-ins which will be installed are the plug-ins located in
+# ${buildResultsDir} plus the eclipse test framework plus the autotestsuite.
+test.eclipse.base=${buildDirectory}/automatedTests
+
+test.eclipse.host=${test.eclipse.base}/eclipse
+
+# Denotes the ant script where the target ui-test is defined
+test.library.xml=${test.eclipse.host}/plugins/org.eclipse.test_3.1.0/library.xml
+
+# Directory where the reports are collected
+test.result.dir=${test.eclipse.host}/test-reports
+
+# Specifies the overall report in ${test.result.dir}/xml
+test.aggregated.report=testReport_${buildLabel}.xml
+
+# Workspace for the tests. Particularly useful is ${test.workspace}/.metadata/.log
+test.workspace=${test.eclipse.host}/workspace
+
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.xml (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/automatedTests/run-tests.xml 2007-02-17 20:24:20 UTC (rev 1955)
@@ -0,0 +1,90 @@
+<project name="Run automated Tests" default="run" basedir=".">
+
+ <property file="run-tests.properties" />
+ <property file="../../build_local.properties" />
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="ant-contrib.jar" />
+
+ <target name="-init">
+ <antcall target="-purgeTestEclipseHost" />
+ <antcall target="-installTestEclipseHost" />
+ </target>
+
+ <target name="-purgeTestEclipseHost">
+ <delete dir="${test.eclipse.base}" failOnError="false" />
+ </target>
+
+ <target name="-extractEclipse">
+ <if>
+ <os family="windows" />
+ <then>
+ <unzip dest="${test.eclipse.base}" src="${test.eclipse.zip}" />
+ </then>
+ <else>
+ <untar dest="${test.eclipse.base}" src="${test.eclipse.zip}" compression="gzip" />
+ </else>
+ </if>
+ </target>
+
+ <target name="-installTestEclipseHost" depends="-extractEclipse" description="Install Eclipse and all required plug-ins for testing" unless="isEclipseInstallationAvailable">
+ <echo message="Installing plug-ins for testing" />
+ <unzip dest="${test.eclipse.base}">
+ <fileset dir="." includes="eclipse-test-framework*.zip" />
+ </unzip>
+ <unzip dest="${test.eclipse.host}">
+ <fileset dir="." includes="org.pluginbuilder.autotestsuite*.zip" />
+ </unzip>
+ <if>
+ <equals arg1="${archivePrefix}" arg2="eclipse" />
+ <then>
+ <property name="buildResultZipDest" value="${test.eclipse.base}" />
+ </then>
+ <else>
+ <property name="buildResultZipDest" value="${test.eclipse.host}" />
+ </else>
+ </if>
+ <unzip dest="${buildResultZipDest}">
+ <fileset dir="${buildDirectory}" includes="${buildType}-**/*.zip" />
+ </unzip>
+ </target>
+
+ <target name="-runSuite">
+ <delete dir="${test.workspace}" quiet="true" />
+ <property name="eclipse-home" value="${test.eclipse.host}" />
+ <antcall target="runAll" />
+ </target>
+
+ <target name="runTestSuite" description="Should be called from allTests.xml only">
+ <ant target="ui-test" antfile="${test.library.xml}" dir="${test.eclipse.host}">
+ <!-- use -clean because plug-ins have been unzipped into the eclipse folder -->
+ <property name="data-dir" value="${test.workspace} -clean" />
+ <property name="vmargs" value="-Dnet.sourceforge.cobertura.datafile=${cobertura.ser}" />
+ </ant>
+ </target>
+
+ <target name="runAllTestSuite" description="Should be called from allTests.xml only">
+ <ant target="ui-test" antfile="${test.library.xml}" dir="${test.eclipse.host}">
+ <!-- use -clean because plug-ins have been unzipped into the eclipse folder -->
+ <property name="data-dir" value="${test.workspace} -clean" />
+ <property name="test-output" value="all.autotestsuite.xml" />
+ <property name="plugin-name" value="org.pluginbuilder.autotestsuite" />
+ <property name="classname" value="org.pluginbuilder.autotestsuite.AllTestSuite" />
+ <property name="eclipse-home" value="${test.eclipse.host}" />
+
+ <property name="vmargs" value="-Dautotest.debug=${autotestsuite.trace} -Dautotestsuite.plugin.inclusions=${autotestsuite.plugin.inclusions} -Dautotestsuite.plugin.exclusions=${autotestsuite.plugin.exclusions} -Dautotestsuite.class.inclusions=${autotestsuite.class.inclusions} -Dautotestsuite.class.exclusions=${autotestsuite.class.exclusions} -Dnet.sourceforge.cobertura.datafile=${cobertura.ser}" />
+ </ant>
+ </target>
+
+ <target name="run" depends="-init,runAllTestSuite" description="Run all tests and create a report.">
+ <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}">
+ <property name="includes" value="*.xml" />
+ <property name="output-file" value="${test.aggregated.report}" />
+ </ant>
+ <copy file="${test.eclipse.host}/${test.aggregated.report}" todir="${test.result.dir}/xml" />
+ <style style="${basedir}/JUNIT.XSL" basedir="${test.result.dir}/xml" destdir="${test.result.dir}/html" />
+
+ </target>
+
+</project>
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/build.properties
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/build.properties (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/build.properties 2007-02-17 20:24:20 UTC (rev 1955)
@@ -0,0 +1,107 @@
+###############################################################################
+# Copyright (c) 2003, 2004 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Common Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/cpl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+#####################
+# Parameters describing how and where to execute the build.
+# Typical users need only update the following properties:
+# baseLocation - where things you are building against are installed
+# bootclasspath - The base jars to compile against (typicaly rt.jar)
+# configs - the list of {os, ws, arch} configurations to build.
+#
+# Of course any of the settings here can be overridden by spec'ing
+# them on the command line (e.g., -DbaseLocation=d:/eclipse
+
+############# CVS CONTROL ################
+# The CVS tag to use when fetching the map files from the repository
+
+mapVersionTag=HEAD
+
+# The CVS tag to use when fetching elements to build. By default the
+# builder will use whatever is in the maps. Use this value to override
+# for example, when doing a nightly build out of HEAD
+
+fetchTag=HEAD
+############## BUILD / GENERATION CONTROL ################
+# The directory into which the build elements will be fetched and where
+# the build will take place.
+# Do not enter relative paths, because otherwise the directory.txt file
+# won't be found
+# If relative , the directory would be relative to the $builder directory
+#buildDirectory=D:\\Temp\\buildresult3
+
+# Type of build. Used in naming the build output. Typically this value is
+# one of I, N, M, S, ...
+# If you change this, please also see the featureVersion and baseFeatureVersion properties below
+buildType=N
+
+# ID of the build. Used in naming the build output. (the zip file)
+# buildId is set in customTargets.xml in order to consider a dynamic featureVersion for nightlyBuild
+#buildId=${featureVersion}
+
+# Label for the build. Used in naming the build output (the directory)
+# buildLabel is set in customTargets.xml in order to consider a dynamic featureVersion for nightlyBuild
+#buildLabel=${featureVersion}
+
+# Timestamp for the build. Used in naming the build output
+#timestamp=007
+
+# Base location for anything the build needs to compile against. For example,
+# when building GEF, the baseLocation should be the location of a previously
+# installed Eclipse against which the GEF code will be compiled.
+#baseLocation=D:\\eclipse-3.0
+
+#Os/Ws/Arch/nl of the eclipse specified by baseLocation
+#baseos
+#basews
+#basearch
+#basenl
+
+# The location underwhich all of the build output will be collected.
+# This is a subdirectory of $buildDirectory
+# Set collectingFolder and archivePrefix to . if you want to create archives without
+# trailing eclipse in the paths of the included files
+collectingFolder=.
+
+# The prefix that will be used in the generated archive.
+# Does not make sense to use a different archivePrefix than collectingFolder,
+# because zip wouldn't find any files to include into the target zip otherwise
+archivePrefix=.
+
+# The list of {os, ws, arch} configurations to build. This
+# value is a '&' separated list of ',' separate triples. For example,
+# configs=win32,win32,x86 & linux,motif,x86
+# By default the value is *,*,*
+#configs=*,*,*
+
+#Arguments to send to the zip executable
+# Doesn't work
+#zipArgs=-z "RDT: extract into eclipse-installation directory"
+
+############# JAVA COMPILER OPTIONS ##############
+# The location of the Java jars to compile against. Typically the rt.jar for your JDK/JRE
+#bootclasspath=d:/ibm1.3.1/jre/lib/rt.jar
+#bootclasspath=D:\\java\\j2sdk1.4.2_05\\jre\\lib\\rt.jar
+
+# Whether or not to include debug info in the output jars
+javacDebugInfo=true
+
+# Whether or not to fail the build if there are compiler errors
+javacFailOnError=true
+
+# The version of the source code
+javacSource=1.5
+
+# The version of the byte code targeted
+javacTarget=1.5
+
+#collPlace=eclipse
+#collBase=.
+#collectingFolder=eclipse
+#archivePrefix=eclipse
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/customTargets.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/customTargets.xml (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/customTargets.xml 2007-02-17 20:24:20 UTC (rev 1955)
@@ -0,0 +1,176 @@
+<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="isCVS" value="true">
+ <equals arg1="${pluginbuilder.is.cvs}" arg2="true"/>
+ </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="isCVS">
+ <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">
+ <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}"/>
+ <!-- make sure to select the test feature file as well -->
+ <replace dir="${buildDirectory}/features">
+ <include name="**/feature.xml"/>
+ <replacefilter token="0.0.0" value="${version.full}" />
+ <replacefilter token="VERSION_QUALIFIER" value="${version.qualifier}" />
+ </replace>
+ <!-- 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="VERSION_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 after the build is done. -->
+ <!-- ===================================================================== -->
+ <target name="postBuild" depends="-prepareBuildResultsDirectory">
+ <antcall target="runTests"/>
+ <antcall target="package"/>
+ </target>
+ <!-- ===================================================================== -->
+ <!-- Run tests. -->
+ <!-- ===================================================================== -->
+ <property name="buildResultsDirectory" value="${buildDirectory}/results" />
+ <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"/>
+ <!-- important inherited properties: testResultDir and cobertura.result.dir -->
+ </ant>
+
+ </target>
+ <!--======================================================-->
+ <!-- Preparing build results -->
+ <!-- ==================================================== -->
+ <target name="-prepareBuildResultsDirectory">
+ <echo message="Creating ${buildResultsDirectory}" />
+ <mkdir dir="${buildResultsDirectory}" />
+ </target>
+ <target name="package">
+ <copy todir="${buildResultsDirectory}" flatten="true">
+ <fileset dir="${buildDirectory}/${buildLabel}">
+ <include name="*.zip" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="noDefault">
+ <echo message="You must specify a target when invoking this file" />
+ </target>
+</project>
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/fetchSvnAll.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/fetchSvnAll.xml (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/fetchSvnAll.xml 2007-02-17 20:24:20 UTC (rev 1955)
@@ -0,0 +1,119 @@
+<project name="Generated">
+ <target name="fetch.svn.all">
+ <antcall target="svn.co">
+ <param name="target" value="features"/>
+ <param name="element.id" value="org.rubypeople.rdt"/>
+ <param name="project.name" value="org.rubypeople.rdt-feature"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.kxml2"/>
+ <param name="project.name" value="org.kxml2"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.doc.user"/>
+ <param name="project.name" value="org.rubypeople.rdt.doc.user"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.epic.regexp"/>
+ <param name="project.name" value="org.epic.regexp"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.ui"/>
+ <param name="project.name" value="org.rubypeople.rdt.ui"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt"/>
+ <param name="project.name" value="org.rubypeople.rdt"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.testunit"/>
+ <param name="project.name" value="org.rubypeople.rdt.testunit"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.launching"/>
+ <param name="project.name" value="org.rubypeople.rdt.launching"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.debug.ui"/>
+ <param name="project.name" value="org.rubypeople.rdt.debug.ui"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.debug.core"/>
+ <param name="project.name" value="org.rubypeople.rdt.debug.core"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.core"/>
+ <param name="project.name" value="org.rubypeople.rdt.core"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.jruby"/>
+ <param name="project.name" value="org.jruby"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.refactoring"/>
+ <param name="project.name" value="org.rubypeople.rdt.refactoring"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="features"/>
+ <param name="element.id" value="org.rubypeople.rdt-tests"/>
+ <param name="project.name" value="org.rubypeople.rdt-test-feature"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.eclipse.shams"/>
+ <param name="project.name" value="org.rubypeople.eclipse.shams"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.eclipse.testutils"/>
+ <param name="project.name" value="org.rubypeople.eclipse.testutils"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.core.tests"/>
+ <param name="project.name" value="org.rubypeople.rdt.core.tests"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.debug.core.tests"/>
+ <param name="project.name" value="org.rubypeople.rdt.debug.core.tests"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.debug.ui.tests"/>
+ <param name="project.name" value="org.rubypeople.rdt.debug.ui.tests"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.launching.tests"/>
+ <param name="project.name" value="org.rubypeople.rdt.launching.tests"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.tests.all"/>
+ <param name="project.name" value="org.rubypeople.rdt.tests.all"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.ui.tests"/>
+ <param name="project.name" value="org.rubypeople.rdt.ui.tests"/>
+ </antcall>
+ <antcall target="svn.co">
+ <param name="target" value="plugins"/>
+ <param name="element.id" value="org.rubypeople.rdt.refactoring.tests"/>
+ <param name="project.name" value="org.rubypeople.rdt.refactoring.tests"/>
+ </antcall>
+ </target>
+</project>
\ No newline at end of file
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/subversionSupport.xml
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/subversionSupport.xml (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/subversionSupport.xml 2007-02-17 20:24:20 UTC (rev 1955)
@@ -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="${pluginbuilder.svn.url}/${project.name}" destPath="${buildDirectory}/${target}/${target.dir}" />
+ </svn>
+ </target>
+
+</project>
\ No newline at end of file
Added: trunk/org.rubypeople.rdt.pluginbuilder/build-files/svn/SVNCLIENTADAPTER-LICENSE
===================================================================
--- trunk/org.rubypeople.rdt.pluginbuilder/build-files/svn/SVNCLIENTADAPTER-LICENSE (rev 0)
+++ trunk/org.rubypeople.rdt.pluginbuilder/build-files/svn/SVNCLIENTADAPTER-LICENSE 2007-02-17 20:24:20 UTC (rev 1955)
@@ -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, ...
[truncated message content] |
|
From: <mba...@us...> - 2007-02-17 20:22:52
|
Revision: 1954
http://svn.sourceforge.net/rubyeclipse/?rev=1954&view=rev
Author: mbarchfe
Date: 2007-02-17 12:22:51 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
Share project 'org.rubypeople.rdt.pluginbuilder' into 'https://svn.sourceforge.net/svnroot/rubyeclipse'
Added Paths:
-----------
trunk/org.rubypeople.rdt.pluginbuilder/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-17 15:21:36
|
Revision: 1953
http://svn.sourceforge.net/rubyeclipse/?rev=1953&view=rev
Author: mbarchfe
Date: 2007-02-17 07:21:33 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
moved from subfolder of rdt-feature into its own test feature project
Added Paths:
-----------
trunk/org.rubypeople.rdt-test-feature/.project
trunk/org.rubypeople.rdt-test-feature/build.properties
trunk/org.rubypeople.rdt-test-feature/feature.xml
Added: trunk/org.rubypeople.rdt-test-feature/.project
===================================================================
--- trunk/org.rubypeople.rdt-test-feature/.project (rev 0)
+++ trunk/org.rubypeople.rdt-test-feature/.project 2007-02-17 15:21:33 UTC (rev 1953)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.rubypeople.rdt-test-feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/org.rubypeople.rdt-test-feature/build.properties
===================================================================
--- trunk/org.rubypeople.rdt-test-feature/build.properties (rev 0)
+++ trunk/org.rubypeople.rdt-test-feature/build.properties 2007-02-17 15:21:33 UTC (rev 1953)
@@ -0,0 +1 @@
+bin.includes = feature.xml
Added: trunk/org.rubypeople.rdt-test-feature/feature.xml
===================================================================
--- trunk/org.rubypeople.rdt-test-feature/feature.xml (rev 0)
+++ trunk/org.rubypeople.rdt-test-feature/feature.xml 2007-02-17 15:21:33 UTC (rev 1953)
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.rubypeople.rdt-tests"
+ label="Ruby Development Tools Unit Tests"
+ version="0.0.0"
+ provider-name="RubyPeople">
+ <install-handler/>
+
+ <description url="[Enter Feature URL here.]">
+ [Enter Feature Description here.]
+ </description>
+
+ <copyright url="[Enter Copyright URL here.]">
+ [Enter Copyright Description here.]
+ </copyright>
+
+ <license url="[Enter License URL here.]">
+ [Enter License Description here.]
+ </license>
+
+ <requires>
+ <import plugin="org.eclipse.swt"/>
+ <import plugin="org.eclipse.core.runtime.compatibility"/>
+ <import plugin="org.eclipse.core.resources"/>
+ <import plugin="org.eclipse.ui"/>
+ <import plugin="org.eclipse.debug.core"/>
+ <import plugin="org.junit"/>
+ <import plugin="org.rubypeople.rdt.core"/>
+ <import plugin="org.rubypeople.rdt.debug.core"/>
+ <import plugin="org.kxml2"/>
+ <import plugin="org.eclipse.ui.ide"/>
+ <import plugin="org.eclipse.ui.views"/>
+ <import plugin="org.eclipse.jface.text"/>
+ <import plugin="org.eclipse.ui.workbench.texteditor"/>
+ <import plugin="org.eclipse.ui.editors"/>
+ <import plugin="org.rubypeople.rdt.debug.ui"/>
+ <import plugin="org.rubypeople.rdt.launching"/>
+ <import plugin="org.rubypeople.rdt.ui"/>
+ <import plugin="org.eclipse.debug.ui"/>
+ </requires>
+
+ <plugin
+ id="org.rubypeople.eclipse.shams"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.rubypeople.eclipse.testutils"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.rubypeople.rdt.core.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.rubypeople.rdt.debug.core.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.rubypeople.rdt.debug.ui.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.rubypeople.rdt.launching.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.rubypeople.rdt.tests.all"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.rubypeople.rdt.ui.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.rubypeople.rdt.refactoring.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mba...@us...> - 2007-02-17 15:20:31
|
Revision: 1952
http://svn.sourceforge.net/rubyeclipse/?rev=1952&view=rev
Author: mbarchfe
Date: 2007-02-17 07:20:27 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
Share project 'org.rubypeople.rdt-test-feature' into 'https://svn.sourceforge.net/svnroot/rubyeclipse'
Added Paths:
-----------
trunk/org.rubypeople.rdt-test-feature/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mir...@us...> - 2007-02-17 09:44:18
|
Revision: 1951
http://svn.sourceforge.net/rubyeclipse/?rev=1951&view=rev
Author: mirkostocker
Date: 2007-02-17 01:44:14 -0800 (Sat, 17 Feb 2007)
Log Message:
-----------
fix for #240 (JRuby parser is throwing ClassCastExceptions)
Modified Paths:
--------------
trunk/org.jruby/README
trunk/org.jruby/lib/jruby.jar
trunk/org.jruby/src.zip
Modified: trunk/org.jruby/README
===================================================================
--- trunk/org.jruby/README 2007-02-14 08:31:43 UTC (rev 1950)
+++ trunk/org.jruby/README 2007-02-17 09:44:14 UTC (rev 1951)
@@ -1 +1 @@
-JRuby revision: 2944 with the two patches from http://jira.codehaus.org/browse/JRUBY-562 and http://jira.codehaus.org/browse/JRUBY-563
+JRuby revision 3012
Modified: trunk/org.jruby/lib/jruby.jar
===================================================================
(Binary files differ)
Modified: trunk/org.jruby/src.zip
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mir...@us...> - 2007-02-14 08:31:45
|
Revision: 1950
http://svn.sourceforge.net/rubyeclipse/?rev=1950&view=rev
Author: mirkostocker
Date: 2007-02-14 00:31:43 -0800 (Wed, 14 Feb 2007)
Log Message:
-----------
do not match task markers outside of comments (Ticket #224)
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/TaskParser.java
trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/parser/TC_TaskParser.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/TaskParser.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/TaskParser.java 2007-02-12 20:41:10 UTC (rev 1949)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/TaskParser.java 2007-02-14 08:31:43 UTC (rev 1950)
@@ -116,8 +116,8 @@
String tag = fTags[i];
int priority = fPriorities[i];
if (!fCaseSensitive) tag = tag.toLowerCase();
- int index = line.indexOf(tag);
- if (index != -1) {
+ if (line.matches(".*#.*" + tag + ".*[\\n\\r]*")) {
+ int index = line.indexOf(tag);
String message = line.substring(index).trim();
createTaskTag(priority, message, lineNum + 1, offset + index, offset + index + message.length());
}
Modified: trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/parser/TC_TaskParser.java
===================================================================
--- trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/parser/TC_TaskParser.java 2007-02-12 20:41:10 UTC (rev 1949)
+++ trunk/org.rubypeople.rdt.core.tests/src/org/rubypeople/rdt/internal/core/parser/TC_TaskParser.java 2007-02-14 08:31:43 UTC (rev 1950)
@@ -13,8 +13,10 @@
public class TC_TaskParser extends TestCase {
- private static final String BASIC_MESSAGE = "TASK test";
- private static final String ALTERNATE_MESSAGE = "CHORE test";
+ private static final String BASIC_MESSAGE = "#TASK test";
+ private static final String BASIC_MESSAGE_EXPECTED = "TASK test";
+ private static final String ALTERNATE_MESSAGE = "#CHORE test";
+ private static final String ALTERNATE_MESSAGE_EXPECTED = "CHORE test";
private Map preferences;
private TaskParser parser;
@@ -28,38 +30,38 @@
public void testSimpleTag() {
List tasks = parseTasks("TASK", BASIC_MESSAGE);
assertEquals(1, tasks.size());
- assertTask(BASIC_MESSAGE, 0, 1, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
+ assertTask(BASIC_MESSAGE_EXPECTED, 1, 1, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
}
public void testIndentedTag() {
List tasks = parseTasks("TASK", "x"+BASIC_MESSAGE);
assertEquals(1, tasks.size());
- assertTask(BASIC_MESSAGE, 1, 1, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
+ assertTask(BASIC_MESSAGE_EXPECTED, 2, 1, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
}
public void testCaseInsensitive() {
preferences.put(RubyCore.COMPILER_TASK_CASE_SENSITIVE, RubyCore.DISABLED);
List tasks = parseTasks("TASK", "x"+BASIC_MESSAGE.toLowerCase());
assertEquals(1, tasks.size());
- assertTask(BASIC_MESSAGE.toLowerCase(), 1, 1, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
+ assertTask(BASIC_MESSAGE_EXPECTED.toLowerCase(), 2, 1, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
}
public void testLineEndingCRLF() {
List tasks = parseTasks("TASK", "\r\n" + BASIC_MESSAGE);
assertEquals(1, tasks.size());
- assertTask(BASIC_MESSAGE, 2, 2, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
+ assertTask(BASIC_MESSAGE_EXPECTED, 3, 2, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
}
public void testLineEndingLF() {
List tasks = parseTasks("TASK", "\n" + BASIC_MESSAGE);
assertEquals(1, tasks.size());
- assertTask(BASIC_MESSAGE, 1, 2, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
+ assertTask(BASIC_MESSAGE_EXPECTED, 2, 2, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
}
public void testLineEndingCR() {
List tasks = parseTasks("TASK", "\r" + BASIC_MESSAGE);
assertEquals(1, tasks.size());
- assertTask(BASIC_MESSAGE, 1, 2, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
+ assertTask(BASIC_MESSAGE_EXPECTED, 2, 2, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
}
public void testLoadFromReader() throws Exception {
@@ -72,14 +74,20 @@
List tasks = parser.getTasks();
assertEquals(1, tasks.size());
- assertTask("TASK test", 0, 1, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
+ assertTask("TASK test", 1, 1, IMarker.PRIORITY_NORMAL, (TaskTag) tasks.get(0));
}
public void testDifferentTag() {
List tasks = parseTasks("TASK,CHORE", ALTERNATE_MESSAGE);
assertEquals(1, tasks.size());
- assertTask(ALTERNATE_MESSAGE, 0, 1, IMarker.PRIORITY_HIGH, (TaskTag) tasks.get(0));
+ assertTask(ALTERNATE_MESSAGE_EXPECTED, 1, 1, IMarker.PRIORITY_HIGH, (TaskTag) tasks.get(0));
}
+
+ public void testDoNotMatch() {
+ final String LINE = "puts 'TASK'";
+ List tasks = parseTasks("TASK", LINE);
+ assertEquals("Should not match " + LINE, 0, tasks.size());
+ }
private List parseTasks(String validTags, String input) {
preferences.put(RubyCore.COMPILER_TASK_TAGS, validTags);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-02-12 20:41:16
|
Revision: 1949
http://svn.sourceforge.net/rubyeclipse/?rev=1949&view=rev
Author: cawilliams
Date: 2007-02-12 12:41:10 -0800 (Mon, 12 Feb 2007)
Log Message:
-----------
avoid many exceptions getting thrown during parsing process
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptStructureBuilder.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptStructureBuilder.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptStructureBuilder.java 2007-02-12 19:46:35 UTC (rev 1948)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyScriptStructureBuilder.java 2007-02-12 20:41:10 UTC (rev 1949)
@@ -532,6 +532,8 @@
private RubyType findChild(RubyElement parent, int type, String name) {
try {
+ // FIXME What shoudl we do when resource doesn't "exist" (is external?)
+ if (!parent.exists()) return null;
ArrayList<IRubyElement> children = parent.getChildrenOfType(type);
for (IRubyElement element : children) {
if (element.getElementName().equals(name)) return (RubyType) element;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <caw...@us...> - 2007-02-12 19:47:29
|
Revision: 1948
http://svn.sourceforge.net/rubyeclipse/?rev=1948&view=rev
Author: cawilliams
Date: 2007-02-12 11:46:35 -0800 (Mon, 12 Feb 2007)
Log Message:
-----------
remove unused file
Removed Paths:
-------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/ParserOptions.java
Deleted: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/ParserOptions.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/ParserOptions.java 2007-02-11 19:55:56 UTC (rev 1947)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/ParserOptions.java 2007-02-12 19:46:35 UTC (rev 1948)
@@ -1,72 +0,0 @@
-package org.rubypeople.rdt.internal.core.parser;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.rubypeople.rdt.core.RubyCore;
-import org.rubypeople.rdt.internal.core.util.CharOperation;
-
-public class ParserOptions {
-
- public static final long EnsureBlockNotCompleting = 0x1;
- public static final long UnusedLocalVariable = 0x2;
- public static final long UnusedPrivateMember = 0x4;
- public static final long MaskedRescueBlock = 0x8;
- public static final long UnusedArgument = 0x10;
- public static final long EmptyStatement = 0x20;
- public static final long UnnecessaryElse = 0x40;
- public static final long NullReference = 0x80;
- public static final long FallthroughCase = 0x100;
-
- public static final String ERROR = RubyCore.ERROR;
- public static final String WARNING = RubyCore.WARNING;
- public static final String IGNORE = RubyCore.IGNORE;
- public static final String ENABLED = RubyCore.ENABLED;
- public static final String DISABLED = RubyCore.DISABLED;
-
- // Default severity level for handlers
- public long errorThreshold = 0;
-
- public long warningThreshold =
- EnsureBlockNotCompleting
- | UnusedLocalVariable
- | UnusedPrivateMember
- /*| NullReference -- keep RubyCore#getDefaultOptions comment in sync */;
-
- // source encoding format
- public String defaultEncoding = null; // will use the platform default encoding
-
- // tags used to recognize tasks in comments
- public char[][] taskTags = null;
- public char[][] taskPriorites = null;
- public boolean isTaskCaseSensitive = true;
-
- public Map getMap() {
- Map optionsMap = new HashMap(30);
- optionsMap.put(RubyCore.COMPILER_PB_HIDDEN_RESCUE_BLOCK, getSeverityString(MaskedRescueBlock));
- optionsMap.put(RubyCore.COMPILER_PB_UNUSED_LOCAL, getSeverityString(UnusedLocalVariable));
- optionsMap.put(RubyCore.COMPILER_PB_UNUSED_PARAMETER, getSeverityString(UnusedArgument));
- optionsMap.put(RubyCore.COMPILER_PB_UNUSED_PRIVATE_MEMBER, getSeverityString(UnusedPrivateMember));
- optionsMap.put(RubyCore.COMPILER_PB_EMPTY_STATEMENT, getSeverityString(EmptyStatement));
- optionsMap.put(RubyCore.COMPILER_PB_UNNECESSARY_ELSE, getSeverityString(UnnecessaryElse));
- optionsMap.put(RubyCore.COMPILER_PB_ENSURE_BLOCK_NOT_COMPLETING, getSeverityString(EnsureBlockNotCompleting));
- if (this.defaultEncoding != null) {
- optionsMap.put(RubyCore.CORE_ENCODING, this.defaultEncoding);
- }
- optionsMap.put(RubyCore.COMPILER_TASK_TAGS, this.taskTags == null ? "" : new String(CharOperation.concatWith(this.taskTags,','))); //$NON-NLS-1$
- optionsMap.put(RubyCore.COMPILER_TASK_PRIORITIES, this.taskPriorites == null ? "" : new String(CharOperation.concatWith(this.taskPriorites,','))); //$NON-NLS-1$
- optionsMap.put(RubyCore.COMPILER_TASK_CASE_SENSITIVE, this.isTaskCaseSensitive ? ENABLED : DISABLED);
- optionsMap.put(RubyCore.COMPILER_PB_NULL_REFERENCE, getSeverityString(NullReference));
- optionsMap.put(RubyCore.COMPILER_PB_FALLTHROUGH_CASE, getSeverityString(FallthroughCase));
- return optionsMap;
- }
-
- public String getSeverityString(long irritant) {
- if((this.warningThreshold & irritant) != 0)
- return WARNING;
- if((this.errorThreshold & irritant) != 0)
- return ERROR;
- return IGNORE;
- }
-
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|