• 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/tags/omero-3.0-M3/build.xml

Revision 1084, 6.3 kB (checked in by jmoore, 22 months ago)

Removing workaround for CruiseControl?

Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="main" default="usage" basedir=".">
3<!--
4#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5#
6# Copyright (C) 2005 Open Microscopy Environment
7#       Massachusetts Institue of Technology,
8#       National Institutes of Health,
9#       University of Dundee
10#
11#
12#
13#    This library is free software; you can redistribute it and/or
14#    modify it under the terms of the GNU Lesser General Public
15#    License as published by the Free Software Foundation; either
16#    version 2.1 of the License, or (at your option) any later
17#    version.
18#
19#    This library is distributed in the hope that it will be useful,
20#    but WITHOUT ANY WARRANTY; without even the implied warranty of
21#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22#    Lesser General Public License for more details.
23#
24#    You should have received a copy of the GNU Lesser General Public
25#    License along with this library; if not, write to the Free
26#    Software
27#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
28#    02111-1307  USA
29#
30#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
32#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33# Written by:  Josh Moore <josh.moore@gmx.de>
34#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35   
36  DOCUMENTATION:
37  =================================================
38
39  To use this script you need only have downloaded
40  the source code (either from subversion or as
41  distribution). The build system can be used by
42  calling:
43
44    java omero <arguments>
45
46  from within the OMERO_HOME directory (this is
47  what you checked out of subversion and where this
48  file is located).
49
50-->
51
52        <import file="components/antlib/resources/global.xml"/>
53
54        <target name="help" depends="usage"/>
55        <target name="usage"
56                description="Usage information">
57                <concat>
58                        <filelist dir="${import.dir}" files="usage-ant.txt"/>
59                </concat>
60        </target>
61
62        <!-- Multiproject:
63          The idea for these targets is taken from maven2 and is
64          supported by the antlib/resources/lifecycle.xml ant script.
65          Unlike most other targets which can be called from anywhere,
66          these targets can only be called from the top-level because
67          they mask the lifecycle.xml target definitions.
68         -->
69        <target name="multiproject" depends="compatibility,init"/>
70
71        <target name="multi" depends="multiproject"
72                description="Convenience target. Iterates over all components calling the $${defaultTarget} method (default=${defaultTarget}">
73                <iterate target="${defaultTarget}"/>
74        </target>
75
76        <target name="prepare" depends="multiproject"
77                description="Lifecycle target: calls 'prepare' on all components">
78                <iterate target="prepare"/>
79        </target>
80
81        <target name="generate" depends="multiproject"
82                description="Lifecycle target: calls 'generate' on all components">
83                <iterate target="generate"/>
84        </target>
85
86        <target name="compile" depends="multiproject"
87                description="Lifecycle target: calls 'compile' on all components">
88                <iterate target="compile"/>
89        </target>
90
91        <target name="test" depends="multiproject"
92                description="Lifecycle target: calls 'test' on all components">
93                <iterate target="test"/>
94        </target>
95
96        <target name="package" depends="multiproject"
97                description="Lifecycle target: calls 'package' on all components">
98                <iterate target="package"/>
99        </target>
100
101        <target name="install" depends="multiproject"
102                description="Lifecycle target: calls 'install' on all components">
103                <iterate target="install"/>
104        </target>
105
106        <target name="integration" depends="multiproject"
107                description="Lifecycle target: calls 'integration' on all components">
108                <iterate target="integration"/>
109        </target>
110
111        <target name="dist">
112                <mkdir dir="${dist.dir}"/>
113                <echo>javadoc needs to copy images</echo>
114
115                <!--
116                        etc/
117                        ========================================================
118                        Copies example property files to the ${dist.dir}
119                        for use by the user to configure the install.
120                -->
121                <copy todir="${dist.dir}/etc">
122                        <fileset dir="${omero.home}/etc">
123                                <exclude name="local.properties"/>
124                        </fileset>
125                </copy>
126
127                <!--
128                        Copies ...
129                -->
130                <copy todir="${dist.dir}">
131                        <fileset dir="${omero.home}">
132                                <include name="omero.class"/>
133                                <include name="components/antlib/**"/>
134                                <include name="lib/tools/**"/>
135                                <include name="lib/repository/ant/**"/>
136                                <include name="lib/repository/xml-apis/**"/>
137                                <include name="lib/repository/xerces/**"/>
138                                <include name="lib/repository/omero/postgresql/**"/>
139                                <!-- For testing purposes -->
140                                <include name="lib/repository/groovy/**"/>
141                                <include name="lib/repository/testng/**"/>
142                                <!-- deploy -->
143                                <include name="components/common/build.xml"/>
144                                <!-- reload-db -->
145                                <include name="components/server/build.xml"/>
146                                <!-- usermgmt -->
147                                <include name="components/client/build.xml"/>
148                        </fileset>
149                </copy>
150                <copy todir="${dist.dir}">
151                        <fileset dir="${app.comp}/${target.rel}">
152                                <include name="*.ear"/>
153                        </fileset>
154                </copy>
155
156                <!--
157                        SQL to createdb.
158                -->
159                <copy todir="${dist.dir}/sql">
160                        <fileset dir="${common.comp}/${generated.rel}/resources" includes="*.sql"/>
161                </copy>
162                <!--
163                        Copy new build.xml to ${dist.dir}
164                -->
165                <copy
166                        file="${import.dir}/omero.xml"
167                        tofile="${dist.dir}/build.xml"
168                        overwrite="true"
169                />
170                <copy todir="${dist.dir}/client">
171                        <fileset dir="${common.comp}/${target.rel}" includes="*.jar"/>
172                        <fileset dir="${client.comp}/${target.rel}" includes="*.jar"/>
173                        <fileset dir="${import.comp}/${target.rel}" includes="*.jar"/>
174                        <fileset dir="${server.comp}/${target.rel}" includes="*.jar"/>
175                        <fileset dir="${lib.dir}/repository">
176                                <include name="omero/jboss*/**/*.jar"/>
177                                <include name="org/springframework/spring/**/*.jar"/>
178                                <include name="commons-logging/commons-logging/**/*.jar"/>
179                                <include name="log4j/**/*.jar"/>
180                                <include name="omero/omejava/**/*.jar"/>
181                        </fileset>
182                        <flattenmapper/>
183                </copy>
184
185        </target>
186
187        <target name="zip">
188                <zip destfile="omero-${omero.version}.zip">
189                        <zipfileset dir="${dist.dir}" prefix="omero-${omero.version}"/>
190                </zip>
191        </target>
192
193        <target name="clean" depends="multiproject"
194                description="Lifecycle target: calls 'clean' on all components">
195                <delete dir="${dist.dir}"/>
196                <iterate target="clean"/>
197        </target>
198
199</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/