Author: jeff.yuchang
Date: 2009-02-18 13:02:22 -0500 (Wed, 18 Feb 2009)
New Revision: 510
Added:
cdl/trunk/install.xml
Modified:
cdl/trunk/Developer.txt
Log:
[SOAG-86] Automate the installing required libraries, haven't tested on windows yet.
Modified: cdl/trunk/Developer.txt
===================================================================
--- cdl/trunk/Developer.txt 2009-02-18 00:48:05 UTC (rev 509)
+++ cdl/trunk/Developer.txt 2009-02-18 18:02:22 UTC (rev 510)
@@ -4,14 +4,13 @@
0. Checked you have installed the Maven 2.0.9 or above.
Otherwise, you can download it from
http://maven.apache.org
1. Download the JBossESB 4.4 from
http://www.jboss.org/jbossesb/downloads/
-2. Install the rosetta.jar into local repository using command like:
- mvn install:install-file -DgroupId=org.jboss.jbossesb -DartifactId=rosetta
-Dversion=4.3 -Dpackaging=jar -Dfile=path/to/jbossesb-rosetta.jar
-3. Install the config-model.jar into local repository using command like:
- mvn install:install-file -DgroupId=org.jboss.jbossesb -DartifactId=config-model
-Dversion=1.0.1 -Dpackaging=jar -Dfile=path/to/jbossesb-config-model-1.0. 1.jar
+2. Run the following command to install the required libraries into local maven
repository.
+ ant -f install.xml
Setting up in IDE
---------------------------
1. Setup in Eclipse
- run: mvn eclipse:eclipse
+ run the following command to generate the eclipse specific environment:
+ mvn eclipse:eclipse
Added: cdl/trunk/install.xml
===================================================================
--- cdl/trunk/install.xml (rev 0)
+++ cdl/trunk/install.xml 2009-02-18 18:02:22 UTC (rev 510)
@@ -0,0 +1,40 @@
+<project name="Overlord-CDL" basedir="."
default="install" >
+
+ <property name="libraries.dir"
value="${basedir}/distribution/libraries" />
+ <property name="shell" value="/bin/sh" />
+
+ <target name="init">
+ <condition property="shell" value="cmd.exe">
+ <os family="Windows"/>
+ </condition>
+
+ <condition property="shell" value="bin/sh">
+ <os family="UNIX"/>
+ </condition>
+ </target>
+
+ <target name="install" depends="init">
+ <echo message="Install the libraries into the local maven repo"
/>
+ <exec executable="${shell}">
+ <arg line="-c 'mvn install:install-file
-DgroupId=org.jboss.jbossesb -DartifactId=rosetta -Dversion=4.3 -Dpackaging=jar
-Dfile=${libraries.dir}/rosetta-4.3.jar'" />
+ </exec>
+ <exec executable="${shell}">
+ <arg line="-c 'mvn install:install-file -DgroupId=org.jboss.jbossesb
-DartifactId=config-model -Dversion=1.0.1 -Dpackaging=jar
-Dfile=${libraries.dir}/config-model-1.0.1.jar'" />
+ </exec>
+ <exec executable="${shell}">
+ <arg line="-c 'mvn install:install-file -DgroupId=org.pi4soa
-DartifactId=common -Dversion=2.0 -Dpackaging=jar
-Dfile=${libraries.dir}/pi4soa-common-2.0.jar'" />
+ </exec>
+ <exec executable="${shell}">
+ <arg line="-c 'mvn install:install-file -DgroupId=org.pi4soa
-DartifactId=cdl -Dversion=2.0 -Dpackaging=jar
-Dfile=${libraries.dir}/pi4soa-cdl-2.0.jar'" />
+ </exec>
+ <exec executable="${shell}">
+ <arg line="-c 'mvn install:install-file -DgroupId=org.pi4soa
-DartifactId=service -Dversion=2.0 -Dpackaging=jar
-Dfile=${libraries.dir}/pi4soa-service-2.0.jar'" />
+ </exec>
+ <exec executable="${shell}">
+ <arg line="-c 'mvn install:install-file -DgroupId=org.eclipse.emf
-DartifactId=common -Dversion=2.3.0 -Dpackaging=jar
-Dfile=${libraries.dir}/eclipse-emf-common-2.3.0.jar'" />
+ </exec>
+ <exec executable="${shell}">
+ <arg line="-c 'mvn install:install-file -DgroupId=org.eclipse.emf
-DartifactId=ecore -Dversion=2.3.1 -Dpackaging=jar
-Dfile=${libraries.dir}/eclipse-emf-common-2.3.0.jar'" />
+ </exec>
+ </target>
+</project>