36
36
<project name="eucalyptus-www" basedir="." default="build">
37
<import file="../module-inc.xml"/>
38
<property name="servlet.dir" value="${euca.var.dir}/webapps"/>
39
<uptodate property="gwtc.notRequired" targetfile="${jar.file}">
40
<srcfiles dir="${src.dir}" includes="**/*"/>
41
<srcfiles dir="${conf.dir}" includes="**/*"/>
37
<import file="../module-inc.xml" />
38
<condition property="osMask" value="linux" else="mac">
41
<!--================================== BUILD TARGET ==================================-->
42
<target name="build" depends="init,compile-src,jar,compile-gwt" description="--> build the jar file from source." unless="gwtc.notRequired" />
43
<!--================================== GWT-ONLY TARGET ==================================-->
44
<property environment="env" />
45
<path id="gwtclasspath">
46
<fileset dir="${lib.dir}">
47
<include name="**/gwt-dev-${osMask}.jar" />
48
<include name="**/*.jar" />
50
<pathelement path="conf" />
51
<fileset dir="${target.dir}">
52
<include name="**/*.jar" />
55
<path id="gwtcompilerclasspath">
56
<fileset dir="${lib.dir}">
57
<include name="**/gwt-dev-${osMask}.jar" />
59
<path refid="gwtclasspath" />
60
<fileset dir="${target.dir}">
61
<include name="**/*.jar" />
63
<pathelement path="${src.dir}" />
65
<property name="gwt.build.dir" value="build" />
66
<property name="gwt.war.build.dir" value="build-war" />
67
<property name="gwt.module" value="edu.ucsb.eucalyptus.admin.EucalyptusWebInterface" />
68
<property name="gwt.module.dir" value="edu/ucsb/eucalyptus/admin" />
69
<property name="gwt.war.dir" value="webapps" />
70
<property name="gwt.war" value="${gwt.war.dir}/root.war" />
71
<uptodate property="gwtc.notRequired" targetfile="${gwt.war}">
72
<srcfiles dir="${src.dir}" includes="**/*" />
73
<srcfiles dir="${conf.dir}" includes="**/*" />
43
<condition property="osMask" value="linux" else="mac">
46
<!--================================== BUILD TARGET ==================================-->
47
<target name="build" depends="init,compile-gwt" description="--> build the jar file from source." unless="gwtc.notRequired"/>
48
<!--================================== GWT-ONLY TARGET ==================================-->
49
<property environment="env"/>
50
<path id="gwtclasspath">
51
<fileset dir="${lib.dir}">
52
<include name="**/gwt-dev-${osMask}.jar"/>
53
<include name="**/*.jar"/>
55
<pathelement path="conf"/>
56
<fileset dir="${target.dir}">
57
<include name="**/*.jar"/>
60
<path id="gwtcompilerclasspath">
61
<fileset dir="${lib.dir}">
62
<include name="**/gwt-dev-${osMask}.jar"/>
64
<path refid="gwtclasspath"/>
65
<fileset dir="${target.dir}">
66
<include name="**/*.jar"/>
68
<pathelement path="${src.dir}"/>
70
<property name="gwt.build.dir" value="www-build"/>
71
<property name="gwt.module" value="edu.ucsb.eucalyptus.admin.EucalyptusWebInterface"/>
72
<property name="gwt.class.dir" value="${gwt.build.dir}/${gwt.module}/WEB-INF/classes"/>
73
<property name="gwt.module.dir" value="edu/ucsb/eucalyptus/admin"/>
74
<property name="gwt.war.build.dir" value="${basedir}/webapps/"/>
75
<property name="gwt.war" value="root.war"/>
76
<property name="gwt.context" value="${basedir}/conf/www/admin.xml"/>
78
<target name="compile-gwt" unless="gwtc.notRequired">
79
<delete dir="${gwt.build.dir}"/>
80
<delete dir="${gwt.class.dir}"/>
81
<delete dir="${gwt.war.build.dir}"/>
82
<java classpathref="gwtcompilerclasspath" fork="true" failonerror="true" classname="com.google.gwt.dev.Compiler">
83
<jvmarg value="-Xmx1024m"/>
84
<arg line="-war ${gwt.build.dir}"/>
85
<arg line="-style OBF"/>
86
<arg line="edu.ucsb.eucalyptus.admin.EucalyptusWebInterface"/>
88
<mkdir dir="${gwt.class.dir}"/>
89
<javac deprecation="false"
90
srcdir="${src.dir}/${gwt.module.dir}"
91
destdir="${gwt.class.dir}"
92
classpathref="gwtclasspath"
96
<mkdir dir="${gwt.war.build.dir}"/>
97
<war destfile="${gwt.war.build.dir}/${gwt.war}" webxml="${conf.dir}/gwt-web.xml" basedir="${gwt.build.dir}/${gwt.module}/"/>
98
<jar destfile="${jar.file}" basedir="${gwt.class.dir}"/>
99
<delete dir="${gwt.build.dir}"/>
100
<touch file="${gwt.context}"/>
103
<target name="install" depends="copy-conf">
104
<copy file="${gwt.war.build.dir}/${gwt.war}" tofile="${servlet.dir}/${gwt.war}"/>
76
<target name="compile-src" unless="gwtc.notRequired">
77
<javac deprecation="false" srcdir="${src.dir}" destdir="${build.dir}" classpathref="gwtclasspath" failonerror="true" debug="true" target="1.5" />
80
<target name="compile-gwt" unless="gwtc.notRequired">
81
<delete dir="${gwt.war.build.dir}" />
82
<mkdir dir="${gwt.war.build.dir}" />
83
<mkdir dir="${gwt.war.dir}" />
84
<java classpathref="gwtcompilerclasspath" fork="true" failonerror="true" classname="com.google.gwt.dev.Compiler">
85
<jvmarg value="-Xmx1024m" />
86
<arg line="-war ${gwt.war.build.dir}" />
87
<arg line="-style OBF" />
88
<arg line="edu.ucsb.eucalyptus.admin.EucalyptusWebInterface" />
90
<war destfile="${gwt.war}" webxml="${conf.dir}/gwt-web.xml" basedir="${gwt.war.build.dir}/${gwt.module}/" />
93
<property name="servlet.dir" value="${euca.var.dir}/webapps" />
94
<target name="install" depends="copy-conf">
95
<copy file="${gwt.war}" todir="${servlet.dir}" />