Title: [jbehave] [651] trunk/plugins: [fl] added build files for eclipse plugin, not working but almost...

Diff

Added: trunk/plugins/build-eclipse.xml (0 => 651)

--- trunk/plugins/build-eclipse.xml	                        (rev 0)
+++ trunk/plugins/build-eclipse.xml	2007-01-03 16:25:02 UTC (rev 651)
@@ -0,0 +1,43 @@
+<project name="jbehave-eclipse" default="generate-scripts">
+	<target name="generate-scripts">
+	
+	
+	<property name="feature" value="org.jbehave.plugin.eclipse.feature"/>
+	<property name="elements" value="[EMAIL PROTECTED]"/>
+	
+	
+	 <mkdir dir="build"/>
+	<eclipse.fetch elements="${elements}"		
+			    buildDirectory="."	
+			    configInfo="win32,win32,x86"
+			    directory="directory.txt"
+			    fetchTag="COPY"/>
+			    
+	
+	<property name="featureAndPlugins" value="X"/>
+	<property name="featureOnly" value="X"/>
+	<property name="buildDirectory" value="build"/>
+	<ant  antfile="fetch_${feature}.xml"/>		
+
+	<xslt extension="properties" style="extract-feature-version.xslt" in="build/features/${feature}/feature.xml" out="version.xml"/>
+	<xmlproperty file="version.xml"/>
+	
+
+	<eclipse.buildScript configInfo="win32,win32,x86 &amp; linux, motif, x86" elements="${elements}" buildDirectory="build" baseLocation="${eclipse.home}" /> 
+	
+	<ant dir="build/features/${feature}" antfile="build.xml" target="build.jars" /> 
+
+	<ant dir="build/features/${feature}" antfile="build.xml" target="zip.distribution" /> 
+  	<!--<ant antfile="build/assemble.${feature}.all.xml"/> -->
+  
+
+		<mkdir dir="build/site" /> 
+ 		<unzip dest="build/site" src=""
+			
+		
+		<xslt  style="site.xslt" in="version.xml" out="build/site/site.xml"/>
+		
+	</target>
+  </project>
+
+

Added: trunk/plugins/build.xml (0 => 651)

--- trunk/plugins/build.xml	                        (rev 0)
+++ trunk/plugins/build.xml	2007-01-03 16:25:02 UTC (rev 651)
@@ -0,0 +1,16 @@
+<project name="cc-build-jbehave-eclipse" default="build" basedir="">
+	<!-- 
+	Usage:
+		ant -DeclipseDir=<yourEclipseFolder>
+	-->
+ 	<target name="build" >
+		<condition property="eclipseDir" value="C:/Program Files/eclipse">
+			<not>
+				<isset property="eclipseDir"></isset>
+			</not>
+		</condition>
+ 		<java fork="true" classname="org.eclipse.core.launcher.Main" classpath="${eclipseDir}/startup.jar" failonerror="true">
+			<arg line="-application org.eclipse.ant.core.antRunner -buildfile build-eclipse.xml  -Dconfigs=win32,win32,x86 -Dbaseos=win32 -Dbasews=win32 -Dbasearch=x86 -DjavacFailOnError=true -DbuildLabel=${label}" /> 
+		</java>
+	</target>
+</project>
\ No newline at end of file

Added: trunk/plugins/directory.txt (0 => 651)

--- trunk/plugins/directory.txt	                        (rev 0)
+++ trunk/plugins/directory.txt	2007-01-03 16:25:02 UTC (rev 651)
@@ -0,0 +1,2 @@
[EMAIL PROTECTED],.,eclipse-feature
[EMAIL PROTECTED],.,eclipse
\ No newline at end of file

Modified: trunk/plugins/eclipse/META-INF/MANIFEST.MF (650 => 651)

--- trunk/plugins/eclipse/META-INF/MANIFEST.MF	2007-01-03 14:47:18 UTC (rev 650)
+++ trunk/plugins/eclipse/META-INF/MANIFEST.MF	2007-01-03 16:25:02 UTC (rev 651)
@@ -1,8 +1,8 @@
 Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: JBehave Plugin
-Bundle-SymbolicName: jbehave.plugin.eclipse; singleton:=true
-Bundle-Version: 0.5.2
+Bundle-SymbolicName: org.jbehave.plugin.eclipse;singleton:=true
+Bundle-Version: 0.9.1
 Bundle-Activator: org.jbehave.plugin.eclipse.JBehavePlugin
 Bundle-Localization: plugin
 Require-Bundle: org.eclipse.ui,
@@ -22,6 +22,6 @@
  org.eclipse.ui.editors,
  org.eclipse.ui.workbench.texteditor,
  org.eclipse.ui.views
-Eclipse-AutoStart: true
+Eclipse-LazyStart: true
 Bundle-Vendor: JBehave
 Bundle-ClassPath: eclipse-plugin.jar

Modified: trunk/plugins/eclipse/plugin.xml (650 => 651)

