root/trunk/build.xml

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

Two intertwined updates here.

Most projects are changed to go some way towards maven. Use maven-ant tasks to deal with build dependencies. Mostly chnages to build.xml and the additon of pom.xml.

Additionally, added a new bedenote project which handles JMS messages. This removes the need for special support from activemq.

Removed the auto-deploy of activemq config and made it a special target - "deployActivemq"

To install this stuff:

1. Check out the bedenote project
2. execute the deployActivemq target
3. Build/deploy bedenote
4. Restart


Line 
1 <?xml version="1.0"?>
2
3 <!-- This is the ant build file for the bedework uber project.
4
5      Authors: Mike Douglass   douglm @ rpi.edu
6 -->
7
8 <project name="bedework.build" default="deploy" basedir=".">
9   <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
10
11   <property environment="env"/>
12
13   <dirname property="project.home" file="${ant.file}"/>
14
15   <property name="bedework.home"
16             location="${project.home}" />
17
18   <!-- this project -->
19   <property name="org.bedework.project.bedework"
20             location="${basedir}" />
21
22   <property name="build.dir" location="${bedework.home}/build"/>
23
24   <property name="bw.project.home" location="${org.bedework.project.bedework}"/>
25
26   <import file="${build.dir}/buildTools/deftasks.xml"/>
27   <import file="${build.dir}/dirTools.xml"/>
28
29   <deftasks/>
30
31   <projectDefs name="bedework main project"
32                version="${org.bedework.version}"
33                deployment-name="bedework"
34   />
35  
36   <var name="org.bedework.jars.built" value="0" />
37   <var name="org.bedework.jars.checked" value="0" />
38
39   <target name="init" >
40     <projectInit/>
41
42     <!-- ===============================================================
43               This project builds nothing - it just assembles.
44          =============================================================== -->
45
46     <property name="org.bedework.config.base"
47               location="${org.bedework.project.bedework}/config" />
48
49     <property name="org.bedework.deployment.base"
50               location="${org.bedework.project.bedework}/deployment" />
51   </target>
52
53   <target name="README" depends="init"
54           description="Describe targets and their usage">
55     <loadfile property="org.bedework.README"
56               srcFile="${org.bedework.project.bedework}/docs/README"/>
57     <echo level="info" message="${org.bedework.README}" />
58   </target>
59
60   <target name="usage" depends="init"
61           description="Describe targets and their usage">
62     <loadfile property="org.bedework.README"
63               srcFile="${org.bedework.project.bedework}/docs/README"/>
64     <echo level="info" message="${org.bedework.README}" />
65   </target>
66
67   <!-- =================================================================
68        "build" and "clean" targets for the project
69        ================================================================= -->
70
71   <!--
72   <target name="build" depends="init"
73           description="builds the project">
74   </target> -->
75  
76   <target name="build-source" depends="build-init" >
77     <installPom dir="${org.bedework.project.bedework}"/>
78   </target>
79
80   <!--
81   <target name="clean" depends="init"
82           description="Remove all generated files.">
83     <delete dir="${dist.home}" />
84   </target>
85   -->
86
87   <target name="quickstart-clean" depends="clean"
88           description="extra clean up for quickstart.">
89     <delete dir="${bw.project.home}/libcache"/>
90   </target>
91
92   <!-- =================================================================
93        The "deploy" target deploys the applications
94        ================================================================= -->
95  
96   <target name="deploy-init" depends="init">
97     <deployInit ear-name="bwcal" />
98   </target>
99
100   <target name="deploy" depends="build,deploy-init"
101           description="builds and deploys the applications">
102     <ant antfile="${org.bedework.project.bedework}/deployment/build.xml" inheritrefs="true"
103          target="deploy" />
104   </target>
105 </project>
Note: See TracBrowser for help on using the browser.