sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
Rev: HEAD (53431) - http://anonsvn.icesoft.org/repo / icefaces2 / trunk / icefaces / 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/
  ~
  ~ Software distributed under the License is distributed on an "AS IS"
10    ~ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
11    ~ License for the specific language governing rights and limitations under
12    ~ the License.
13    ~
14    ~ The Original Code is ICEfaces 1.5 open source software code, released
15    ~ November 5, 2006. The Initial Developer of the Original Code is ICEsoft
16    ~ Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C)
17    ~ 2004-2011 ICEsoft Technologies Canada, Corp. All Rights Reserved.
18    ~
19    ~ Contributor(s): _____________________.
20    -->
21 
22  <project name="icefaces" default="world">
23 
24      <!-- This property file is only used for EE builds and overrides various
25           property values if it is available. -->
26      <property file="../ee-bundle.properties"/>
27 
28      <propertyset id="build.properties">
29          <propertyref name="build.number"/>
30          <propertyref name="revision"/>
31          <propertyref name="version.primary"/>
32          <propertyref name="version.secondary"/>
33          <propertyref name="version.tertiary"/>
34          <propertyref name="release.type"/>
35          <propertyref name="bundle.name"/>
36      </propertyset>
37 
38      <property file="./build.properties"/>
39 
40      <target name="core" description="Builds the ICEfaces core framework (icefaces.jar).">
41          <subant>
42              <fileset dir="." includes="core/build.xml test/build.xml">
43                <exclude name="**/maven2/build.xml"/>
44              </fileset>
45              <propertyset refid="build.properties"/>
46          </subant> 
47      </target>
48 
49      <target name="compat" depends="core" description="Builds the ICEfaces Components and 1.x Compat libraries (icefaces-compat.jar).">
50              <subant>
51                    <fileset dir="." includes="compat/build.xml">
52                      <exclude name="**/maven2/build.xml"/>
53                  </fileset>
54              </subant>
55      </target>
56 
57      <target name="ace" depends="core" description="Builds the ICEfaces Advanced Components (icefaces-ace.jar).">
58              <subant>
59                    <fileset dir="." includes="ace/build.xml">
60                      <exclude name="**/maven2/build.xml"/>
61                  </fileset>
62              </subant>
63      </target>
64 
65      <target name="samples" depends="core, ace, compat" description="Builds the ICEfaces samples.">
66          <subant>
67              <fileset dir="." includes="samples/build.xml">
68                  <exclude name="**/maven2/build.xml"/>
69              </fileset>
70          </subant>
71      </target>
72 
73      <target name="world" depends="core, compat, ace, samples"  description="Builds all ICEfaces libraries.">
74      </target>
75 
76 
77      <target name="allclean"  description="Cleans all remnants of previous ICEfaces builds.">
78          <subant target="clean">
79              <fileset dir="." includes="*/build.xml">
80                  <exclude name="**/maven2/build.xml"/>
81          </fileset>
82          </subant>
83          <subant target="allclean">
84              <fileset file="samples/build.xml" />
85          </subant>
86          <delete file="lib/${icefaces.lib.name}.jar"/>
87          <delete file="lib/${icefaces-compat.lib.name}.jar"/>
88          <delete file="lib/${icefaces-ace.lib.name}.jar"/>
89      </target>
90 
91      <target name="bundle.clean">
92          <delete dir="${bundle.dir}"/>
93      </target>
94 
95      <target name="bundle">
96          <mkdir dir="${bundle.dir}"/>
97 
98          <copy todir="${bundle.dir.bin}">
99            <fileset dir="."/>
100          </copy>
101          <antcall target="bundle.bin"/>
102 
103          <zip destfile="${bundle.dir}/${bundle.name.bin}.zip">
104              <zipfileset dir="${bundle.dir}/${bundle.name.bin}" prefix="${bundle.name.bin}"/>
105          </zip>
106 
107          <copy todir="${bundle.dir.src}">
108            <fileset dir="."/>
109          </copy>
110          <antcall target="bundle.src"/>
111 
112          <zip destfile="${bundle.dir}/${bundle.name.src}.zip">
113              <zipfileset dir="${bundle.dir}/${bundle.name.src}" prefix="${bundle.name.src}"/>
114          </zip>
115 
116      </target>
117 
118      <target name="bundle.bin">
119 
120          <!-- Clean and build everything for the binary bundle -->
121          <subant target="allclean">
122              <fileset dir="${bundle.dir.bin}" includes="build.xml"/>
123          </subant>
124 
125          <subant target="world">
126              <fileset dir="${bundle.dir.bin}" includes="build.xml"/>
127              <propertyset refid="build.properties"/>
128          </subant>
129 
130          <!-- Create the JavaDocs for core, compat, and ace and move them to the docs directory -->
131          <subant target="javadoc">
132              <fileset dir="${bundle.dir.bin}/core" includes="build.xml"/>
133          </subant>
134          <move file="${bundle.dir.bin}/core/build/javadocs" tofile="${bundle.dir.bin}/docs/core/api"/>
135 
136          <subant target="javadoc">
137              <fileset dir="${bundle.dir.bin}/compat/core" includes="build.xml"/>
138          </subant>
139          <move file="${bundle.dir.bin}/compat/core/build/javadocs" tofile="${bundle.dir.bin}/docs/compat/core/api"/>
140 
141          <subant target="javadoc">
142              <fileset dir="${bundle.dir.bin}/compat/components" includes="build.xml"/>
143          </subant>
144          <move file="${bundle.dir.bin}/compat/components/build/doc/api" tofile="${bundle.dir.bin}/docs/compat/comps/api"/>
145 
146          <subant target="javadoc">
147              <fileset dir="${bundle.dir.bin}/ace/component" includes="build.xml"/>
148          </subant>
149          <move file="${bundle.dir.bin}/ace/component/build/doc/javadoc" tofile="${bundle.dir.bin}/docs/ace/api"/>
150 
151          <!-- Create the TLD docs for compat, ace move them to the docs directory -->
152          <subant target="tlddoc">
153              <fileset dir="${bundle.dir.bin}/compat/components" includes="build.xml"/>
154          </subant>
155          <move file="${bundle.dir.bin}/compat/components/build/doc/tld" tofile="${bundle.dir.bin}/docs/compat/comps/tld"/>
156 
157          <subant target="tlddoc">
158              <fileset dir="${bundle.dir.bin}/ace/component" includes="build.xml"/>
159          </subant>
160          <move file="${bundle.dir.bin}/ace/component/build/doc/tld" tofile="${bundle.dir.bin}/docs/ace/tld"/>
161 
162 
163 
164          <!-- Remove the following files and directories as they are not required for the binary bundle -->
165          <delete>
166              <fileset dir="${bundle.dir.bin}">
167                  <include name="build.xml"/>
168              </fileset>
169              <fileset dir="${bundle.dir.bin}/lib">
170                  <include name="junit*.jar"/>
171                  <include name="junit*.jar"/>
172                  <include name="commons-fileupload.jar"/>
173                  <include name="tlddoc.jar"/>                
174                  <include name="yui-compressor.jar"/>                
175 
176              </fileset>
177              <fileset dir="${bundle.dir.bin}/lib/compat">
178                  <include name="freemarker*.jar"/>
179                  <include name="jsf-metadata*.jar"/>
180                  <include name="jsp-api*.jar"/>
181                  <include name="portlet*.jar"/>
182              </fileset>
183              <fileset dir="${bundle.dir.bin}/samples/dist">
184                  <include name="basic.war"/>
185                  <include name="compat-basic.war"/>
186              </fileset>
187 
188          </delete>
189 
190          <!-- Due to a quirk of Ant and Windows, we can't delete a .jar file that was
191               used on the classpath to execute a task. With ACE, we use the smartsprites
192               library and then try to remove it from the binary bundle. To try and avoid
193               this we avoid failing on any error meaning it'll need to be manually removed
194               when the bundle is built on a Windows machine. -->
195          <delete dir="${bundle.dir.bin}/ace" failonerror="false"/>
196          <delete dir="${bundle.dir.bin}/compat"/>
197          <delete dir="${bundle.dir.bin}/core"/>
198          <delete dir="${bundle.dir.bin}/test"/>
199 
200          <delete dir="${bundle.dir.bin}/samples/core/test"/>        
201          <delete dir="${bundle.dir.bin}/samples/core/basic"/>
202          <delete dir="${bundle.dir.bin}/samples/compat/compat-basic"/>
203 
204  <!--        <delete dir="${bundle.dir.bin}/samples/ace/comp-suite/build"/>
205          <delete dir="${bundle.dir.bin}/samples/ace/comp-suite-portlet/build"/> -->
206          <delete dir="${bundle.dir.bin}/samples/core/auction/build"/>
207          <delete dir="${bundle.dir.bin}/samples/core/chat/build"/>
208          <delete dir="${bundle.dir.bin}/samples/compat/auctionMonitor/build"/>
209          <delete dir="${bundle.dir.bin}/samples/compat/auctionMonitor/src/main/webapp/WEB-INF/lib"/>
210          <delete dir="${bundle.dir.bin}/samples/compat/auctionMonitor/src/main/webapp/WEB-INF/classes"/>
211          <delete dir="${bundle.dir.bin}/samples/compat/component-showcase/build"/>
212          <delete dir="${bundle.dir.bin}/samples/compat/component-showcase/src/main/webapp/WEB-INF/lib"/>
213          <delete dir="${bundle.dir.bin}/samples/compat/component-showcase/src/main/webapp/WEB-INF/classes"/>
214 
215          <subant target="clean">
216  <!--            <fileset dir="${bundle.dir.bin}/samples/ace/comp-suite-portlet" includes="build.xml"/>  -->
217              <fileset dir="${bundle.dir.bin}/samples/core/chat-portlet" includes="build.xml"/>
218              <fileset dir="${bundle.dir.bin}/samples/compat/component-showcase-portlets" includes="build.xml"/>
219          </subant>
220 
221      </target>
222 
223      <target name="bundle.src">
224 
225          <!-- Remove the following files and directories as they are not required for the source bundle -->
226          <delete>
227              <fileset dir="${bundle.dir.src}/lib">
228                  <include name="commons-fileupload.jar"/>
229              </fileset>
230          </delete>
231 
232          <delete dir="${bundle.dir.src}/test"/>
233          <delete dir="${bundle.dir.src}/ace/test"/>
234          <delete dir="${bundle.dir.src}/samples/core/basic"/>
235          <delete dir="${bundle.dir.src}/samples/core/test"/>
236          <delete dir="${bundle.dir.src}/samples/compat/compat-basic"/>
237          <delete dir="${bundle.dir.src}/samples/dist"/>
238          
239      </target>
240 
241  </project>
242 


feed icon

sventon 2.5.1