incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [39/50] [abbrv] git commit: ant targets to run usage server
Date Tue, 24 Jul 2012 21:20:36 GMT
ant targets to run usage server


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/8a3a788d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8a3a788d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8a3a788d

Branch: refs/heads/rbd
Commit: 8a3a788d720a3d491034b58ff02d1a919355a7bb
Parents: e874fdb
Author: kishan <kishan@cloud.com>
Authored: Mon Jul 16 15:00:13 2012 -0700
Committer: kishan <kishan@cloud.com>
Committed: Mon Jul 16 15:00:37 2012 -0700

----------------------------------------------------------------------
 build/build-usage.xml |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8a3a788d/build/build-usage.xml
----------------------------------------------------------------------
diff --git a/build/build-usage.xml b/build/build-usage.xml
index 61b6a31..264f27f 100644
--- a/build/build-usage.xml
+++ b/build/build-usage.xml
@@ -29,7 +29,9 @@
   <import file="${oss.build.dir}/build-cloud.xml" optional="false"/>
   <property name="usage.dir" location="${base.dir}/usage" />
   <property name="usage.dist.dir" location="${dist.dir}/usage" />
-
+	<!-- ToDo: get actual PID -->	
+  <property name="pid" value="4567"/>
+	 
 <!-- ===================== Usage.Jar ===================== -->
   <path id="usage.classpath">
     <path refid="deps.classpath" /> 
@@ -55,4 +57,19 @@
     </copy>
   </target>
 
+  <target name="run-usage" depends="build-usage">
+    <java classname="com.cloud.usage.UsageServer" fork="true">
+        <classpath refid="usage.classpath"/>
+    	<jvmarg value="-Dpid=${pid}"/>
+    </java>
+  </target>	
+	
+    <target name="debug-usage" depends="build-usage">
+    	<java classname="com.cloud.usage.UsageServer" fork="true">
+	        <classpath refid="usage.classpath"/>
+	        <jvmarg value="-Dpid=${pid}"/>
+    		<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8788,server=y,suspend=n"/>
+	    </java>
+    </target> 
+	    	
 </project>


Mime
View raw message