root/trunk/build/dirTools.xml

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

Add caladdr parameter to adduser

Line 
1 <?xml version="1.0"?>
2
3 <!-- ===================================================================
4      Load the deployment configuration from the properties file. We also load
5      the run time options and define some properties based on some of the
6      values found there
7      =================================================================== -->
8 <project name="dirTools" basedir="." default="">
9
10   <!-- =================================================================
11        Build and run the directory tools
12        ================================================================= -->
13
14   <target name="initDir" depends="init"
15           description="Build and run directory init">
16     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
17               target="initDir"
18               return="org.bedework.directory.init.status" >
19       <propertyset>
20         <propertyref prefix="org.bedework.directory."/>
21       </propertyset>
22       <property name="org.bedework.libcache.dir"
23                 location="${org.bedework.project.bedework}/libcache"/>
24     </antfetch>
25   </target>
26
27   <target name="initDirForQuickstart" depends="init.build,build.rpiutil"
28           description="Build and run directory tool to initialise a quickstart system">
29     <antfetch antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
30               target="initDirForQuickstart"
31               return="org.bedework.directory.init.status" >
32       <propertyset>
33         <propertyref prefix="org.bedework.directory."/>
34       </propertyset>
35       <property name="org.bedework.libcache.dir"
36                 location="${org.bedework.project.bedework}/libcache"/>
37     </antfetch>
38   </target>
39
40   <target name="addUser" depends="init"
41           description="Run directory tools to add a user">
42           <!--
43     <loadDeployConfig />
44  -->
45     <property name="app.dest.classes"
46               location="${dist.home}/temp/dirTool/classes" />
47
48     <delete dir="${app.dest.classes}" />
49     <mkdir dir="${app.dest.classes}" />
50
51     <path id="run.classpath">
52       <fileset dir="${org.bedework.project.bedework}/applib">
53          <include name="*.jar"/>
54       </fileset>
55       <pathelement location="${org.bedework.project.bwtools}/resources" />
56       <pathelement location="${app.dest.classes}" />
57     </path>
58
59     <copy todir="${app.dest.classes}"
60           file="${org.bedework.project.bwtools}/resources/log4j.xml" />
61
62     <pathconvert property="run.txt.classpath"
63                  refid="run.classpath"
64                  targetos="unix"  pathsep=":" />
65
66     <java classname="org.bedework.tools.directory.DirTool"
67           fork="true"
68           failonerror="false"
69           resultproperty="org.bedework.cmdutil.status" >
70       <classpath refid="run.classpath" />
71       <arg value="-addUser" />
72       <arg value="${org.bedework.directory.account}" />
73       <arg value="${org.bedework.directory.firstname}" />
74       <arg value="${org.bedework.directory.lastname}" />
75       <arg value="${org.bedework.directory.caladdr}" />
76       <arg value="${org.bedework.directory.password}" />
77       <!-- <jvmarg value="-agentlib:yjpagent" /> -->
78     </java>
79   </target>
80
81   <target name="addGroup" depends="init.build,build.rpiutil"
82           description="Build and run directory tools to add a group">
83     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
84            target="addGroup" >
85       <propertyset>
86         <propertyref prefix="org.bedework.directory."/>
87       </propertyset>
88       <property name="org.bedework.libcache.dir"
89                 location="${org.bedework.project.bedework}/libcache"/>
90     </ant>
91   </target>
92
93   <target name="addGroupMember" depends="init.build,build.rpiutil"
94           description="Build and run directory tools to add a group member">
95     <ant antfile="${org.bedework.project.bwtools}/build.xml" inheritall="false"
96            target="addGroupMember" >
97       <propertyset>
98         <propertyref prefix="org.bedework.directory."/>
99       </propertyset>
100       <property name="org.bedework.libcache.dir"
101                 location="${org.bedework.project.bedework}/libcache"/>
102     </ant>
103   </target>
104 </project>
Note: See TracBrowser for help on using the browser.