/[volute]/trunk/projects/grid/sso/note/build.xml
ViewVC logotype

Contents of /trunk/projects/grid/sso/note/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1265 - (show annotations)
Fri Mar 26 18:34:17 2010 UTC (10 years, 6 months ago) by harripa
File MIME type: text/plain
File size: 3170 byte(s)
get svn externals defn right way round
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="UWSbuild" default="formatdoc">
3
4 <property name="filename" value="UWS"/>
5 <property name="latexlocation" location="/opt/local/bin"/>
6
7
8
9 <!-- =================================
10 target: createdoc
11 ================================= -->
12 <target name="formatdoc" description="add TOC, numbering etc">
13 <copy file="${filename}.html" tofile="${filename}-old.html"/>
14 <xslt style="ivoadoc/ivoarestructure.xslt" in="${filename}-old.html" out="${filename}.html" force="true" >
15 <factory name="net.sf.saxon.TransformerFactoryImpl" />
16 <param name="document-id" expression="${filename}.html"/> <!-- so that the xslt knows the filename -->
17 <xmlcatalog >
18 <catalogpath>
19 <filelist>
20 <file name="./ivoadoc/xmlcatalog/catalog.xml"/>
21 </filelist>
22 </catalogpath>
23 </xmlcatalog>
24 </xslt>
25 </target>
26
27 <target name="createPDF">
28 <xslt style="ivoadoc/ivoa-fo.xsl" in="${filename}.html" out="out.fo" force="true">
29 <factory name="org.apache.xalan.processor.TransformerFactoryImpl" >
30 </factory>
31 <param name="page-width" expression="210mm"/>
32 <param name="page-height" expression="297mm"/>
33 <param name="global-font-size" expression="11pt"/>
34 <xmlcatalog >
35 <catalogpath>
36 <filelist>
37 <file name="./ivoadoc/xmlcatalog/catalog.xml"/>
38 </filelist>
39 </catalogpath>
40 </xmlcatalog>
41 </xslt>
42 <echo>appling fop</echo>
43 <fop format="application/pdf"
44 fofile="out.fo"
45 outfile="${filename}.pdf" />
46 </target>
47
48 <target name="regenerateRefs">
49 <xslt style="ivoadoc/extractcite.xslt" in="${filename}.html" out="${filename}.aux" force="true" >
50 <factory name="net.sf.saxon.TransformerFactoryImpl" />
51 <param name="target" expression="aux"/>
52 <xmlcatalog >
53 <catalogpath>
54 <filelist>
55 <file name="./ivoadoc/xmlcatalog/catalog.xml"/>
56 </filelist>
57 </catalogpath>
58 </xmlcatalog>
59 </xslt>
60 <exec executable="/opt/local/bin/bibtex">
61 <env key="PATH" path="${env.PATH}:${latexlocation}"/>
62 <arg value="${filename}" />
63 </exec>
64 </target>
65 <!-- =================================
66 target: package
67 ================================= -->
68 <target name="package" description="create a zip file of document and associated files">
69 <tstamp></tstamp>
70 <copy file="UWS.html" tofile="PR-UWS-1.0-${DSTAMP}.html"></copy>
71 <copy file="UWS.pdf" tofile="PR-UWS-1.0-${DSTAMP}.pdf"></copy>
72
73 <zip destfile="uws.zip" basedir="${basedir}" includes="PR-UWS-1.0-${DSTAMP}.html, PR-UWS-1.0-${DSTAMP}.pdf, UWS.xsd,**/*.css,**/*.png,**/*.gif">
74
75 </zip>
76 </target>
77
78
79 <property name="fop.home" value="/opt/packages/fop"/>
80
81 <taskdef name="fop"
82 classname="org.apache.fop.tools.anttasks.Fop">
83 <classpath>
84 <fileset dir="${fop.home}/lib">
85 <include name="*.jar"/>
86 </fileset>
87 <fileset dir="${fop.home}/build">
88 <include name="fop.jar"/>
89 <include name="fop-hyph.jar" />
90 <include name="fop-sandbox.jar"/>
91 </fileset>
92 </classpath>
93 </taskdef>
94 </project>

Properties

Name Value
svn:mime-type text/plain

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26