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

Revision 1914 (checked in by douglm, 5 years ago)

Break up the buildfile into a few chunks, hsql, tomcat and new directory stuff.

Add more code to manipulate an ldap directory - some code to initialise a new directory and add the initial ous and accounts.

Line 
1 <?xml version="1.0"?>
2
3 <!-- Run hsqldb 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-dir" default="dirstart" 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
17     <property name="org.bedework.directory.dir"
18               location="${org.bedework.project.bedework}/../apacheds-1.5.3.fixed" />
19   </target>
20
21   <!-- =================================================================
22        The "hsqldb" target starts the hsqldb server
23        ================================================================= -->
24
25   <target name="dirstart" depends="run.init"
26           description="starts the directory server">
27     <echo message="Starting directory"/>
28     <java fork="true" dir="${org.bedework.directory.dir}"
29           classname="org.apache.directory.server.UberjarMain">
30       <classpath>
31         <fileset dir="${org.bedework.directory.dir}/lib">
32           <include name="**/*.jar"/>
33         </fileset>
34       </classpath>
35       <jvmarg value="-Dlog4j.configuration=file:conf/log4j.properties" />
36       <jvmarg value="-Dapacheds.log.dir=${org.bedework.directory.dir}/logs" />
37       <arg value="conf/server.xml"/>
38     </java>
39   </target>
40
41   <!-- =================================================================
42        The "dstool" target runs the directory server tool which
43        allows dump/restore and configuration.
44        ================================================================= -->
45
46   <target name="dstool" depends="run.init"
47           description="Runs the directory tool">
48     <echo message="Starting dstool"/>
49     <java fork="true" dir="${org.bedework.directory.dir}"
50           jar="${org.bedework.directory.dir}/bin/apacheds-tools.jar">
51       <arg value="-i ${org.bedework.directory.dir}"/>
52       <arg value="--configuration" />
53       <arg value="--help" />
54     </java>
55   </target>
56
57   <!-- =================================================================
58        The "dirclient" target runs the directory server client which
59        provides a gui interface to the running directory.
60        ================================================================= -->
61
62   <target name="dirclient" depends="run.init"
63           description="Runs the directory client">
64     <echo message="Starting hsqldb DatabaseManager"/>
65     <echo message="Select type: HSQL Database Engine Server"/>
66     <echo message="Set the URL to jdbc:hsqldb:hsql://localhost:8887"/>
67     <java fork="true" dir="${basedir}"
68           classname="org.hsqldb.util.DatabaseManager">
69       <classpath>
70         <pathelement path="${org.bedework.hsqldb.dir}/lib/hsqldb.jar"/>
71       </classpath>
72     </java>
73   </target>
74 </project>
Note: See TracBrowser for help on using the browser.