| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- Run activemq for the bedework Calendar quickstart. |
|---|
| 4 |
|
|---|
| 5 |
This is imported by the quickstart build.xml ensuring all changes to this file |
|---|
| 6 |
appear in the repository. |
|---|
| 7 |
|
|---|
| 8 |
Authors: Mike Douglass douglm - rpi.edu |
|---|
| 9 |
--> |
|---|
| 10 |
|
|---|
| 11 |
<project name="quickstart-run-activemq" default="activemq" basedir="."> |
|---|
| 12 |
<!-- This target normally overriden by the importing build.xml --> |
|---|
| 13 |
<target name="run.init"> |
|---|
| 14 |
<property name="org.bedework.project.bedework" |
|---|
| 15 |
location="${basedir}/bedework" /> |
|---|
| 16 |
</target> |
|---|
| 17 |
|
|---|
| 18 |
<target name="activemq.init" depends="run.init"> |
|---|
| 19 |
<property name="org.bedework.activemq.dir" |
|---|
| 20 |
location="${org.bedework.project.bedework}/../apache-activemq-5.2.0" /> |
|---|
| 21 |
|
|---|
| 22 |
<!-- Copy our deployment into activemq configuration directory --> |
|---|
| 23 |
<if> |
|---|
| 24 |
<available file="${org.bedework.config.home}/activemq.xml" /> |
|---|
| 25 |
<then> |
|---|
| 26 |
<copy todir="${org.bedework.activemq.dir}/conf" |
|---|
| 27 |
file="${org.bedework.config.home}/activemq.xml" /> |
|---|
| 28 |
</then> |
|---|
| 29 |
</if> |
|---|
| 30 |
|
|---|
| 31 |
<path id="run.classpath"> |
|---|
| 32 |
<fileset dir="${org.bedework.activemq.dir}/lib"> |
|---|
| 33 |
<include name="*.jar"/> |
|---|
| 34 |
</fileset> |
|---|
| 35 |
<pathelement path="${org.bedework.activemq.dir}/conf"/> |
|---|
| 36 |
</path> |
|---|
| 37 |
|
|---|
| 38 |
<pathconvert property="run.txt.classpath" |
|---|
| 39 |
refid="run.classpath" |
|---|
| 40 |
targetos="unix" pathsep=":" /> |
|---|
| 41 |
</target> |
|---|
| 42 |
|
|---|
| 43 |
<!-- ================================================================= |
|---|
| 44 |
The "activemq" target starts the activemq server |
|---|
| 45 |
================================================================= --> |
|---|
| 46 |
|
|---|
| 47 |
<target name="activemq" depends="activemq.init" |
|---|
| 48 |
description="starts the activemq server"> |
|---|
| 49 |
<echo message="************************************************************"/> |
|---|
| 50 |
<echo message=" * Starting activemq"/> |
|---|
| 51 |
<echo message="************************************************************"/> |
|---|
| 52 |
|
|---|
| 53 |
<java fork="true" dir="${basedir}" |
|---|
| 54 |
jar="${org.bedework.activemq.dir}/bin/run.jar"> |
|---|
| 55 |
<classpath refid="run.classpath" /> |
|---|
| 56 |
<jvmarg value="-Xmx512m" /> |
|---|
| 57 |
<jvmarg value="-Dorg.apache.activemq.UseDedicatedTaskRunner=true"/> |
|---|
| 58 |
|
|---|
| 59 |
<jvmarg value="-Dactivemq.classpath=${run.txt.classpath}"/> |
|---|
| 60 |
<jvmarg value="-Dactivemq.home=${org.bedework.activemq.dir}"/> |
|---|
| 61 |
<jvmarg value="-Dactivemq.base=${org.bedework.activemq.dir}"/> |
|---|
| 62 |
|
|---|
| 63 |
<arg value="start"/> |
|---|
| 64 |
</java> |
|---|
| 65 |
</target> |
|---|
| 66 |
|
|---|
| 67 |
<target name="activemq-jmx" depends="activemq.init" |
|---|
| 68 |
description="starts the activemq server"> |
|---|
| 69 |
<echo message="************************************************************"/> |
|---|
| 70 |
<echo message=" * Starting activemq"/> |
|---|
| 71 |
<echo message="************************************************************"/> |
|---|
| 72 |
|
|---|
| 73 |
<java fork="true" dir="${basedir}" |
|---|
| 74 |
jar="${org.bedework.activemq.dir}/bin/run.jar"> |
|---|
| 75 |
<classpath refid="run.classpath" /> |
|---|
| 76 |
<jvmarg value="-Xmx512m" /> |
|---|
| 77 |
<jvmarg value="-Dorg.apache.activemq.UseDedicatedTaskRunner=true"/> |
|---|
| 78 |
|
|---|
| 79 |
<jvmarg value="-Dcom.sun.management.jmxremote"/> |
|---|
| 80 |
<!-- |
|---|
| 81 |
<jvmarg value="-Dcom.sun.management.jmxremote.port=1099"/> |
|---|
| 82 |
<jvmarg value="-Dcom.sun.management.jmxremote.authenticate=false"/> |
|---|
| 83 |
<jvmarg value="-Dcom.sun.management.jmxremote.ssl=false"/> |
|---|
| 84 |
--> |
|---|
| 85 |
|
|---|
| 86 |
<jvmarg value="-Dactivemq.classpath=${run.txt.classpath}"/> |
|---|
| 87 |
<jvmarg value="-Dactivemq.home=${org.bedework.activemq.dir}"/> |
|---|
| 88 |
<jvmarg value="-Dactivemq.base=${org.bedework.activemq.dir}"/> |
|---|
| 89 |
|
|---|
| 90 |
<arg value="start"/> |
|---|
| 91 |
</java> |
|---|
| 92 |
</target> |
|---|
| 93 |
</project> |
|---|