~kirkland/eucalyptus/label-metadata

« back to all changes in this revision

Viewing changes to clc/modules/www/build.xml

  • Committer: decker
  • Date: 2009-08-07 21:01:26 UTC
  • Revision ID: decker@internet-hate-machine-20090807210126-ub8io9sbxn6diwmw
fixes to the build and soap auth

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  -->
35
35
 
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">
 
39
                <os family="mac" />
 
40
        </condition>
 
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" />
 
49
                </fileset>
 
50
                <pathelement path="conf" />
 
51
                <fileset dir="${target.dir}">
 
52
                        <include name="**/*.jar" />
 
53
                </fileset>
 
54
        </path>
 
55
        <path id="gwtcompilerclasspath">
 
56
                <fileset dir="${lib.dir}">
 
57
                        <include name="**/gwt-dev-${osMask}.jar" />
 
58
                </fileset>
 
59
                <path refid="gwtclasspath" />
 
60
                <fileset dir="${target.dir}">
 
61
                        <include name="**/*.jar" />
 
62
                </fileset>
 
63
                <pathelement path="${src.dir}" />
 
64
        </path>
 
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="**/*" />
42
74
    </uptodate>
43
 
    <condition property="osMask" value="linux" else="mac">
44
 
      <os family="mac"/>
45
 
    </condition>
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"/>
54
 
        </fileset>
55
 
        <pathelement path="conf"/>
56
 
        <fileset dir="${target.dir}">
57
 
            <include name="**/*.jar"/>
58
 
        </fileset>
59
 
  </path>
60
 
    <path id="gwtcompilerclasspath">
61
 
        <fileset dir="${lib.dir}">
62
 
            <include name="**/gwt-dev-${osMask}.jar"/>
63
 
        </fileset>
64
 
       <path refid="gwtclasspath"/>
65
 
        <fileset dir="${target.dir}">
66
 
            <include name="**/*.jar"/>
67
 
        </fileset>
68
 
        <pathelement path="${src.dir}"/>
69
 
    </path>
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"/>
77
 
 
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"/>
87
 
        </java>
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"
93
 
               failonerror="true"
94
 
               debug="true"
95
 
               target="1.5"/>
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}"/>
101
 
    </target>
102
 
 
103
 
    <target name="install" depends="copy-conf">
104
 
        <copy file="${gwt.war.build.dir}/${gwt.war}" tofile="${servlet.dir}/${gwt.war}"/>
105
 
    </target>
 
75
 
 
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" />
 
78
        </target>
 
79
 
 
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" />
 
89
                </java>
 
90
                <war destfile="${gwt.war}" webxml="${conf.dir}/gwt-web.xml" basedir="${gwt.war.build.dir}/${gwt.module}/" />
 
91
        </target>
 
92
 
 
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}" />
 
96
        </target>
106
97
 
107
98
 
108
99
</project>