• 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-M1/build.xml

Revision 592, 5.9 kB (checked in by jmoore, 3 years ago)

[Build] Top-level build for distribution

* Creates /sql and /client directories.
* Added postgres and groovy jars to ${dist.dir}/lib/repository.
* Fixed *.properties copying.

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="usage"
55                description="Usage information">
56                <concat>
57                        <filelist dir="${import.dir}" files="usage-ant.txt"/>
58                </concat>
59        </target>
60
61        <!-- Multiproject:
62          The idea for these targets is taken from maven2 and is
63          supported by the antlib/resources/lifecycle.xml ant script.
64          Unlike most other targets which can be called from anywhere,
65          these targets can only be called from the top-level because
66          they mask the lifecycle.xml target definitions.
67         -->
68        <target name="multiproject" depends="variables-define"/>
69
70        <target name="multi" depends="multiproject"
71                description="Convenience target. Iterates over all components calling the $${defaultTarget} method (default=${defaultTarget}">
72                <iterate target="${defaultTarget}"/>
73        </target>
74
75        <target name="prepare" depends="multiproject"
76                description="Lifecycle target: calls 'prepare' on all components">
77                <iterate target="prepare"/>
78        </target>
79
80        <target name="generate" depends="multiproject"
81                description="Lifecycle target: calls 'generate' on all components">
82                <iterate target="generate"/>
83        </target>
84
85        <target name="compile" depends="multiproject"
86                description="Lifecycle target: calls 'compile' on all components">
87                <iterate target="compile"/>
88        </target>
89
90        <target name="test" depends="multiproject"
91                description="Lifecycle target: calls 'test' on all components">
92                <iterate target="test"/>
93        </target>
94
95        <target name="package" depends="multiproject"
96                description="Lifecycle target: calls 'package' on all components">
97                <iterate target="package"/>
98        </target>
99
100        <target name="install" depends="multiproject"
101                description="Lifecycle target: calls 'install' on all components">
102                <iterate target="install"/>
103        </target>
104
105        <target name="integration" depends="multiproject"
106                description="Lifecycle target: calls 'integration' on all components">
107                <iterate target="integration"/>
108        </target>
109
110        <target name="dist" depends="integration">
111                <mkdir dir="${dist.dir}"/>
112                <echo>javadoc needs to copy images</echo>
113
114                <!--
115                        etc/
116                        ========================================================
117                        Copies example property files to the ${dist.dir}
118                        for use by the user to configure the install.
119                -->
120                <copy todir="${dist.dir}/etc">
121                        <fileset dir="${omero.home}/docs/examples">
122                                <include name="*.properties.example"/>
123                        </fileset>
124                        <globmapper from="*.properties.example" to="*.properties"/>
125                </copy>
126
127
128                <!--
129                        Copies ...
130                -->
131                <copy todir="${dist.dir}">
132                        <fileset dir="${omero.home}">
133                                <include name="omero.class"/>
134                                <include name="components/antlib/**"/>
135                                <include name="lib/tools/**"/>
136                                <include name="lib/repository/ant/**"/>
137                                <include name="lib/repository/xml-apis/**"/>
138                                <include name="lib/repository/xerces/**"/>
139                                <include name="lib/repository/omero/postgresql/**"/>
140                                <!-- For testing purposes -->
141                                <include name="lib/repository/groovy/**"/>
142                        </fileset>
143                </copy>
144                <copy todir="${dist.dir}">
145                        <fileset dir="${app.comp}/${target.rel}">
146                                <include name="*.ear"/>
147                        </fileset>
148                </copy>
149
150                <!--
151                        SQL to createdb.
152                -->
153                <copy todir="${dist.dir}/sql">
154                        <fileset dir="${common.comp}/${generated.rel}/resources" includes="*.sql"/>
155                </copy>
156                <!--
157                        Copy new build.xml to ${dist.dir}
158                -->
159                <copy
160                        file="${import.dir}/omero.xml"
161                        tofile="${dist.dir}/build.xml"
162                        overwrite="true"
163                />
164                <copy todir="${dist.dir}/client">
165                        <fileset dir="${common.comp}/${target.rel}" includes="*.jar"/>
166                        <fileset dir="${client.comp}/${target.rel}" includes="*.jar"/>
167                        <fileset dir="${lib.dir}/repository">
168                                <include name="omero/jboss*/**/*.jar"/>
169                                <include name="org/springframework/spring/**/*.jar"/>
170                                <include name="commons-logging/commons-logging/**/*.jar"/>
171                        </fileset>
172                        <flattenmapper/>
173                </copy>
174
175        </target>
176
177        <target name="zip">
178                <zip destfile="omero-${omero.version}.zip">
179                        <zipfileset dir="${dist.dir}" prefix="omero-${omero.version}"/>
180                </zip>
181        </target>
182
183        <target name="clean" depends="multiproject"
184                description="Lifecycle target: calls 'clean' on all components">
185                <delete dir="${dist.dir}"/>
186                <iterate target="clean"/>
187        </target>
188
189</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/