File: build.xml

package info (click to toggle)
bsh 2.0b4-8
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,072 kB
  • ctags: 3,680
  • sloc: java: 23,424; xml: 4,484; sh: 134; makefile: 21
file content (34 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<project default="faq">
	<property name="faq" value="faq"/>
	<!-- 
		I am currently using the GPL 'htmldoc' to build a PDF from the HTML:
			http://www.easysw.com/htmldoc/ 
		I tried many xhtml->fo stylesheets, but none seemed to work well.	

	<property name="htmldoc" value="/home/niemeyp/pkg/htmldoc/bin/htmldoc"/>
	-->
	<property name="htmldoc" value="/pkg/htmldoc/bin/htmldoc"/>

	<target name="faq">     
		<!-- build it every time... later we can add an updtodate check -->
		<touch file="faq.xml"/>
		<style style="faq.xsl" in="faq.xml" out="${faq}.html"/>
	</target>   

	<target name="pdf" depends="faq">
		<apply executable="${htmldoc}">
			<arg value="--webpage"/>
			<arg value="--jpeg=0"/>
			<arg value="--header"/><arg value="..."/>
			<arg value="--linkstyle"/><arg value="plain"/>
			<arg value="-f"/><arg value="${faq}.pdf"/>
			<fileset dir="." includes="${faq}.html"/>
		</apply>
	</target>

	<target name="clean">     
		<delete quiet="true" file="${faq}.html"/>
		<delete quiet="true" file="${faq}.pdf"/>
	</target>   

</project>