root/trunk/build/quickstart/build.xml

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

Major reorganization of the build process mostly affecting handling of portal builds.

Removed portal specific directories from teh deployment directory.

Removed portal sepcific code from buildwar.xml and added new portal specific files to be imported. These are in a section of teh bwbuild config directory.

All portal customization is now part of building the war file.

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="usage" basedir=".">
12   <property environment="env"/>
13
14   <dirname property="bedework.quickstart.basedir" file="${ant.file.quickstart-build-file}"/>
15
16   <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
17
18   <import file="${bedework.quickstart.basedir}/run-hsqldb.xml" />
19   <import file="${bedework.quickstart.basedir}/run-tomcat.xml" />
20   <import file="${bedework.quickstart.basedir}/run-dir.xml" />
21
22   <target name="README" depends="init"
23           description="Describe targets and their usage">
24     <loadfile property="org.bedework.README" srcFile="${org.bedework.calendar.dir}/docs/README"/>
25     <echo message="${org.bedework.README}" />
26   </target>
27
28   <echo message="Load user properties from ${org.bedework.user.build.properties}" />
29
30   <!-- Load user property definition overrides -->
31   <property file="${org.bedework.user.build.properties}" />
32
33   <!-- This may have defined the config properties location. Load that now to get overrides
34   <property file="${org.bedework.config.properties}" />-->
35
36   <import file="${bedework.quickstart.basedir}/../loadDeployConfig.xml"/>
37
38   <target name="usage" depends="init"
39           description="Describe targets and their usage">
40     <echo message="As distributed the package should be ready to go."/>
41     <echo message="Ensure ant is on your path, (a version is in the" />
42     <echo message="package)"/>
43     <echo message=""/>
44     <echo message="First in one window do"/>
45     <echo message="    ant hsqldb"/>
46     <echo message="This will start the hsqldb server ready for the "/>
47     <echo message="application."/>
48     <echo message=""/>
49     <echo message="In another window do"/>
50     <echo message="    ant tomcatstart"/>
51     <echo message=""/>
52     <echo message="Once tomcat is running you should be able to go to a"/>
53     <echo message="browser and connect to"/>
54     <echo message="    http://localhost:8080/bedework"/>
55     <echo message="and follow the instructions."/>
56     <echo message=""/>
57     <echo message="To build the calendar do"/>
58     <echo message="    ant deploy    or "/>
59     <echo message="    ant deploy.debug "/>
60     <echo message="which does a build and deploy of all components"/>
61     <echo message=""/>
62     <echo message="To rebuild the calendar do"/>
63     <echo message="    ant clean.deploy    or "/>
64     <echo message="    ant clean.deploy.debug "/>
65     <echo message="which does a clean, build and deploy of all components"/>
66     <echo message=""/>
67     <echo message="See documentation in the docs directory or on bedework.org"/>
68     <echo message="for instructions on creating a locally configured calendar application"/>
69     <echo message=""/>
70   </target>
71
72    <!-- The only properties set below should be those directly used to
73         invoke the targets below, in this file.
74         Do not set properties here for tasks invoked in other build
75         files.  Instead, make sure the targets work in calendar/build.xml,
76         then invoke ant on the task in calendar/build.xml.
77
78         For an example, of invoking ant on another build file,
79         see the deploy target, below.
80      -->
81   <target name="init" >
82     <dirname property="quickstart.dir" file="${ant.file}"/>
83
84     <property name="org.bedework.project.bedework"
85               location="${basedir}/bedework" />
86
87     <property name="org.bedework.config.base"
88               location="${org.bedework.project.bedework}/config" />
89
90     <property name="bedework.build.file"
91               location="${basedir}/bedework/build.xml" />
92     <property name="org.bedework.user.build.properties"
93               location="${user.home}/bedework.build.properties" />
94     <dirname property="org.bedework.configuration.location"
95              file="${org.bedework.user.build.properties}" />
96
97     <!-- Unfortunately it sits on top of everything
98     <splash imageurl="file://${org.bedework.project.bedework}/docs/icons/bedeworkLogo.gif"/>
99     -->
100   </target>
101
102   <target name="run.init" depends="init" >
103     <property name="org.bedework.user.build.properties"
104               location="${user.home}/bedework.build.properties" />
105
106     <property name="org.bedework.appserver.dir"
107               location="${org.bedework.project.bedework}/../apache-tomcat-5.5.17" />
108
109     <property name="org.bedework.hsqldb.dir"
110               location="${org.bedework.project.bedework}/../hsqldb-1.7.3.3" />
111   </target>
112
113   <!-- =================================================================
114        The "build" target builds the jar files
115        ================================================================= -->
116
117   <target name="build" depends="init"
118           description="builds the jars">
119     <ant antfile="${bedework.build.file}" inheritrefs="true"
120            target="build" />
121     <tstamp prefix="endbuild" />
122     <echo message="=================> Build finished at ${endbuild.TODAY}" />
123   </target>
124
125   <target name="clean.build" depends="clean"
126           description="cleans then builds the jars">
127     <ant antfile="${bedework.build.file}" inheritrefs="true"
128            target="clean.build" />
129   </target>
130
131   <!-- =================================================================
132        The "deploy" target builds and deploys the applications
133        ================================================================= -->
134
135   <target name="deploy" depends="init"
136           description="builds and deploys the applications">
137     <ant antfile="${bedework.build.file}" inheritrefs="true"
138            target="deploy" />
139   </target>
140
141   <target name="deploy.debug" depends="init"
142           description="builds and deploys the applications">
143     <ant antfile="${bedework.build.file}" inheritrefs="true"
144            target="deploy.debug" />
145     <tstamp>
146       <format property="deploydebug.time" pattern="MM/dd/yyyy HH:mm:ss"/>
147     </tstamp>
148
149     <echo message="=================> deploy.debug finished at ${deploydebug.time}" />
150   </target>
151
152   <!-- =================================================================
153        The "clean.deploy" target cleans, builds and deploys the applications
154        ================================================================= -->
155
156   <target name="clean" depends="init"
157           description="Remove all generated files.">
158     <ant antfile="${bedework.build.file}" inheritrefs="true"
159            target="clean" />
160   </target>
161
162   <target name="quickstart-clean" depends="init"
163           description="partial clean up for quickstart.">
164     <ant antfile="${bedework.build.file}" inheritrefs="true"
165            target="quickstart-clean" />
166   </target>
167
168   <target name="clean.deploy" depends="init"
169           description="builds and deploys the applications">
170     <ant antfile="${bedework.build.file}" inheritrefs="true"
171            target="clean.deploy" />
172   </target>
173
174   <target name="clean.deploy.debug" depends="init"
175           description="builds and deploys the applications">
176     <ant antfile="${bedework.build.file}" inheritrefs="true"
177            target="clean.deploy.debug" />
178   </target>
179
180   <!-- =================================================================
181        The "build.configured" target builds configured applications
182        ================================================================= -->
183
184   <target name="build.configured" depends="init"
185           description="Build configured applications" >
186     <ant antfile="${bedework.build.file}" inheritrefs="true"
187            target="build.configured" />
188   </target>
189
190   <target name="build.configured.debug" depends="init"
191           description="Build configured applications" >
192     <ant antfile="${bedework.build.file}" inheritrefs="true"
193            target="build.configured.debug" />
194   </target>
195
196   <target name="clean.build.configured" depends="init"
197           description="Build configured applications" >
198     <ant antfile="${bedework.build.file}" inheritrefs="true"
199            target="clean.build.configured" />
200   </target>
201
202   <target name="clean.build.configured.debug" depends="init"
203           description="Build configured applications" >
204     <ant antfile="${bedework.build.file}" inheritrefs="true"
205            target="clean.build.configured.debug" />
206   </target>
207
208   <!-- =================================================================
209        The "javadoc" target builds javadocs for all projects
210        ================================================================= -->
211
212   <target name="javadoc" depends="init"
213           description="Build javadocs" >
214     <ant antfile="${bedework.build.file}" inheritrefs="true"
215          target="javadoc" />
216   </target>
217 </project>
Note: See TracBrowser for help on using the browser.