Skip to content
Newer
Older
100644 193 lines (170 sloc) 7.36 KB
79c6fc7 Fixed packaging process. Still need to tackle tgz.
mbogaert authored Nov 21, 2003
1 <?xml version="1.0"?>
4c903f4 @joewalnes Watching Erik Hatcher talking about Tapestry and SiteMesh is making m…
joewalnes authored Aug 2, 2005
2 <project name="sitemesh" default="jar">
884f4a6 Default target is jar, and moved rest of dir props into build.xml
hani authored Sep 20, 2004
3
4 <property name="build.compiler" value="modern" />
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
5 <property file="build.properties"/>
6
7 <!-- Classpath -->
8 <path id="cp">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
9 <fileset dir="lib">
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
10 <include name="**/*.jar"/>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
11 </fileset>
12 </path>
b30c6f7 Get rid of the retarded echoing, this isn't maven
hani authored Nov 22, 2003
13
7ff1ef5 @joewalnes Made distribution bundle a bit more sane
joewalnes authored Sep 24, 2004
14 <target name="jflex" unless="lexer.uptodate" description="Generate Lexer class">
b1af2a2 @joewalnes First check-in of the new easier to modify HTMLPageParser
joewalnes authored Sep 20, 2004
15 <echo message="Generating HTML lexer using JFlex"/>
dbb87e6 @joewalnes Fixed build weirdness... generated code is out of main src tree
joewalnes authored Sep 29, 2004
16 <mkdir dir="build/java"/>
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
17 <java classpath="lib/jflex.jar" classname="JFlex.Main" fork="yes">
b1af2a2 @joewalnes First check-in of the new easier to modify HTMLPageParser
joewalnes authored Sep 20, 2004
18 <arg value="-d"/>
dbb87e6 @joewalnes Fixed build weirdness... generated code is out of main src tree
joewalnes authored Sep 29, 2004
19 <arg value="build/java/com/opensymphony/module/sitemesh/html/tokenizer"/>
39e97c9 @joewalnes Added fine grained rule based HTML processor. The HTMLPageParser is n…
joewalnes authored Sep 29, 2004
20 <arg value="src/java/com/opensymphony/module/sitemesh/html/tokenizer/lexer.flex"/>
b1af2a2 @joewalnes First check-in of the new easier to modify HTMLPageParser
joewalnes authored Sep 20, 2004
21 </java>
dbb87e6 @joewalnes Fixed build weirdness... generated code is out of main src tree
joewalnes authored Sep 29, 2004
22 <delete file="build/java/com/opensymphony/module/sitemesh/html/tokenizer/Lexer.java~"/>
b1af2a2 @joewalnes First check-in of the new easier to modify HTMLPageParser
joewalnes authored Sep 20, 2004
23 </target>
24
fc29af9 hostedqa support - entirely optional, but will be run automatically b…
plightbo authored Jun 22, 2006
25 <target name="hostedqa" depends="example">
26 <taskdef resource="hostedqatasks" classpathref="cp"/>
27 <upload file="dist/${name}-example.war" account="sitemesh" email="${hostedqa.email}" password="${hostedqa.password}" resourceId="18"/>
28 <playsuite suiteId="16" clientConfigs="17" appConfigs="12" account="sitemesh" email="${hostedqa.email}" password="${hostedqa.password}"/>
29 </target>
30
7ff1ef5 @joewalnes Made distribution bundle a bit more sane
joewalnes authored Sep 24, 2004
31 <target name="compile" description="Compile Java">
0569732 @joewalnes Removed changelog target - doesn't seem to be used.
joewalnes authored Sep 24, 2004
32 <!-- Determine if lexer needs regenerating -->
33 <uptodate
34 property="lexer.uptodate"
39e97c9 @joewalnes Added fine grained rule based HTML processor. The HTMLPageParser is n…
joewalnes authored Sep 29, 2004
35 srcfile="src/java/com/opensymphony/module/sitemesh/html/tokenizer/lexer.flex"
dbb87e6 @joewalnes Fixed build weirdness... generated code is out of main src tree
joewalnes authored Sep 29, 2004
36 targetfile="build/java/com/opensymphony/module/sitemesh/html/tokenizer/Lexer.java"/>
0569732 @joewalnes Removed changelog target - doesn't seem to be used.
joewalnes authored Sep 24, 2004
37 <antcall target="jflex"/>
38
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
39 <mkdir dir="build/classes"/>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
40
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
41 <javac destdir="build/classes"
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
42 classpathref="cp"
43 optimize="${compile.optimize}"
44 debug="${compile.debug}"
45 nowarn="${compile.nowarn}"
46 deprecation="${compile.deprecation}"
cb3aef6 @jroper Allowed sitemesh to only use one buffer for the pgae, and added Super…
jroper authored Feb 1, 2011
47 source="1.5"
48 target="1.5"
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
49 >
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
50 <src path="src/java"/>
dbb87e6 @joewalnes Fixed build weirdness... generated code is out of main src tree
joewalnes authored Sep 29, 2004
51 <src path="build/java"/>
79c6fc7 Fixed packaging process. Still need to tackle tgz.
mbogaert authored Nov 21, 2003
52 </javac>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
53 </target>
b30c6f7 Get rid of the retarded echoing, this isn't maven
hani authored Nov 22, 2003
54
ab9311d @joewalnes Moved all unit-tests into main sitemesh src tree, under src/test. Thi…
joewalnes authored Jun 3, 2004
55 <target name="test" depends="compile" description="Run all unit tests">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
56 <mkdir dir="build/test-classes"/>
57 <mkdir dir="build/test-results"/>
7ff1ef5 @joewalnes Made distribution bundle a bit more sane
joewalnes authored Sep 24, 2004
58 <javac srcdir="src/test" destdir="build/test-classes" classpathref="cp" classpath="build/classes"/>
ab9311d @joewalnes Moved all unit-tests into main sitemesh src tree, under src/test. Thi…
joewalnes authored Jun 3, 2004
59 <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" classpathref="cp"/>
60 <echo message="Running unit tests..."/>
d0faa4a @joewalnes Replaced continuous integration shell script with ant build file (so …
joewalnes authored Jan 29, 2005
61 <junit printsummary="no" haltonfailure="yes" fork="yes" forkmode="once" dir=".">
ab9311d @joewalnes Moved all unit-tests into main sitemesh src tree, under src/test. Thi…
joewalnes authored Jun 3, 2004
62 <classpath refid="cp"/>
63 <classpath>
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
64 <pathelement location="build/classes"/>
65 <pathelement location="build/test-classes"/>
ab9311d @joewalnes Moved all unit-tests into main sitemesh src tree, under src/test. Thi…
joewalnes authored Jun 3, 2004
66 </classpath>
67 <formatter type="brief" usefile="no"/>
d73cc59 @joewalnes Generated test-results
joewalnes authored Aug 19, 2004
68 <formatter type="xml"/>
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
69 <batchtest todir="build/test-results">
70 <fileset dir="src/test">
ab9311d @joewalnes Moved all unit-tests into main sitemesh src tree, under src/test. Thi…
joewalnes authored Jun 3, 2004
71 <include name="**/*Test.java"/>
72 </fileset>
73 </batchtest>
74 </junit>
75 </target>
76
77 <target name="javadocs" description="Generates JavaDoc">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
78 <mkdir dir="dist/docs/api"/>
2fe8675 - Fixed javadoc warnings by adding private=true.
mbogaert authored Nov 26, 2003
79
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
80 <javadoc sourcepath="src/java"
81 destdir="dist/docs/api"
82 stylesheetfile="docs/api.css"
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
83 packagenames="com.opensymphony.*"
84 classpathref="cp"
85 author="true"
86 version="true"
87 private="true"
88 use="true"
89 windowTitle="${Name} ${version} API"
90 doctitle="${Name} ${version} API"
91 footer="&lt;a href=&quot;http://www.opensymphony.com/sitemesh/&quot;&gt;www.opensymphony.com/sitemesh/&lt;/a&gt;">
92
93 <link href="http://java.sun.com/j2se/1.4.2/docs/api/"/>
94 <link href="http://java.sun.com/products/servlet/2.3/javadoc/"/>
95 <link href="http://jakarta.apache.org/velocity/api/"/>
96 <link href="http://jakarta.apache.org/velocity/tools/javadoc/"/>
7312f3b Link to Freemarker API docs, added Chris Miller to changelog.
mbogaert authored May 20, 2004
97 <link href="http://freemarker.sourceforge.net/docs/api/"/>
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
98 </javadoc>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
99 </target>
79c6fc7 Fixed packaging process. Still need to tackle tgz.
mbogaert authored Nov 21, 2003
100
da1225e Changed javadoc target back to 'javadocs' to be consistent among OS p…
mbogaert authored Apr 12, 2004
101 <target name="docs" depends="javadocs">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
102 <copy todir="dist/docs">
103 <fileset dir="docs" excludes="*.css"/>
1069d1e Added docs target and navpanel.
mbogaert authored Nov 7, 2003
104 </copy>
b30c6f7 Get rid of the retarded echoing, this isn't maven
hani authored Nov 22, 2003
105
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
106 <mkdir dir="dist/docs/dtd"/>
107 <copy todir="dist/docs" file="README.txt"/>
108 <copy todir="dist/docs" file="CHANGES.txt"/>
109 <copy todir="dist/docs/dtd">
110 <fileset dir="src/etc/dtd"/>
58f7f58 Fixed DTD location and added a changelog entry for it.
mbogaert authored Nov 20, 2003
111 </copy>
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
112
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
113 <replace dir="dist/docs" token="@VERSION@" value="${version}"/>
79c6fc7 Fixed packaging process. Still need to tackle tgz.
mbogaert authored Nov 21, 2003
114 </target>
115
116 <target name="jar" depends="compile">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
117 <mkdir dir="dist"/>
4c903f4 @joewalnes Watching Erik Hatcher talking about Tapestry and SiteMesh is making m…
joewalnes authored Aug 2, 2005
118 <copy todir="build/classes">
119 <fileset dir="src/java" excludes="**/*.java,**/*.flex"/>
120 </copy>
7ff1ef5 @joewalnes Made distribution bundle a bit more sane
joewalnes authored Sep 24, 2004
121 <jar jarfile="dist/${name}-${version}.jar" basedir="build/classes" excludes="**/servlets/**">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
122 <metainf dir="src/etc/tld/jsp1.2" includes="*.tld"/>
79c6fc7 Fixed packaging process. Still need to tackle tgz.
mbogaert authored Nov 21, 2003
123 </jar>
124 </target>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
125
79c6fc7 Fixed packaging process. Still need to tackle tgz.
mbogaert authored Nov 21, 2003
126 <target name="blank" depends="jar" description="Builds simple web-app to get started with SiteMesh">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
127 <mkdir dir="dist"/>
128 <war warfile="dist/${name}-blank.war" webxml="src/etc/blank/WEB-INF/web.xml">
129 <fileset dir="src/etc/blank">
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
130 <exclude name="WEB-INF/web.xml"/>
131 </fileset>
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
132 <lib dir="dist">
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
133 <include name="${name}-${version}.jar"/>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
134 </lib>
e32ece3 Add tld's explicitly to web.xml, with a comment saying they can be re…
hani authored Oct 8, 2004
135 <lib dir="src/etc/tld">
136 <include name="sitemesh*.tld" />
137 </lib>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
138 </war>
139 </target>
140
79c6fc7 Fixed packaging process. Still need to tackle tgz.
mbogaert authored Nov 21, 2003
141 <target name="example" depends="jar" description="Builds sample web-app">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
142 <mkdir dir="build/example-temp"/>
143 <copy todir="build/example-temp">
144 <fileset dir="src/example-webapp"/>
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
145 </copy>
146
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
147 <mkdir dir="dist"/>
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
148
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
149 <war warfile="dist/${name}-example.war" webxml="src/example-webapp/WEB-INF/web.xml">
150 <fileset dir="build/example-temp">
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
151 <exclude name="WEB-INF/web.xml"/>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
152 </fileset>
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
153 <lib dir="dist">
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
154 <include name="${name}-${version}.jar"/>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
155 </lib>
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
156 <lib dir="lib">
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
157 <include name="commons-*.jar"/>
158 <include name="velocity-*.jar"/>
ecf3df6 Issue number: SIM-90
rhallier authored May 3, 2004
159 <include name="freemarker.jar"/>
9b8bace Cleaning up javadoc, adding a pathological servlet for the example we…
epesh authored Jun 5, 2004
160 </lib>
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
161 <lib dir="src/etc/tld">
9b8bace Cleaning up javadoc, adding a pathological servlet for the example we…
epesh authored Jun 5, 2004
162 <include name="sitemesh*.tld" />
9afce37 - Add velocity jar to example war.
mbogaert authored Dec 24, 2003
163 </lib>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
164 </war>
165 </target>
981cb71 - Renamed javadocs target to javadoc.
mbogaert authored Apr 12, 2004
166
884f4a6 Default target is jar, and moved rest of dir props into build.xml
hani authored Sep 20, 2004
167 <target name="dist" depends="clean, test, jar, docs, blank, example" description="Builds distribution archives">
7ff1ef5 @joewalnes Made distribution bundle a bit more sane
joewalnes authored Sep 24, 2004
168 <zip zipfile="dist/${name}-${version}.zip">
169 <zipfileset dir=".">
170 <include name="build.xml"/>
171 <include name="build.properties"/>
172 <include name="LICENSE.txt"/>
173 <include name="CHANGES.txt"/>
174 <include name="README.txt"/>
175 <include name="src/**"/>
176 <include name="lib/**"/>
177 </zipfileset>
178 <zipfileset dir="build">
179 <include name="${name}-${version}.jar"/>
180 <include name="${name}-example.war"/>
181 <include name="${name}-blank.war"/>
182 </zipfileset>
183 <zipfileset dir="dist/docs" prefix="docs"/>
184 </zip>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
185 </target>
186
79c6fc7 Fixed packaging process. Still need to tackle tgz.
mbogaert authored Nov 21, 2003
187 <target name="clean" description="Removes all build artifacts">
0a40d7d @joewalnes Cleaned up build-file... removed all the confusing properties (they o…
joewalnes authored Sep 24, 2004
188 <delete dir="build"/>
189 <delete dir="dist"/>
c116332 Moved from SF.
mbogaert authored Nov 3, 2003
190 </target>
7ff1ef5 @joewalnes Made distribution bundle a bit more sane
joewalnes authored Sep 24, 2004
191
dbe829c removing 'breakiterator' javadoc tag, which breaks ant < 1.6
farkas authored Jun 7, 2004
192 </project>
Something went wrong with that request. Please try again.