You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ki...@apache.org on 2012/07/17 00:01:01 UTC
git commit: ant targets to run usage server
Updated Branches:
refs/heads/master e874fdb24 -> 8a3a788d7
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/master
Commit: 8a3a788d720a3d491034b58ff02d1a919355a7bb
Parents: e874fdb
Author: kishan <ki...@cloud.com>
Authored: Mon Jul 16 15:00:13 2012 -0700
Committer: kishan <ki...@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>