| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- Run the bedework logger service 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 |
For the moment run this out of the dist directory |
|---|
| 9 |
|
|---|
| 10 |
Authors: Mike Douglass douglm - rpi.edu |
|---|
| 11 |
--> |
|---|
| 12 |
|
|---|
| 13 |
<project name="quickstart-run-logger" default="start-logger" basedir="."> |
|---|
| 14 |
<!-- This target normally overriden by the importing build.xml --> |
|---|
| 15 |
<target name="run.init"> |
|---|
| 16 |
<property name="org.bedework.project.bedework" |
|---|
| 17 |
location="${basedir}/bedework" /> |
|---|
| 18 |
</target> |
|---|
| 19 |
|
|---|
| 20 |
<target name="logger.init" depends="run.init"> |
|---|
| 21 |
<property name="org.bedework.logger.dir" |
|---|
| 22 |
location="${org.bedework.project.bedework}/dist/temp/shellscr/bwsysevlog" /> |
|---|
| 23 |
|
|---|
| 24 |
<path id="run.classpath"> |
|---|
| 25 |
<fileset dir="${org.bedework.logger.dir}/lib"> |
|---|
| 26 |
<include name="*.jar"/> |
|---|
| 27 |
</fileset> |
|---|
| 28 |
<pathelement path="${org.bedework.logger.dir}/classes"/> |
|---|
| 29 |
</path> |
|---|
| 30 |
|
|---|
| 31 |
<pathconvert property="run.txt.classpath" |
|---|
| 32 |
refid="run.classpath" |
|---|
| 33 |
targetos="unix" pathsep=":" /> |
|---|
| 34 |
|
|---|
| 35 |
<property name="org.bedework.run.class" |
|---|
| 36 |
value="org.bedework.sysevents.listeners.LogListener" /> |
|---|
| 37 |
|
|---|
| 38 |
<property name="org.bedework.run.appname" |
|---|
| 39 |
value="srvevlog" /> |
|---|
| 40 |
</target> |
|---|
| 41 |
|
|---|
| 42 |
<!-- ================================================================= |
|---|
| 43 |
The "activemq" target starts the activemq server |
|---|
| 44 |
================================================================= --> |
|---|
| 45 |
|
|---|
| 46 |
<target name="start-logger" depends="logger.init" |
|---|
| 47 |
description="starts the logger server"> |
|---|
| 48 |
<echo message="************************************************************"/> |
|---|
| 49 |
<echo message=" * Starting logger"/> |
|---|
| 50 |
<echo message="************************************************************"/> |
|---|
| 51 |
|
|---|
| 52 |
<java fork="true" dir="${basedir}" |
|---|
| 53 |
classname="${org.bedework.run.class}"> |
|---|
| 54 |
<classpath refid="run.classpath" /> |
|---|
| 55 |
<jvmarg value="-Xmx512m" /> |
|---|
| 56 |
|
|---|
| 57 |
<arg value="-appname"/> |
|---|
| 58 |
<arg value="${org.bedework.run.appname}"/> |
|---|
| 59 |
</java> |
|---|
| 60 |
</target> |
|---|
| 61 |
</project> |
|---|