Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 175 lines (157 sloc) 7.728 kb
054a11a @gholms Update GPL+BSD file headers
gholms authored
1 <!--
2 Copyright 2009-2012 Eucalyptus Systems, Inc.
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; version 3 of the License.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see http://www.gnu.org/licenses/.
15
16 Please contact Eucalyptus Systems, Inc., 6755 Hollister Ave., Goleta
17 CA 93117, USA or visit http://www.eucalyptus.com/licenses/ if you need
18 additional information or have any questions.
19
20 This file may incorporate work covered under the following copyright
21 and permission notice:
22
23 Software License Agreement (BSD License)
24
25 Copyright (c) 2008, Regents of the University of California
26 All rights reserved.
27
28 Redistribution and use of this software in source and binary forms,
29 with or without modification, are permitted provided that the
30 following conditions are met:
31
32 Redistributions of source code must retain the above copyright
33 notice, this list of conditions and the following disclaimer.
34
35 Redistributions in binary form must reproduce the above copyright
36 notice, this list of conditions and the following disclaimer
37 in the documentation and/or other materials provided with the
38 distribution.
39
40 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
41 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
42 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
43 FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
44 COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
45 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
46 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
48 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
50 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
51 POSSIBILITY OF SUCH DAMAGE. USERS OF THIS SOFTWARE ACKNOWLEDGE
52 THE POSSIBLE PRESENCE OF OTHER OPEN SOURCE LICENSED MATERIAL,
53 COPYRIGHTED MATERIAL OR PATENTED MATERIAL IN THIS SOFTWARE,
54 AND IF ANY SUCH MATERIAL IS DISCOVERED THE PARTY DISCOVERING
55 IT MAY INFORM DR. RICH WOLSKI AT THE UNIVERSITY OF CALIFORNIA,
56 SANTA BARBARA WHO WILL THEN ASCERTAIN THE MOST APPROPRIATE REMEDY,
57 WHICH IN THE REGENTS' DISCRETION MAY INCLUDE, WITHOUT LIMITATION,
58 REPLACEMENT OF THE CODE SO IDENTIFIED, LICENSING OF THE CODE SO
59 IDENTIFIED, OR WITHDRAWAL OF THE CODE CAPABILITY TO THE EXTENT
60 NEEDED TO COMPLY WITH ANY SUCH LICENSES OR RIGHTS.
7183c5b from CVS
graziano obertelli authored
61 -->
62
63 <project name="eucalyptus" basedir=".">
3cdefb8 @grze tweak build
grze authored
64 <property environment="localenv" />
65 <property name="euca.home.0" value="${localenv.EUCALYPTUS}" />
c873e3b @grze work towards binding betterment
grze authored
66 <condition property="euca.home" value="/opt/eucalyptus" else="${localenv.EUCALYPTUS}">
3cdefb8 @grze tweak build
grze authored
67 <contains string="${euca.home.0}" substring="localenv" />
c873e3b @grze work towards binding betterment
grze authored
68 </condition>
3cdefb8 @grze tweak build
grze authored
69 <property name="DESTDIR.0" value="${localenv.DESTDIR}" />
c873e3b @grze work towards binding betterment
grze authored
70 <condition property="DESTDIR" value="/" else="${localenv.DESTDIR}">
3cdefb8 @grze tweak build
grze authored
71 <contains string="${DESTDIR.0}" substring="localenv" />
c873e3b @grze work towards binding betterment
grze authored
72 </condition>
3cdefb8 @grze tweak build
grze authored
73 <property name="project.basedir" value="${user.dir}" />
c873e3b @grze work towards binding betterment
grze authored
74 <loadfile srcfile="${project.basedir}/../VERSION" property="euca.version">
75 <filterchain>
3cdefb8 @grze tweak build
grze authored
76 <filterreader classname="org.apache.tools.ant.filters.StripLineBreaks" />
c873e3b @grze work towards binding betterment
grze authored
77 </filterchain>
78 </loadfile>
79 <!--================================== other vars ==================================-->
3cdefb8 @grze tweak build
grze authored
80 <property name="deps.lib.dir" value="lib" />
6999d7c @grze build fix
grze authored
81 <property name="tools.dir" value="tools/src" />
82 <property name="deps.lib" value="cloud-lib" />
83 <property name="bind.timestamp" value="target/.bind-timestamp" />
ce8cde4 @grze build fixes ad infinitum
grze authored
84 <property name="bind.msgs" value="modules/msgs/src/main/resources/msgs-binding.xml" />
831f598 @grze module build using AntBuilder
grze authored
85 <!--================================== groovy builder ==================================-->
86 <path id="groovy-classpath">
87 <fileset dir="${deps.lib.dir}">
88 <include name="**/*.jar" />
89 </fileset>
29b7b20 @grze remove deps issue
grze authored
90 <fileset dir="/usr/share/java">
91 <include name="**/*.jar" />
92 </fileset>
831f598 @grze module build using AntBuilder
grze authored
93 </path>
29b7b20 @grze remove deps issue
grze authored
94 <taskdef onerror="ignore" name="groovy" classpathref="groovy-classpath" classname="org.codehaus.groovy.ant.Groovy" />
831f598 @grze module build using AntBuilder
grze authored
95 <macrodef name="call-module-target">
96 <attribute name="target" />
97 <sequential>
98 <property name="antTarget" value="@{target}" />
99 <groovy maxmemory="1024m" src="modules/module-inc.groovy" classpathref="groovy-classpath">
100 <jvmarg value="-XX:MaxPermSize=512m" />
101 </groovy>
102 </sequential>
103 </macrodef>
c873e3b @grze work towards binding betterment
grze authored
104 <!--================================== build targets ==================================-->
ce8cde4 @grze build fixes ad infinitum
grze authored
105 <target name="build">
106 <ant dir="." inheritall="false" target="build-all" />
107 <ant dir="." inheritall="false" target="jar" />
c8274b2 @grze fixes to avoid ooming ant
grze authored
108 </target>
831f598 @grze module build using AntBuilder
grze authored
109
ce8cde4 @grze build fixes ad infinitum
grze authored
110 <target name="build-all">
831f598 @grze module build using AntBuilder
grze authored
111 <call-module-target target="builder"/>
ce8cde4 @grze build fixes ad infinitum
grze authored
112 </target>
831f598 @grze module build using AntBuilder
grze authored
113
da2474b @grze merge parent
grze authored
114 <target name="build-test">
115 <ant dir="." inheritall="false" target="build-test-all" />
116 <ant dir="." inheritall="false" target="jar" />
117 </target>
831f598 @grze module build using AntBuilder
grze authored
118
da2474b @grze merge parent
grze authored
119 <target name="build-test-all">
831f598 @grze module build using AntBuilder
grze authored
120 <call-module-target target="builder-test"/>
da2474b @grze merge parent
grze authored
121 </target>
831f598 @grze module build using AntBuilder
grze authored
122
e3476a1 @grze runtime binding
grze authored
123 <target name="jar">
831f598 @grze module build using AntBuilder
grze authored
124 <call-module-target target="jar"/>
3cdefb8 @grze tweak build
grze authored
125 </target>
ce8cde4 @grze build fixes ad infinitum
grze authored
126
c873e3b @grze work towards binding betterment
grze authored
127 <!--================================== clean targets ==================================-->
831f598 @grze module build using AntBuilder
grze authored
128 <target name="clean">
129 <call-module-target target="clean"/>
99617aa @grze cleanup to build issues when doing split build
grze authored
130 <delete file="${project.basedir}/modules/msgs/src/main/resources/msgs-binding.xml"/>
965f83d @grze varied minor bug fixes, stable point before enabling service state mgmt
grze authored
131 </target>
c873e3b @grze work towards binding betterment
grze authored
132 <target name="distclean" depends="clean">
874ef54 @grze add missing target
grze authored
133 <call-module-target target="distclean"/>
3cdefb8 @grze tweak build
grze authored
134 <delete dir="target" />
c873e3b @grze work towards binding betterment
grze authored
135 </target>
136 <!--================================== install target ==================================-->
3cdefb8 @grze tweak build
grze authored
137 <property name="euca.conf.dir" value="${euca.home}/etc/eucalyptus/cloud.d" />
138 <property name="euca.lib.dir" value="${euca.home}/usr/share/eucalyptus" />
139 <property name="euca.var.dir" value="${euca.home}/var/lib/eucalyptus" />
22bc6c8 set jetty tmp explicitly.
Neil authored
140 <property name="euca.run.dir" value="${euca.home}/var/run/eucalyptus" />
3cdefb8 @grze tweak build
grze authored
141 <property name="euca.log.dir" value="${euca.home}/var/log/eucalyptus" />
8a9ad5a copy admin scripts to install dir.
Neil authored
142 <property name="euca.bin.dir" value="${euca.home}/usr/sbin" />
874ef54 @grze add missing target
grze authored
143 <target name="install"> <!-- depends="build-all,jar" -->
c873e3b @grze work towards binding betterment
grze authored
144 <!-- copy libraries over -->
3cdefb8 @grze tweak build
grze authored
145 <mkdir dir="${DESTDIR}${euca.lib.dir}" />
ae1da16 @grze reporting infrastructure in place
grze authored
146 <copy todir="${DESTDIR}${euca.lib.dir}" overwrite="true">
c873e3b @grze work towards binding betterment
grze authored
147 <fileset dir="${deps.lib.dir}">
3cdefb8 @grze tweak build
grze authored
148 <include name="**/*" />
149 <exclude name="**/gwt-api-checker-*.jar" />
150 <exclude name="**/gwt-dev-*.jar" />
151 <exclude name="**/gwt-soyc-vis-*.jar" />
152 <exclude name="**/gwt-user-*.jar" />
5a8abe2 Fixes: don't copy gwt-servlet-deps.jar; set default page for webui.
wenye authored
153 <exclude name="**/gwt-servlet-deps-*.jar" />
a13355a Clean up some debugging code left over in euca_ipt, exclude .git from…
Daniel Nurmi authored
154 <exclude name="**/.git/" />
c873e3b @grze work towards binding betterment
grze authored
155 </fileset>
156 </copy>
8a9ad5a copy admin scripts to install dir.
Neil authored
157 <mkdir dir="${DESTDIR}${euca.bin.dir}" />
6999d7c @grze build fix
grze authored
158 <chmod dir="${DESTDIR}${euca.bin.dir}" perm="0755">
8a9ad5a copy admin scripts to install dir.
Neil authored
159 <include name="**/euca-*" />
160 </chmod>
3cdefb8 @grze tweak build
grze authored
161 <mkdir dir="${DESTDIR}${euca.conf.dir}" />
162 <chmod dir="${DESTDIR}${euca.conf.dir}" perm="0755" />
ce8cde4 @grze build fixes ad infinitum
grze authored
163 <mkdir dir="${DESTDIR}${euca.conf.dir}/conf" />
164 <chmod dir="${DESTDIR}${euca.conf.dir}/conf" perm="0755" />
3cdefb8 @grze tweak build
grze authored
165 <mkdir dir="${DESTDIR}${euca.var.dir}/" />
166 <mkdir dir="${DESTDIR}${euca.var.dir}/db" />
167 <mkdir dir="${DESTDIR}${euca.var.dir}/keys" />
168 <mkdir dir="${DESTDIR}${euca.log.dir}" />
169 <mkdir dir="${DESTDIR}${euca.var.dir}/webapps" />
170 <mkdir dir="${DESTDIR}${euca.var.dir}/modules" />
22bc6c8 set jetty tmp explicitly.
Neil authored
171 <mkdir dir="${DESTDIR}${euca.run.dir}" />
29b7b20 @grze remove deps issue
grze authored
172 <call-module-target target="install"/>
3cdefb8 @grze tweak build
grze authored
173 </target>
7183c5b from CVS
graziano obertelli authored
174 </project>
Something went wrong with that request. Please try again.