sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 53206 - http://anonsvn.icesoft.org/repo / icepush / branches / icepush-2.0.x-maintenance / build.xml
Show File - build.xml  [show properties]
spinner
<!--
 *
 * Version: MPL 1.1
 *
 * "The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
10   * Software distributed under the License is distributed on an "AS IS"
11   * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
12   * License for the specific language governing rights and limitations under
13   * the License.
14   *
15   * The Initial Developer of the Original Code is ICEsoft
16   * Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C)
17   * 2004-2010 ICEsoft Technologies Canada, Corp. All Rights Reserved.
18   *
19   * Contributor(s): _____________________.
20   *
21   *
22  -->
23  <project name="ICEpush" default="build-all">
24      
25      
26      <property file="build.properties"/> 
27      <import file="build-common.xml"/> 
28      
29      <target name="dist-icepush-bin">
30          <antcall target="jar-icepush-core"></antcall>
31          <copy file="./core/dist/icepush.jar" todir="${dist.dir}"/>
32      </target>
33      
34      <target name="dist-gwt-bin" depends="dist-icepush-bin">
35          <build.with.path.offset target="gwt"/>
36      </target>
37      
38      <target name="dist-jsp-bin" depends="dist-icepush-bin">
39          <build.with.path.offset target="jsp"/>
40      </target>
41      
42      <target name="dist-spring-bin" depends="dist-icepush-bin">
43          <build.with.path.offset target="spring"/>
44      </target>
45      
46      <target name="dist-jquery-bin" depends="dist-icepush-bin">
47          <build.with.path.offset target="jquery"/>
48      </target>
49      
50      <target name="dist-prototype-bin" depends="dist-icepush-bin">
51          <build.with.path.offset target="prototype"/>
52      </target>
53      
54      <target name="dist-wicket-bin" depends="dist-icepush-bin">
55          <build.with.path.offset target="wicket"/>
56      </target>
57 
58      <target name="dist-grails-bin" depends="dist-icepush-bin">
59          <build.with.path.offset target="grails"/>
60      </target>
61      
62      <macrodef name="build.with.path.offset">
63          <attribute name="target"/>
64          <sequential>
65              <echo>Building Integration: @{target}</echo>
66              
67              <delete dir="${build.dir}" failonerror="false" includeEmptyDirs="true"></delete>
68              
69              <copy file="./core/${dist.dir}/icepush.jar" todir="${build.dir}"/>
70              
71              <ant dir="./integration/@{target}" target="build.all"/>
72              <copy todir="${build.dir}">
73                  <fileset dir="./integration/@{target}/${dist.dir}" includes="**"/>
74              </copy>
75          
76              <zip destfile="${dist.dir}/icepush-@{target}.zip" basedir="${build.dir}"></zip>
77          
78          </sequential>
79      </macrodef>
80      
81      <macrodef name="clean.with.path.offset">
82          <attribute name="target"/>
83          <sequential>
84              <echo>Cleaning Inegration @{target}</echo>
85              <ant target="clean" dir="./integration/@{target}"/>
86          </sequential>
87      </macrodef>
88      
89      <target name="build-all">
90          <!-- build all the distributions -->
91          <antcall target="dist-gwt-bin"/>
92          <antcall target="dist-jsp-bin"/>
93          <antcall target="dist-spring-bin"/>
94          <antcall target="dist-jquery-bin"/>
95          <antcall target="dist-prototype-bin"/>
96          <antcall target="dist-wicket-bin"/>
97          <antcall target="dist-grails-bin"/>
98          
99          <!-- items not in contained distribution -->
100          <!--ant target="war" dir="./samples/icechat/icefaces"/-->
101          <ant target="war" dir="./samples/icechat/ajax"/>
102          
103      </target>
104      
105      <target name="clean-all">
106          <clean/>
107          <ant dir="./core" target="clean"/>
108          <!-- JSP -->
109          <clean.with.path.offset target="jsp"/>
110          <ant target="clean" dir="./samples/icechat/jsp"/>
111          
112          <ant target="clean" dir="./samples/basic"/>
113          
114          <!-- GWT -->
115          <clean.with.path.offset target="gwt"/>
116          <ant target="clean" dir="./samples/icechat/gwt"/>
117          <!-- SPRINGMVC -->
118          <clean.with.path.offset target="spring"/>
119          <ant target="clean" dir="./samples/icechat/spring"/>
120          <!-- JQUERY -->
121          <clean.with.path.offset target="jquery"/>
122          <ant target="clean" dir="./samples/icechat/jquery"/>
123          <!-- PROTOTYPE -->
124          <clean.with.path.offset target="prototype"/>
125          <ant target="clean" dir="./samples/icechat/prototype"/> 
126          <!-- WICKET -->
127          <clean.with.path.offset target="wicket"/>
128          <ant target="clean" dir="./samples/icechat/wicket"/>    
129          <!-- ICEFACES -->
130          <ant target="clean" dir="./samples/icechat/icefaces"/>
131          
132          
133      </target>
134      
135  </project>


feed icon

sventon 2.5.1