root/trunk/build/quickstart/run-indexer.xml

Revision 2540 (checked in by douglm, 3 years ago)

Handle entity and collection deletion in indexer

Line 
1 <?xml version="1.0"?>
2
3 <!-- Run the bedework indexer 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-indexer" default="start-indexer" 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="indexer.init" depends="run.init">
21     <property name="org.bedework.indexer.dir"
22               location="${org.bedework.project.bedework}/dist/temp/shellscr/indexer" />
23
24     <path id="run.classpath">
25       <fileset dir="${org.bedework.indexer.dir}/lib">
26          <include name="*.jar"/>
27       </fileset>
28       <pathelement path="${org.bedework.indexer.dir}/classes"/>
29       <pathelement location="${org.bedework.indexer.dir}/resources"/>
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.indexer.BwIndexApp" />
38
39     <property name="org.bedework.run.appname"
40               value="indexer" />
41   </target>
42
43   <!-- =================================================================
44        The "start-indexer" target starts the indexer
45        ================================================================= -->
46
47   <target name="start-indexer" depends="indexer.init"
48           description="starts the indexer">
49     <echo message="************************************************************"/>
50     <echo message=" * Starting indexer"/>
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="-listen"/>
62
63       <arg value="-user"/>
64       <arg value="admin"/>
65     </java>
66   </target>
67 </project>
Note: See TracBrowser for help on using the browser.