sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
Rev: HEAD (53458) - http://anonsvn.icesoft.org/repo / icefaces2 / scratchpads / patches / ICE-6071 / 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-2010 ICEsoft Technologies Canada, Corp. All Rights Reserved.
18    ~
19    ~ Contributor(s): _____________________.
20    ~
21    -->
22 
23  <project name="icefaces" default="all">
24 
25      <property file="build.properties"/>
26 
27      <target name="all">
28          <subant>
29              <fileset dir="." excludes="compat/build.xml" includes="*/build.xml">
30                <exclude name="**/maven2/build.xml"/>
31              </fileset>
32          </subant> 
33      </target>
34 
35      <target name="world" depends="all">
36              <subant>
37                    <fileset dir="." includes="compat/build.xml">
38                      <exclude name="**/maven2/build.xml"/>
39                  </fileset>
40              </subant>
41      </target>
42 
43      <target name="allclean">
44          <subant target="clean">
45              <fileset dir="." includes="*/build.xml">
46                  <exclude name="**/maven2/build.xml"/>
47          </fileset>
48          </subant>
49          <delete file="lib/icefaces.jar"/>
50      </target>
51 
52      <target name="bundle.clean">
53          <delete dir="${bundle.dir}"/>
54      </target>
55 
56      <target name="bundle">
57          <mkdir dir="${bundle.dir}"/>
58 
59          <copy todir="${bundle.dir.bin}">
60            <fileset dir="."/>
61          </copy>
62          <antcall target="bundle.bin"/>
63 
64          <zip destfile="${bundle.dir}/${bundle.name.bin}.zip">
65              <zipfileset dir="${bundle.dir}/${bundle.name.bin}" prefix="${bundle.name.bin}"/>
66          </zip>
67 
68          <copy todir="${bundle.dir.src}">
69            <fileset dir="."/>
70          </copy>
71          <antcall target="bundle.src"/>
72 
73          <zip destfile="${bundle.dir}/${bundle.name.src}.zip">
74              <zipfileset dir="${bundle.dir}/${bundle.name.src}" prefix="${bundle.name.src}"/>
75          </zip>
76 
77      </target>
78 
79      <target name="bundle.bin">
80 
81          <!-- Clean and build everything for the binary bundle -->
82          <subant target="allclean">
83              <fileset dir="${bundle.dir.bin}" includes="build.xml"/>
84          </subant>
85 
86          <subant target="world">
87              <fileset dir="${bundle.dir.bin}" includes="build.xml"/>
88          </subant>
89 
90          <!-- Create the JavaDocs for Core and Compat Core and move them to the root bundle directory -->
91          <subant target="javadoc">
92              <fileset dir="${bundle.dir.bin}/core" includes="build.xml"/>
93          </subant>
94          <move file="${bundle.dir.bin}/core/build/javadocs" tofile="${bundle.dir}/javadocs-core"/>
95 
96          <subant target="javadoc">
97              <fileset dir="${bundle.dir.bin}/compat/core" includes="build.xml"/>
98          </subant>
99          <move file="${bundle.dir.bin}/compat/core/build/javadocs" tofile="${bundle.dir}/javadocs-compat"/>
100 
101          <!-- Remove the following files and directories as they are not required for the binary bundle -->
102          <delete>
103              <fileset dir="${bundle.dir.bin}">
104                  <include name="build.xml"/>
105                  <include name="build.properties"/>
106              </fileset>
107              <fileset dir="${bundle.dir.bin}/lib">
108                  <include name="icefaces-compat.jar"/>
109                  <include name="junit*.jar"/>
110                  <include name="portlet*.jar"/>
111                  <include name="junit*.jar"/>
112                  <include name="commons-fileupload.jar"/>
113              </fileset>
114              <fileset dir="${bundle.dir.bin}/compat">
115                  <include name="build.xml"/>
116              </fileset>
117              <fileset dir="${bundle.dir.bin}/compat/lib">
118                  <include name="freemarker*.jar"/>
119                  <include name="jsf-metadata*.jar"/>
120                  <include name="jsp-api*.jar"/>
121                  <include name="portlet*.jar"/>
122              </fileset>
123          </delete>
124 
125          <delete dir="${bundle.dir.bin}/core"/>
126          <delete dir="${bundle.dir.bin}/test"/>
127 
128          <delete dir="${bundle.dir.bin}/samples/test"/>
129          <delete dir="${bundle.dir.bin}/samples/auction/build/classes"/>
130          <delete dir="${bundle.dir.bin}/samples/auction/build/dist/exploded"/>
131          <delete dir="${bundle.dir.bin}/samples/basic/tests"/>
132 
133          <delete dir="${bundle.dir.bin}/compat/samples/compat-basic"/>
134          <delete dir="${bundle.dir.bin}/compat/samples/auctionMonitor/web/WEB-INF/lib"/>
135          <delete dir="${bundle.dir.bin}/compat/samples/auctionMonitor/web/WEB-INF/classes"/>
136          <delete dir="${bundle.dir.bin}/compat/samples/component-showcase/web/WEB-INF/lib"/>
137          <delete dir="${bundle.dir.bin}/compat/samples/component-showcase/web/WEB-INF/classes"/>
138 
139          <delete dir="${bundle.dir.bin}/compat/component-metadata"/>
140          <delete dir="${bundle.dir.bin}/compat/components"/>
141          <delete dir="${bundle.dir.bin}/compat/core"/>
142 
143      </target>
144 
145      <target name="bundle.src">
146 
147          <!-- Remove the following files and directories as they are not required for the source bundle -->
148          <delete>
149              <fileset dir="${bundle.dir.src}/lib">
150                  <include name="commons-fileupload.jar"/>
151              </fileset>
152          </delete>
153 
154          <delete dir="${bundle.dir.src}/test"/>
155          
156          <delete dir="${bundle.dir.src}/samples/basic/tests"/>
157          <delete dir="${bundle.dir.src}/samples/test"/>
158 
159      </target>
160 
161  </project>
162 


feed icon

sventon 2.5.1