Commit in servicemix/tooling/maven-jbi-plugin on MAIN
plugin.jelly+19-31.3 -> 1.4
project.xml+38-321.1 -> 1.2
src/plugin-resources/project.jsl+55added 1.1
                    /project.properties+5added 1.1
                    /jbi-spring.xml+8added 1.1
                    /services.xml+12added 1.1
+137-35
4 added + 2 modified, total 6 files
Added the ability to create a template project 

servicemix/tooling/maven-jbi-plugin
plugin.jelly 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- plugin.jelly	17 Aug 2005 00:08:54 -0000	1.3
+++ plugin.jelly	18 Aug 2005 21:57:21 -0000	1.4
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!-- 
 /*
- * Copyright 2001-2004 Unity Systems
+ * Copyright 2001-2005 Unity Systems
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -20,8 +20,9 @@
          xmlns:ant="jelly:ant"
          xmlns:license="license" 
          xmlns:util="jelly:util"
-         xmlns:artifact="artifact">
-<goal name="jbi:generateInstaller" prereqs="jar:jar" description="Generates a JBI installer">  		  	  
+         xmlns:artifact="artifact"
+         xmlns:interaction="jelly:interaction">
+	<goal name="jbi:generateInstaller" prereqs="jar:jar" description="Generates a JBI installer">  		  	  
 	<ant:mkdir dir="${jbi.build.dir}/lib"/>	
 	<ant:mkdir dir="${jbi.build.dir}/META-INF"/>		
   	<j:file name="${jbi.build.dir}/META-INF/jbi.xml" prettyPrint="true"
@@ -40,5 +41,20 @@
 	<ant:zip destfile="${maven.build.dir}/${maven.final.name}-jbi-installer.zip" basedir="${jbi.build.dir}">
     	<include name="**/*"/>            	
   	</ant:zip>
+  </goal>
+  
+  <goal name="jbi:createArchetype" description="Generates a template JBI project">  		  	  
+  	<interaction:ask question="Enter the name for your new JBI project" prompt="?" answer="projectName"/>
+  	<ant:mkdir dir="${projectName}/src/main/java/"/>
+  	<ant:mkdir dir="${projectName}/src/main/test/"/>  	
+  	<ant:mkdir dir="${projectName}/src/main/merge/"/>  	  	
+  	<ant:mkdir dir="${projectName}/src/main/jbi/META-INF"/>  	  	  	  	
+  	<j:file name="${projectName}/project.xml" prettyPrint="true"
+			outputMode="xml" escapeText="false">
+			<j:import file="${plugin.resources}/project.jsl" inherit="true" />
+	</j:file>
+	<ant:copy file="${plugin.resources}/project.properties" todir="${projectName}"/>
+	<ant:copy file="${plugin.resources}/jbi-spring.xml" todir="${projectName}/src/main/jbi/META-INF"/>
+	<ant:copy file="${plugin.resources}/services.xml" todir="${projectName}/src/main/merge"/>	
   </goal>
 </project>

servicemix/tooling/maven-jbi-plugin
project.xml 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- project.xml	8 Aug 2005 00:46:34 -0000	1.1
+++ project.xml	18 Aug 2005 21:57:21 -0000	1.2
@@ -1,39 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <!-- 
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- -->
+	/*
+	* Copyright 2001-2004 The Apache Software Foundation.
+	* 
+	* Licensed under the Apache License, Version 2.0 (the "License");
+	* you may not use this file except in compliance with the License.
+	* You may obtain a copy of the License at
+	* 
+	*      http://www.apache.org/licenses/LICENSE-2.0
+	* 
+	* Unless required by applicable law or agreed to in writing, software
+	* distributed under the License is distributed on an "AS IS" BASIS,
+	* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+	* See the License for the specific language governing permissions and
+	* limitations under the License.
+	*/
+-->
 
-<project>  
-  <pomVersion>3</pomVersion>
-  <id>maven-jbi-plugin</id>
-  <name>Maven JBI Plugin</name>
-  <currentVersion>0.1</currentVersion>
-  <description>JBI Plugin for Maven</description>
-  <shortDescription>JBI Plugin for Maven</shortDescription>
-  <developers>
-    <developer>
-      <name>Philip Dodds</name>
-      <id>pdodds</id>
-      <email>Unity Systems</email>      
-    </developer>    
-  </developers>
-  <dependencies/>
-  <build>
+<project>
+	<pomVersion>3</pomVersion>
+	<id>maven-jbi-plugin</id>
+	<name>Maven JBI Plugin</name>
+	<currentVersion>1.0</currentVersion>
+	<description>JBI Plugin for Maven</description>
+	<shortDescription>JBI Plugin for Maven</shortDescription>
+	<developers>
+		<developer>
+			<name>Philip Dodds</name>
+			<id>pdodds</id>
+			<email>Unity Systems</email>
+		</developer>
+	</developers>
+	<dependencies>
+		<dependency>
+			<groupId>commons-jelly</groupId>
+			<artifactId>commons-jelly-tags-interaction</artifactId>
+			<version>1.0</version>
+		</dependency>
+	</dependencies>
+	<build>
 		<!-- This section is compulsory -->
 		<resources>
 			<resource>

