mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ant targets to run usage server
This commit is contained in:
parent
e874fdb24c
commit
8a3a788d72
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user