--- trunk/plugins/eclipse/plugin.xml	2007-01-03 14:47:18 UTC (rev 650)
+++ trunk/plugins/eclipse/plugin.xml	2007-01-03 16:25:02 UTC (rev 651)
@@ -1,10 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?eclipse version="3.0"?>
 <plugin
-   id="JBehave"
-   name="JBehave"
-   version="0.9.0"
-   provider-name="jbehave.org">
+   >
    <extension
          point="org.eclipse.debug.core.launchConfigurationTypes">
       <launchConfigurationType

Modified: trunk/plugins/eclipse-feature/feature.xml (650 => 651)

--- trunk/plugins/eclipse-feature/feature.xml	2007-01-03 14:47:18 UTC (rev 650)
+++ trunk/plugins/eclipse-feature/feature.xml	2007-01-03 16:25:02 UTC (rev 651)
@@ -1,22 +1,25 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
-      id="jbehave.plugin.eclipse.feature"
-      label="JBehave"
-      version="0.9.0"
-      provider-name="JBehave"
-      plugin="org.jbehave.eclipse"
-      image="behave.gif">
-
-   <description url=""
-      JBehave Plugin
-   </description>
-
-   <copyright url=""
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+      id="org.jbehave.plugin.eclipse.feature"
+      label="JBehave"
+      version="0.9.1"
+      provider-name="JBehave"
+      plugin="org.jbehave.eclipse"
+      os="win32"
+      ws="win32"
+      arch="x86"
+      image="behave.gif">
+
+   <description url=""
+      JBehave Plugin
+   </description>
+
+   <copyright url=""
+      Copyright © 2003-2006 jbehave.org
+   </copyright>
+
+   <license url=""
       Copyright © 2003-2006 jbehave.org
-   </copyright>
-
-   <license url=""
-      Copyright © 2003-2006 jbehave.org
 All rights reserved.
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
@@ -41,18 +44,20 @@
 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.
-   </license>
-
-   <url>
-      <update label="JBehave Plugin for Eclipse" url=""
-   </url>
-
-   <plugin
-         id="jbehave.plugin.eclipse"
-         download-size="0"
-         install-size="0"
-         version="0.5.2"
-         unpack="false"/>
-
-</feature>
+OF THE POSSIBILITY OF SUCH DAMAGE.
+   </license>
+
+   <url>
+      <update label="JBehave Plugin for Eclipse" url=""
+   </url>
+
+   <plugin
+         id="org.jbehave.plugin.eclipse"
+         os="linux,macosx,win32"
+         ws="carbon,gtk,motif,win32"
+         arch="ppc,x86"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"/>
+
+</feature>

Modified: trunk/plugins/eclipse-site/site.xml (650 => 651)

--- trunk/plugins/eclipse-site/site.xml	2007-01-03 14:47:18 UTC (rev 650)
+++ trunk/plugins/eclipse-site/site.xml	2007-01-03 16:25:02 UTC (rev 651)
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<site>
-   <description url=""
-      JBehave plugin
-   </description>
-   <feature url="" id="jbehave.plugin.eclipse.feature" version="0.9.0">
-      <category name="JBehave Plugin"/>
-   </feature>
-   <category-def name="JBehave Plugin" label="JBehave Plugin"/>
-</site>
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+   <description url=""
+      JBehave plugin
+   </description>
+   <feature url="" id="org.jbehave.plugin.eclipse.feature" version="0.9.1">
+      <category name="JBehave Plugin"/>
+   </feature>
+   <category-def name="JBehave Plugin" label="JBehave Plugin"/>
+</site>

Added: trunk/plugins/extract-feature-version.xslt (0 => 651)

--- trunk/plugins/extract-feature-version.xslt	                        (rev 0)
+++ trunk/plugins/extract-feature-version.xslt	2007-01-03 16:25:02 UTC (rev 651)
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:template match="/">
+<feature>
+<xsl:for-each select="feature">
+<name>
+<xsl:value-of select="@id"/>
+</name>
+
+<version>
+<xsl:value-of select="@version"/>
+</version>
+    </xsl:for-each>
+</feature>
+</xsl:template>
+</xsl:stylesheet>
\ No newline at end of file

Added: trunk/plugins/site.xslt (0 => 651)

--- trunk/plugins/site.xslt	                        (rev 0)
+++ trunk/plugins/site.xslt	2007-01-03 16:25:02 UTC (rev 651)
@@ -0,0 +1,23 @@
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+	<xsl:template match="/">
+		<site>
+		<description url="" plugin</description>
+
+		<xsl:for-each select="feature">
+		<feature >		
+		
+		<xsl:attribute name="url">features/<xsl:value-of select="name"/>_<xsl:value-of select="version"/>.jar</xsl:attribute>
+		<xsl:attribute name="id"><xsl:value-of select="name"/></xsl:attribute>
+		<xsl:attribute name="version"><xsl:value-of select="version"/></xsl:attribute>
+		
+			<category name="JBehave Plugin"/>
+		
+		</feature>
+		</xsl:for-each>
+		
+		<category-def name="JBehave Plugin" label="JBehave Plugin"/>
+	
+	</site>
+	</xsl:template>
+</xsl:stylesheet>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to