root/releases/bedework-3.8/build/quickstart/build.xml

Revision 3462 (checked in by douglm, 1 year ago)

A whole bunch of changes that somehow got missed

Line 
1 <?xml version="1.0"?>
2
3 <!-- This is the ant build file for the bedework Calendar quickstart.
4
5      It 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-build-file" default="deploy" basedir=".">
12   <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
13
14   <property environment="env"/>
15
16   <dirname property="bedework.quickstart.basedir"
17                file="${ant.file.quickstart-build-file}"/>
18
19   <import file="${bedework.quickstart.basedir}/run-dir.xml" />
20   <import file="${bedework.quickstart.basedir}/install.xml" />
21
22   <import file="${bedework.quickstart.basedir}/../buildTools/deftasks.xml"/>
23
24   <property name="bedework.home"
25             location="${env.QUICKSTART_HOME}/bedework" />
26
27   <deftasks/>
28
29  <target name="init" >
30    <dirname property="quickstart.dir" file="${ant.file}"/>
31
32    <property name="org.bedework.project.bedework"
33              location="${basedir}/bedework" />
34
35    <loadDeployConfig />
36    
37    <property name="org.bedework.config.base"
38              location="${org.bedework.project.bedework}/config" />
39
40    <property name="bedework.build.file"
41              location="${basedir}/bedework/build.xml" />
42
43    <!-- Unfortunately it sits on top of everything
44    <splash imageurl="file://${org.bedework.project.bedework}/docs/icons/bedeworkLogo.gif"/>
45    -->
46  </target>
47
48   <target name="README" depends="init"
49           description="Describe targets and their usage">
50     <loadfile property="org.bedework.README" srcFile="${org.bedework.calendar.dir}/docs/README"/>
51     <echo message="${org.bedework.README}" />
52   </target>
53
54   <target name="usage" depends="init"
55           description="Describe targets and their usage">
56     <echo level="info" message="As distributed the package should be ready to go."/>
57     <echo level="info" message=""/>
58     <echo level="info" message="cd into the quickstart then do"/>
59     <echo level="info" message="    ./startjboss"/>
60     <echo level="info" message=""/>
61     <echo level="info" message="Once jboss is running you should be able to go to a"/>
62     <echo level="info" message="browser and connect to"/>
63     <echo level="info" message="    http://localhost:8080/bedework"/>
64     <echo level="info" message="and follow the instructions."/>
65     <echo level="info" message=""/>
66     <echo level="info" message="To build and deploy bedework do"/>
67     <echo level="info" message="    ./bw -quickstart deploy"/>
68     <echo level="info" message="which does a build and deploy of all calendar components"/>
69     <echo level="info" message=""/>
70     <echo level="info" message="See documentation in the docs directory or on bedework.org"/>
71     <echo level="info" message="for instructions on creating a locally configured calendar application"/>
72     <echo level="info" message=""/>
73   </target>
74
75   <target name="run.init" depends="init" >
76   </target>
77
78   <!-- =================================================================
79        The "build" target builds the jar files
80        ================================================================= -->
81
82   <target name="build" depends="init"
83           description="builds the jars">
84     <ant antfile="${bedework.build.file}" inheritrefs="true"
85            target="build" />
86
87     <tstamp>
88       <format property="deploydebug.time" pattern="MM/dd/yyyy HH:mm:ss"/>
89     </tstamp>
90
91     <echo message="* ============== finished at ${deploydebug.time}" />
92   </target>
93
94   <target name="clean.build" depends="clean"
95           description="cleans then builds the jars">
96     <ant antfile="${bedework.build.file}" inheritrefs="true"
97            target="clean.build" />
98
99     <tstamp>
100       <format property="deploydebug.time" pattern="MM/dd/yyyy HH:mm:ss"/>
101     </tstamp>
102
103     <echo message="* ============== finished at ${deploydebug.time}" />
104   </target>
105
106   <!-- =================================================================
107        "deploylog4j" target
108        ================================================================= -->
109
110   <target name="deploylog4j" depends="init"
111           description="Copy the log4j config into the appserver">
112     <copy tofile="${org.bedework.log4j.config}"
113           file="${org.bedework.config.logging}"
114             overwrite="true" />
115   </target>
116
117   <!-- =================================================================
118        The "deploy" target builds and deploys the applications
119        ================================================================= -->
120
121   <target name="deploy" depends="init"
122           description="builds and deploys the applications">
123     <ant antfile="${bedework.build.file}" inheritrefs="true"
124            target="deploy" />
125
126     <tstamp>
127       <format property="deploydebug.time" pattern="MM/dd/yyyy HH:mm:ss"/>
128     </tstamp>
129
130     <echo message="* ============== finished at ${deploydebug.time}" />
131   </target>
132
133   <!-- =================================================================
134        The "clean.deploy" target cleans, builds and deploys the applications
135        ================================================================= -->
136
137   <target name="clean" depends="init"
138           description="Remove all generated files.">
139     <ant antfile="${bedework.build.file}" inheritrefs="true"
140            target="clean" />
141   </target>
142
143   <target name="quickstart-clean" depends="init"
144           description="partial clean up for quickstart.">
145     <ant antfile="${bedework.build.file}" inheritrefs="true"
146            target="quickstart-clean" />
147
148     <tstamp>
149       <format property="deploydebug.time" pattern="MM/dd/yyyy HH:mm:ss"/>
150     </tstamp>
151
152     <echo message="* ============== finished at ${deploydebug.time}" />
153   </target>
154
155   <target name="clean.deploy" depends="init"
156           description="builds and deploys the applications">
157     <ant antfile="${bedework.build.file}" inheritrefs="true"
158            target="clean.deploy" />
159
160     <tstamp>
161       <format property="deploydebug.time" pattern="MM/dd/yyyy HH:mm:ss"/>
162     </tstamp>
163
164     <echo message="* ============== finished at ${deploydebug.time}" />
165   </target>
166
167   <!-- =================================================================
168        The "build.configured" target builds configured applications
169        ================================================================= -->
170
171   <target name="build.configured" depends="init"
172           description="Build configured applications" >
173     <ant antfile="${bedework.build.file}" inheritrefs="true"
174            target="build.configured" />
175   </target>
176
177   <target name="clean.build.configured" depends="init"
178           description="Build configured applications" >
179     <ant antfile="${bedework.build.file}" inheritrefs="true"
180            target="clean.build.configured" />
181   </target>
182
183   <!-- =================================================================
184        Build and run the cmdline utility
185        ================================================================= -->
186
187   <target name="cmdutil" depends="init"
188           description="run the cmdline utility">
189     <antfetch antfile="${bedework.build.file}" inheritall="true"
190               target="cmdutil"
191               return="org.bedework.cmdutil.status" >
192     </antfetch>
193   </target>
194
195   <!-- =================================================================
196        The "javadoc" target builds javadocs for all projects
197        ================================================================= -->
198
199   <target name="javadoc" depends="init"
200           description="Build javadocs" >
201     <ant antfile="${bedework.build.file}" inheritrefs="true"
202          target="javadoc" />
203   </target>
204
205   <!-- =================================================================
206        The "run.test" target builds and runs tests
207        ================================================================= -->
208
209   <target name="run.test" depends="init"
210           description="builds and runs the tests">
211     <ant antfile="${bedework.build.file}" inheritrefs="true"
212            target="run.test" />
213   </target>
214 </project>
Note: See TracBrowser for help on using the browser.