Subversion Repositories XServices

Rev

Rev 182 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 182 Rev 185
Line 1... Line 1...
1
<?xml version="1.0"?>
1
<?xml version="1.0"?>
2
<project default="create-doc" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
2
<project default="create-doc" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
Line 3... Line 3...
3
 
3
 
Line 4... Line 4...
4
	<property name="toolsdir" location="C:/Users/brosenberger/JAVA-DEV/" />
4
	<property name="toolsdir" location="C:/JAVA-DEV/" />
Line 5... Line 5...
5
		
5
		
6
		
6
		
7
	<!-- C:\JAVA-DEV\apache-fop-1.1 -->
7
	<!-- C:\JAVA-DEV\apache-fop-1.1 -->
8
 
8
 
9
	<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
9
	<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
10
		<classpath>
10
		<classpath>
11
			<fileset dir="${toolsdir}/fop-2.1">
11
			<fileset dir="${toolsdir}/fop-2.2/fop">
12
				<include name="build/*.jar" />
12
				<include name="build/*.jar" />
Line 13... Line 13...
13
				<include name="lib/*.jar" />
13
				<include name="lib/*.jar" />
14
			</fileset>
14
			</fileset>
15
		</classpath>
15
		</classpath>
16
	</taskdef>
16
	</taskdef>
Line 17... Line 17...
17
 
17
 
18
	<!-- External Syntax Higlighter for docbook xsl -->
18
	<!-- External Syntax Higlighter for docbook xsl -->
Line 27... Line 27...
27
	<property name="htmldir" value="${current-loc}/doc/html" />
27
	<property name="htmldir" value="${current-loc}/doc/html" />
28
	<property name="docbookdir" value="${toolsdir}/docbook-xsl-1.79.1/" />
28
	<property name="docbookdir" value="${toolsdir}/docbook-xsl-1.79.1/" />
Line 29... Line 29...
29
 
29
 
30
	<property name="fo.stylesheet" value="${docbookdir}/fo/docbook.xsl" />
30
	<property name="fo.stylesheet" value="${docbookdir}/fo/docbook.xsl" />
31
	<property name="fo.stylesheet.hl" value="${docbookdir}/fo/docbook.xsl" />
31
	<property name="fo.stylesheet.hl" value="${docbookdir}/fo/docbook.xsl" />
32
	<property name="html.stylesheet.hl" value="${docbookdir}/html/docbook-with-highlighting.xsl" />
32
	<property name="html.stylesheet.hl" value="${docbookdir}/html/docbook.xsl" />
33
	<property name="html.chunked.stylesheet.hl" value="${docbookdir}/html/docbook-chunked-with-highlighting.xsl" />
33
	<property name="html.chunked.stylesheet.hl" value="${docbookdir}/html/docbook.xsl" />
34
	<property name="eclipse.stylesheet" value="${docbookdir}/eclipse/eclipse.xsl" />
34
	<property name="eclipse.stylesheet" value="${docbookdir}/eclipse/eclipse.xsl" />
35
	<property name="html.stylesheet" value="${docbookdir}/html/docbook.xsl" />
35
	<property name="html.stylesheet" value="${docbookdir}/html/docbook.xsl" />
36
	<property name="javahelp.stylesheet" value="${docbookdir}/javahelp/javahelp.xsl" />
36
	<property name="javahelp.stylesheet" value="${docbookdir}/javahelp/javahelp.xsl" />
Line 37... Line 37...
37
	<property name="xhtml5.stylesheet" value="${docbookdir}/xhtml5/docbook.xsl" />
37
	<property name="xhtml5.stylesheet" value="${docbookdir}/xhtml5/docbook.xsl" />
38
 
38
 
39
	<property name="docbooksource" value="${current-loc}/doc" />
39
	<property name="docbooksource" value="${current-loc}/doc" />
-
 
40
	<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
40
	<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
41
	<property name="web.dir" value="${current-loc}/web" />
41
	<property name="web.dir" value="${current-loc}/web" />
42
	<property name="build.dir" value="${current-loc}/build/classes" />
42
	<property name="build.dir" value="${current-loc}/bin" />
43
	<property name="bin.dir" value="${current-loc}/bin" />
Line 43... Line 44...
43
	<property name="delivery.dir" value="c:/TEMP/_DELIVERY_AREA" />
44
	<property name="delivery.dir" value="c:/TEMP/_DELIVERY_AREA" />
Line 160... Line 161...
160
	<target name="resolve" description="--> retrieve dependencies with ivy">
161
	<target name="resolve" description="--> retrieve dependencies with ivy">
161
		<ivy:retrieve />
162
		<ivy:retrieve />
162
	</target>
163
	</target>
Line 163... Line 164...
163
 
164
 
164
	<target name="build-war">
165
	<target name="build-war">
-
 
166
		<ivy:retrieve pattern="c://TEMP/lib/default/[artifact]-[revision].[ext]" conf="master" />
-
 
167
		<jar 	destfile="${bin.dir}/XServices.jar" 
-
 
168
				basedir="${build.dir}"
-
 
169
				includes="net/**/*"/>
-
 
170
			
165
		<ivy:retrieve pattern="c://TEMP/lib/default/[artifact]-[revision].[ext]" conf="default" />
171
		
166
		<war destfile="${delivery.dir}\\${name}.war" webxml="${web.dir}/WEB-INF/web.xml">
172
		<war destfile="${delivery.dir}\\${name}.war" webxml="${web.dir}/WEB-INF/web.xml">
167
			<fileset dir="${web.dir}/">
173
			<fileset dir="${web.dir}/">
168
				<include name="**/*.*" />
174
				<include name="**/*.*" />
169
			</fileset>
175
			</fileset>
170
			<lib dir="c://TEMP/lib/default">
176
			<lib dir="c://TEMP/lib/default">
171
				<!--<exclude name="portlet.jar"/>-->
177
				<!--<exclude name="portlet.jar"/>-->
-
 
178
			</lib>
172
			</lib>
179
			<lib dir="${bin.dir}" />
-
 
180
			<classes dir="${build.dir}">
-
 
181
				<!--We already packed all classes into a jar,
-
 
182
					so put only remaining config files into 
-
 
183
					classes
-
 
184
				-->
-
 
185
				<exclude name="net/**/*"/>
173
			<classes dir="${build.dir}" />
186
			</classes>
174
		</war>
187
		</war>
175
		<tstamp>
188
		<tstamp>
176
			<format property="build.version" pattern="yyyyMMddhhmmss" />
189
			<format property="build.version" pattern="yyyyMMddhhmmss" />
177
		</tstamp>
190
		</tstamp>
Line 182... Line 195...
182
			</fileset>
195
			</fileset>
183
		</copy>
196
		</copy>
184
		<echo>Distribution: ${delivery.dir}\\${name}\\${name}-${build.version} </echo>
197
		<echo>Distribution: ${delivery.dir}\\${name}\\${name}-${build.version} </echo>
185
	</target>
198
	</target>
Line -... Line 199...
-
 
199
	
-
 
200
	<target name="hot-deploy" depends="build-war">
-
 
201
		<copy file="${delivery.dir}\\${name}\\${name}-${build.version}\\${name}.war" toFile="C://JAVA-DEV//Tomcat//apache-tomcat-8.5.30 -localtest//webapps//XServices.war" />
186
 
202
	</target>