• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • Last Change
  • Annotate
  • Revision Log

root/branches/3.0-Beta1/build.xml

Revision 1167, 5.7 kB (checked in by jmoore, 21 months ago)

[svn:keywords] Id,Date,Revision,URL for *.java and Id for *.xml

  • Property svn:keywords set to Id
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="main" default="usage" basedir=".">
3<!--
4#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5#
6# $Id$
7#
8# Copyright 2006 University of Dundee. All rights reserved.
9# Use is subject to license terms supplied in LICENSE.txt
10#
11#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12
13#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14# Written by:  Josh Moore <josh.moore@gmx.de>
15#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16   
17  DOCUMENTATION:
18  =================================================
19
20  To use this script you need only have downloaded
21  the source code (either from subversion or as
22  distribution). The build system can be used by
23  calling:
24
25    java omero <arguments>
26
27  from within the OMERO_HOME directory (this is
28  what you checked out of subversion and where this
29  file is located).
30
31-->
32
33        <import file="components/antlib/resources/global.xml"/>
34
35        <target name="help" depends="usage"/>
36        <target name="usage"
37                description="Usage information">
38                <concat>
39                        <filelist dir="${import.dir}" files="usage-ant.txt"/>
40                </concat>
41        </target>
42
43        <!-- Multiproject:
44          The idea for these targets is taken from maven2 and is
45          supported by the antlib/resources/lifecycle.xml ant script.
46          Unlike most other targets which can be called from anywhere,
47          these targets can only be called from the top-level because
48          they mask the lifecycle.xml target definitions.
49         -->
50        <target name="multiproject" depends="compatibility,init"/>
51
52        <target name="multi" depends="multiproject"
53                description="Convenience target. Iterates over all components calling the $${defaultTarget} method (default=${defaultTarget}">
54                <iterate target="${defaultTarget}"/>
55        </target>
56
57        <target name="prepare" depends="multiproject"
58                description="Lifecycle target: calls 'prepare' on all components">
59                <iterate target="prepare"/>
60        </target>
61
62        <target name="generate" depends="multiproject"
63                description="Lifecycle target: calls 'generate' on all components">
64                <iterate target="generate"/>
65        </target>
66
67        <target name="compile" depends="multiproject"
68                description="Lifecycle target: calls 'compile' on all components">
69                <iterate target="compile"/>
70        </target>
71
72        <target name="test" depends="multiproject"
73                description="Lifecycle target: calls 'test' on all components">
74                <iterate target="test"/>
75        </target>
76
77        <target name="package" depends="multiproject"
78                description="Lifecycle target: calls 'package' on all components">
79                <iterate target="package"/>
80        </target>
81
82        <target name="install" depends="multiproject"
83                description="Lifecycle target: calls 'install' on all components">
84                <iterate target="install"/>
85        </target>
86
87        <target name="integration" depends="multiproject"
88                description="Lifecycle target: calls 'integration' on all components">
89                <iterate target="integration"/>
90        </target>
91
92        <target name="dist">
93                <mkdir dir="${dist.dir}"/>
94                <echo>javadoc needs to copy images</echo>
95
96                <!--
97                        etc/
98                        ========================================================
99                        Copies example property files to the ${dist.dir}
100                        for use by the user to configure the install.
101                -->
102                <copy todir="${dist.dir}/etc" overwrite="true">
103                        <fileset dir="${omero.home}/etc">
104                                <exclude name="local.properties"/>
105                        </fileset>
106                </copy>
107                <concat destfile="${dist.dir}/etc/omero.properties" append="true">
108                        <filelist dir="${app.comp}" files="product.properties"/>
109                </concat>
110
111                <!--
112                        Copies ...
113                -->
114                <copy todir="${dist.dir}">
115                        <fileset dir="${omero.home}">
116                                <include name="omero.class"/>
117                                <include name="components/antlib/**"/>
118                                <include name="lib/tools/**"/>
119                                <include name="lib/repository/ant/**"/>
120                                <include name="lib/repository/xml-apis/**"/>
121                                <include name="lib/repository/xerces/**"/>
122                                <include name="lib/repository/omero/postgresql/**"/>
123                                <!-- For testing purposes -->
124                                <include name="lib/repository/groovy/**"/>
125                                <include name="lib/repository/testng/**"/>
126                                <!-- deploy -->
127                                <include name="components/common/build.xml"/>
128                                <!-- reload-db -->
129                                <include name="components/server/build.xml"/>
130                                <!-- usermgmt -->
131                                <include name="components/client/build.xml"/>
132                        </fileset>
133                </copy>
134                <copy todir="${dist.dir}">
135                        <fileset dir="${app.comp}/${target.rel}">
136                                <include name="*.ear"/>
137                        </fileset>
138                </copy>
139
140                <!--
141                        SQL to createdb.
142                -->
143                <copy todir="${dist.dir}/sql">
144                        <fileset dir="${common.comp}/${generated.rel}/resources" includes="*.sql"/>
145                </copy>
146                <!--
147                        Copy new build.xml to ${dist.dir}
148                -->
149                <copy
150                        file="${import.dir}/omero.xml"
151                        tofile="${dist.dir}/build.xml"
152                        overwrite="true"
153                />
154                <copy todir="${dist.dir}/client">
155                        <fileset dir="${common.comp}/${target.rel}" includes="*.jar"/>
156                        <fileset dir="${client.comp}/${target.rel}" includes="*.jar"/>
157                        <fileset dir="${import.comp}/${target.rel}" includes="*.jar"/>
158                        <fileset dir="${server.comp}/${target.rel}" includes="*.jar"/>
159                        <fileset dir="${lib.dir}/repository">
160                                <include name="omero/jboss*/**/*.jar"/>
161                                <include name="org/springframework/spring/**/*.jar"/>
162                                <include name="commons-logging/commons-logging/**/*.jar"/>
163                                <include name="log4j/**/*.jar"/>
164                                <include name="omero/omejava/**/*.jar"/>
165                        </fileset>
166                        <flattenmapper/>
167                </copy>
168
169        </target>
170
171        <target name="zip">
172                <zip destfile="omero-${omero.version}.zip">
173                        <zipfileset dir="${dist.dir}" prefix="omero-${omero.version}"/>
174                </zip>
175        </target>
176
177        <target name="clean" depends="multiproject"
178                description="Lifecycle target: calls 'clean' on all components">
179                <delete dir="${dist.dir}"/>
180                <iterate target="clean"/>
181        </target>
182
183</project>
Note: See TracBrowser for help on using the browser.

Download in other formats:

  • Plain Text
  • Original Format

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/