Added deploy task,updated readme file

git-svn-id: https://svn.apache.org/repos/asf/webservices/savan/trunk/java@578550 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/modules/samples/eventing/build.xml b/modules/samples/eventing/build.xml
index fde43ed..686570f 100644
--- a/modules/samples/eventing/build.xml
+++ b/modules/samples/eventing/build.xml
@@ -1,4 +1,5 @@
 <project default="build.sample">
+	<property name="axis2.home" value="/mnt/win_d/projects/axis/Axis2-1.3/axis2-1.3" />
 	
 	<target name="build.sample">
 		<property name="axis2.home" value="/mnt/win_d/projects/axis/Axis2-1.3/axis2-1.3" />
@@ -87,4 +88,16 @@
 		<delete dir="build"/>
 	</target>
 
+	<target name="deploy">
+		<!-- deploy savan module to axis2 -->
+		<copy todir="${axis2.home}/repository/modules">
+			<fileset dir="../../mar/target" includes="savan-*.mar"/>
+		</copy>
+		
+		<!-- deploy samples -->		
+		<copy todir="${axis2.home}/repository/services">
+			<fileset dir="build" includes="*.aar"/>
+		</copy>
+	</target>
+	
 </project>
\ No newline at end of file
diff --git a/modules/samples/eventing/readme.txt b/modules/samples/eventing/readme.txt
index fd023ba..5b6f8f5 100644
--- a/modules/samples/eventing/readme.txt
+++ b/modules/samples/eventing/readme.txt
@@ -11,10 +11,13 @@
 --------
 1. Run 'ant clean'
 
+To deploy
+---------
+1. Run 'ant deploy' 
+(This will copy sample services to ${axis2.home}/repository/services & savan module into ${axis2.home}/repository/modules)
 
 To run
 ------
-1. Start a Axis2 server.
-2. Deploy savan and addressing modules.
-3. Deploy the three services that were created in the 'build' folder.
-4. Run the 'samples.eventing.Client' class, you can pass the repository with a '-r' parameter and the server port with a '-p' parameter.
+1. Make sure addressing module is inside ${axis2.home}/repository/modules
+2. Start Axis2 server.
+3. Run the 'samples.eventing.Client' class, you can pass the repository with a '-r' parameter and the server port with a '-p' parameter.