servicemix/tooling/maven-jbi-plugin/src/plugin-resources
project.jsl added at 1.1
diff -N project.jsl
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ project.jsl	18 Aug 2005 21:57:21 -0000	1.1
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<j:whitespace xmlns:j="jelly:core" xmlns:util="jelly:util" xmlns:x="jelly:xml"
+	xmlns:ant="jelly:ant" xmlns="dummy" trim="true">
+<project>
+	<pomVersion>2</pomVersion>
+	<name>${projectName}</name>
+	<id>${projectName}</id>
+	<currentVersion>1.0</currentVersion>
+	<package>org.servicemix.demo</package>
+	<shortDescription>
+		A new JBI component
+	</shortDescription>
+	<description>
+		A new JBI component
+	</description>
+
+	<dependencies>
+		<dependency>
+			<id>servicemix</id>
+			<version>1.0</version>
+			<type>jar</type>
+			<url>http://www.servicemix.org</url>
+		</dependency>
+		<dependency>
+			<groupId>servicemix</groupId>
+			<artifactId>jaxp</artifactId>
+			<version>1.3</version>
+		</dependency>
+		<dependency>
+			<groupId>mx4j</groupId>
+			<artifactId>mx4j-jmx</artifactId>
+			<version>2.1.1</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-logging</groupId>
+			<artifactId>commons-logging</artifactId>
+			<version>1.0.3</version>
+			<url>http://jakarta.apache.org/commons/logging/</url>
+		</dependency>
+		<dependency>
+			<groupId>servicemix</groupId>
+			<artifactId>servicemix-client</artifactId>
+			<version>1.0</version>
+			<properties>
+				<jbi.bundle>true</jbi.bundle>
+			</properties>
+		</dependency>
+	</dependencies>
+	
+	<build>
+		<sourceDirectory>src/main/java</sourceDirectory>
+		<unitTestSourceDirectory>src/test/java</unitTestSourceDirectory>
+	</build>
+</project>
+</j:whitespace>
\ No newline at end of file

servicemix/tooling/maven-jbi-plugin/src/plugin-resources
project.properties added at 1.1
diff -N project.properties
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ project.properties	18 Aug 2005 21:57:21 -0000	1.1
@@ -0,0 +1,5 @@
+#------------------------------------------------------------------
+# J B I   I N S T A L L E R    P R O P E R T I E S
+#------------------------------------------------------------------
+jbi.component.class.name=org.servicemix.client.SpringComponent
+#jbi.bootstrap.class.name=org.servicemix.client.SpringBootstrap
\ No newline at end of file

servicemix/tooling/maven-jbi-plugin/src/plugin-resources
jbi-spring.xml added at 1.1
diff -N jbi-spring.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ jbi-spring.xml	18 Aug 2005 21:57:21 -0000	1.1
@@ -0,0 +1,8 @@
+<beans>
+	<!--  This is going to be where we declare the beans that we want the
+		   SpringComponent container to build -->
+
+	<!-- <bean id="myLoggerExample"
+		class="org.servicemix.demo.LoggerInterface">		
+	</bean> -->
+</beans>
\ No newline at end of file

servicemix/tooling/maven-jbi-plugin/src/plugin-resources
services.xml added at 1.1
diff -N services.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ services.xml	18 Aug 2005 21:57:21 -0000	1.1
@@ -0,0 +1,12 @@
+<!-- This is where we are able to declare the ins and outs of the Service
+ 	  as consumes and provides elements,  the service-names and endpoints
+ 	  will be used to activate the JBI endpoints,  and we can use the 
+ 	  interface-name to determine which one we want to call and also which
+ 	  bean is going to receive the actual JBI exchange -->
+<!-- 
+<services binding-component="false"
+	xmlns:logger="http://tempuri.org/logger.wsdl">
+	<provides interface-name="logger:log"
+		service-name="logger:example"/>
+</services>
+->
\ No newline at end of file
CVSspam 0.2.8



Reply via email to