root/branches/douglm/build/quickstart/run-inoutscheduler.xml

Revision 2311 (checked in by douglm, 4 years ago)

Remove use of <user-home>/bedework.build.properties

Rename deployment/scheduler to deployment/inoutsched

activemq run scrip now copies the activemq config out of the bedework build configuration

Line 
1 <?xml version="1.0"?>
2
3 <!-- Run the bedework in/outbox scheduler 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-inoutscheduler" default="start-inoutscheduler" 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         <!-- The name "bwiosched" should come from the config or as a parameter -->
21   <target name="inoutscheduler.init" depends="run.init">
22     <property name="org.bedework.inoutscheduler.dir"
23               location="${org.bedework.project.bedework}/dist/temp/shellscr/bwiosched" />
24
25     <path id="run.classpath">
26       <fileset dir="${org.bedework.inoutscheduler.dir}/lib">
27          <include name="*.jar"/>
28       </fileset>
29       <pathelement path="${org.bedework.inoutscheduler.dir}/classes"/>
30     </path>
31
32     <pathconvert property="run.txt.classpath"
33                  refid="run.classpath"
34                  targetos="unix"  pathsep=":" />
35
36         <property name="org.bedework.run.class"
37               value="org.bedework.sysevents.scheduler.Scheduler" />
38
39     <property name="org.bedework.run.appname"
40               value="iosched" />
41   </target>
42
43   <!-- =================================================================
44        The "start-inoutscheduler" target
45        ================================================================= -->
46
47   <target name="start-inoutscheduler" depends="inoutscheduler.init"
48           description="starts the inoutscheduler server">
49     <echo message="************************************************************"/>
50     <echo message=" * Starting inoutscheduler"/>
51     <echo message="************************************************************"/>
52
53     <java fork="true" dir="${basedir}"
54           classname="${org.bedework.run.class}">
55       <classpath refid="run.classpath" />
56       <jvmarg value="-Xmx512m" />
57
58       <arg value="-appname"/>
59       <arg value="${org.bedework.run.appname}"/>
60
61       <arg value="start"/>
62     </java>
63   </target>
64 </project>
Note: See TracBrowser for help on using the browser.