sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 32865 - http://anonsvn.icesoft.org/repo / icefaces3 / branches / icefaces-3.0.x-maintenance / icefaces / compat / core / build.xml
Show File - build.xml  [show properties]
spinner
<!--
  ~ Copyright 2004-2012 ICEsoft Technologies Canada Corp.
  ~
  ~ Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
  ~
10    ~ Unless required by applicable law or agreed to in writing,
11    ~ software distributed under the License is distributed on an "AS
12    ~ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13    ~ express or implied. See the License for the specific language
14    ~ governing permissions and limitations under the License.
15    -->
16 
17  <project name="icefaces-compat" default="lib">
18 
19      <!-- This property file is only used for EE builds and overrides various
20           property values if it is available. -->
21      <property file="../../../ee-bundle.properties"/>
22 
23      <property file="./build.properties"/>
24      <property file="../build.properties"/>
25      <property file="../../build.properties"/>
26 
27      <property name="java.dir" location="./src/main/java"/>
28      <property name="resources.dir" location="./src/main/resources"/>
29      <property name="lib.dir" location="../../lib"/>
30      <property name="compat.lib.dir" location="${lib.dir}/compat"/>
31      <property name="build.dir" location="./build"/>
32      <property name="classes.dir" location="${build.dir}/classes"/>
33      <property name="dist.dir" location="${build.dir}/dist"/>
34      <property name="javadocs.dir" location="${build.dir}/javadocs"/>
35      <property name="components.dir" value="../components"/>
36 
37      <!-- Check which JSF implementation to use and set the appropriate sub-directory  -->
38      <condition property="jsf.lib.dir" value="${lib.dir}/myfaces" else="${lib.dir}/mojarra">
39          <isset property="myfaces"/>
40      </condition>
41 
42      <!-- Check if release.type is set, and if so append it after the tertiary value -->
43      <condition property="version.string" value="${version.primary}.${version.secondary}.${version.tertiary}.${release.type}">
44          <isset property="release.type"/>
45      </condition>
46      <property name="version.string" value="${version.primary}.${version.secondary}.${version.tertiary}"/>
47          
48      <property name="javadoc.title" value="${product} ${product.lib} Java API Documentation" />
49      <property name="javadoc.header" value="${product} ${product.lib} ${version.string}&lt;br&gt;Java API Documentation" />
50 
51      
52 
53      <tstamp>
54          <format property="build.time" pattern="yyyy-MM-dd hh:mm:ss"/>
55      </tstamp>
56 
57      <patternset id="lib.compile">
58          <include name="*.jar"/>
59      </patternset>
60 
61      <target name="clean.components">
62          <ant antfile="${components.dir}/build.xml" target="clean" inheritall="false"/>
63      </target>
64 
65      <target name="clean" depends="clean.components">
66          <delete dir="${build.dir}"/>
67      </target>
68 
69      <target name="pre.compile" description="pre-compilation tasks">
70          <mkdir dir="${build.dir}"/>
71          <mkdir dir="${build.dir}/classes"/>
72          <mkdir dir="${build.dir}/dist"/>
73          <copy todir="${build.dir}/resources">
74              <fileset dir="${resources.dir}" excludes="**/faces-config.xml"/>
75          </copy>
76          <ant antfile="build.javascript.xml" target="build" inheritall="false"/>
77      </target>
78 
79      <target name="compile" depends="pre.compile" description="compile ICEfaces compatibility classes">
80          <javac srcdir="${java.dir}"
81                 destdir="${classes.dir}"
82                 source="1.5"
83                 target="1.5"
84                 debug="true"
85                 includeantruntime="false">
86              <classpath>
87                  <fileset dir="${jsf.lib.dir}">
88                      <patternset refid="lib.compile"/>
89                  </fileset>
90                  <fileset dir="${lib.dir}">
91                      <patternset refid="lib.compile"/>
92                  </fileset>
93                  <fileset dir="${compat.lib.dir}">
94                      <patternset refid="lib.compile"/>
95                  </fileset>
96              </classpath>
97          </javac>
98          <copy todir="${classes.dir}">
99              <fileset dir="${java.dir}" includes="**/*.dtd"/>
100          </copy>
101      </target>
102 
103      <target name="compile.components" depends="compile">
104          <ant antfile="${components.dir}/build.xml" target="gen.facelets.file" inheritall="false" inheritrefs="false"/>
105          <ant antfile="${components.dir}/build.xml" target="test" inheritall="false" inheritrefs="false"/>
106      </target>
107 
108      <target name="jar" depends="compile.components" description="assemble icefaces-compat.jar">
109          <copy file="../component-metadata/target/classes/conf/faces-config.xml"
110                todir="${build.dir}/resources/META-INF"/>
111          <copy todir="${build.dir}/resources/META-INF">
112              <fileset dir="${components.dir}/src/main/resources/META-INF" excludes="myfaces/"/>
113          </copy>
114          <copy todir="${build.dir}/resources/META-INF">
115              <fileset dir="${components.dir}/build/generate/src/" includes="*.tld"/>
116          </copy>
117          <jar destfile="${dist.dir}/${icefaces-compat.lib.name}.jar">
118              <metainf dir="${build.dir}/resources/META-INF"/>
119 
120              <manifest>
121                  <section name="org.icefaces">
122                      <attribute name="Implementation-Title"
123                                 value="${product} ${product.lib}"/>
124                      <attribute name="Implementation-Version"
125                                 value="${version.string}"/>
126                      <attribute name="Build-Number"
127                                 value="${build.number}"/>
128                      <attribute name="Build-Time"
129                                 value="${build.time}"/>
130                      <attribute name="Implementation-Vendor"
131                                 value="${company}"/>
132                  </section>
133              </manifest>
134              <fileset dir="${classes.dir}"/>
135              <fileset dir="${build.dir}/resources/css"/>
136              <fileset dir="${components.dir}/build/classes"/>
137              <fileset dir="${components.dir}/src/main/java" excludes="**/*.java"/>
138 
139              <!-- fileset dir="${build.dir}/javascript"/ -->
140          </jar>
141      </target>
142 
143      <target name="lib" depends="jar" description="copy icefaces.jar to main lib directory">
144          <copy file="${dist.dir}/${icefaces-compat.lib.name}.jar"
145                todir="${lib.dir}"
146                overwrite="true"/>
147      </target>
148 
149    <target name="javadoc">
150          <delete dir="${javadocs.dir}"/>
151          <javadoc destdir="${javadocs.dir}" 
152                   windowtitle="${javadoc.title}" 
153                   failonerror="true"
154                   bottom="Copyright ${year} ${copyright}"
155                   useexternalfile="true">
156          <classpath>
157                  <fileset dir="${lib.dir}">
158                      <patternset refid="lib.compile"/>
159                  </fileset>
160                  <fileset dir="${jsf.lib.dir}">
161                      <patternset refid="lib.compile"/>
162                  </fileset>
163                  <fileset dir="${compat.lib.dir}">
164                      <patternset refid="lib.compile"/>
165                  </fileset>
166              </classpath>
167              <fileset dir="${java.dir}">
168                  <include name="com/icesoft/faces/context/DOMContext.java"/>
169                  <include name="com/icesoft/faces/renderkit/dom_html_basic/HTML.java"/>
170                  <include name="com/icesoft/faces/renderkit/dom_html_basic/DomBasicInputRenderer.java"/>
171                  <include name="com/icesoft/faces/renderkit/dom_html_basic/DomBasicRenderer.java"/>
172                  <include name="com/icesoft/faces/renderkit/dom_html_basic/PassThruAttributeRenderer.java"/>
173                  <include name="com/icesoft/faces/async/render/SessionRenderer.java"/>
174                  <include name="com/icesoft/faces/context/effects/**"/>
175              </fileset>
176              <header><![CDATA[${javadoc.header}]]></header>
177              <footer><![CDATA[${javadoc.header}]]></footer>
178              <doctitle><![CDATA[<h2>${javadoc.title}</h2>]]></doctitle>
179          </javadoc>
180      </target>
181      
182  </project>
183 


feed icon

sventon 2.5.1