[jboss-cvs] JBossAS SVN: r82765 - projects/ejb3/trunk/docs/tutorial/common.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jan 12 07:01:35 EST 2009
Author: jaikiran
Date: 2009-01-12 07:01:35 -0500 (Mon, 12 Jan 2009)
New Revision: 82765
Modified:
projects/ejb3/trunk/docs/tutorial/common/pom.xml
Log:
(1) Support to pass command line arguments to the EJB3 tutorial client(s) (2) Remove the redundant classpath reference to /home/jpai/jboss-5.0.0.GA/client/jbossall-client.jar from the run-tutorial execution
Modified: projects/ejb3/trunk/docs/tutorial/common/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/common/pom.xml 2009-01-12 11:35:36 UTC (rev 82764)
+++ projects/ejb3/trunk/docs/tutorial/common/pom.xml 2009-01-12 12:01:35 UTC (rev 82765)
@@ -11,6 +11,14 @@
will be the same as they appear in this property value. Each tutorial can override this value. The default
deployable is the jar file that the tutorial generates. -->
<jboss.ejb3.tutorial.deployables>${pom.build.directory}/${pom.artifactId}.${pom.packaging}</jboss.ejb3.tutorial.deployables>
+
+ <!-- A space-delimited list of command line arguments to be passed to the ${ejb3.tutorial.client}
+ Individual tutorial can provide their own value for this property. By default its empty.
+ Note that, since this is a space-delimited list, we won't support (as of now) argument value having a space
+ (We don't have a use-case to support this, right now, so let's keep this simple)
+ -->
+ <jboss.ejb3.tutorial.client.args></jboss.ejb3.tutorial.client.args>
+
<!-- Versions -->
<version.maven-jboss-as-control-plugin>0.1.1-SNAPSHOT</version.maven-jboss-as-control-plugin>
<version.org.jboss.jbossas_jboss-as-client>5.0.0.GA</version.org.jboss.jbossas_jboss-as-client>
@@ -115,17 +123,15 @@
<tasks>
<!-- The classpath for the tutorial client -->
<path id="ejb3.tutorial.classpath">
- <!-- Only the jbossall-client.jar should ideally be sufficient -->
- <fileset dir="${jboss.home}/client">
- <include name="**/jbossall-client.jar"/>
- </fileset>
- <pathelement location="${build.outputDirectory}"/>
+ <pathelement location="${build.outputDirectory}"/>
</path>
<echo message="*********************************** JBoss EJB3 Tutorials ***********************************" />
- <echo message="**** Running ${ejb3.tutorial.client}" />
+ <echo message="**** Running ${ejb3.tutorial.client} ${jboss.ejb3.tutorial.client.args}" />
<java classname="${ejb3.tutorial.client}" fork="yes" dir="." failonerror="true">
<classpath refid="ejb3.tutorial.classpath"/>
<classpath refid="maven.runtime.classpath"/>
+ <!-- Command line argument(s) -->
+ <arg line="${jboss.ejb3.tutorial.client.args}"/>
</java>
<echo message="********************************************************************************************" />
</tasks>
More information about the jboss-cvs-commits
mailing list