File: build.xml

package info (click to toggle)
xml-resume-library 1.5.1-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,516 kB
  • ctags: 424
  • sloc: xml: 867; makefile: 126; sh: 47
file content (142 lines) | stat: -rw-r--r-- 6,179 bytes parent folder | download | duplicates (3)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="Resume">
<!-- ====================================================================
 build.xml: A "Makefile" for the Ant build tool.

USAGE:
 To create example1.html, example1.txt, example1.fo, and example1.pdf 
 from example1.xml, with Italian localization and a4 paper size, use 
 this command:
       ant -Dresume=example1 -Dcountry=it -Dpapersize=a4
 To generate just the html version of cv.xml with UK localization, use 
 this command:
       ant html -Dresume=cv -Dcountry=uk
 To remove all generated files, use this command:
       ant clean
 To generate a filtered example resume targeted at the foodservice and
 construction industries, use these commands:
	ant filter -Dresume=example2 -Dfilter_targets="foodservice carpentry"

==================================================================== -->
<!-- 
================================================================
     General Options
================================================================ -->
<!-- The name and extension of the XML file containing your resume -->
  <property name="resume" value="resume"/>
  <property name="resume.extension" value="xml"/>
<!-- Options: br de fr it nl uk us es -->
  <property name="country" value="us"/>
<!-- Options: letter for country=us, a4 for others -->
  <property name="papersize" value="letter"/>
  <property name="xsl.base" value="http://xmlresume.sourceforge.net/xsl"/>
<!--  <property name="xsl.base" value="../xsl"/> -->
<!--  <property name="xsl.base" value="../src/www/xsl"/> -->
<!-- 
================================================================
     Processing Software:
================================================================ -->
  <property name="xsl.processor" value="org.apache.xalan.xslt.Process"/>
  <property name="pdf.processor" value="org.apache.fop.apps.Fop"/>
<!-- 
RTF generation currently requires you download a separate, 
closed-source jar file and add it to your java classpath: 
http://www.xmlmind.com/foconverter/downloadperso.shtml -->
  <property name="rtf.processor" value="com.xmlmind.fo.converter.Driver"/>
<!-- You may have some luck with JFOR, an open source FO to RTF Converter: -->
<!--  <property name="rtf.processor" value="ch.codeconsult.jfor.main.CmdLineConverter"/> -->
<!-- Targeting Options:

 Element filtering allows you to create targeted resumes.
 You can create your own targets; just specify them in your resume.xml
 file with the "targets" attribute.  In this example, the foodservice
 AND carpentry elements will be included in the output, but not the
 elements targeted to other jobs.  Untargeted elements (those with no
 "targets" attribute) are always included.
 Take a look at example2.xml and try changing the filter targets to get a
 feel for how the filter works. -->
  <property name="filter.processor" value="net.sourceforge.xmlresume.filter.Filter"/>
  <property name="filter.targets" value="foodservice carpentry"/>
  <property name="filter.extension" value="-filtered"/>
<!--
================================================================
     Stylesheets:
================================================================ -->
  <property name="html_style" value="${xsl.base}/output/${country}-html.xsl"/>
  <property name="text_style" value="${xsl.base}/output/${country}-text.xsl"/>
  <property name="fo_style" value="${xsl.base}/output/${country}-${papersize}.xsl"/>
<!--
================================================================
     END OF USER-CONFIGURABLE PARAMETERS
================================================================ -->
<!--		Target Text 		-->
  <target name="txt" description="Makes a plain-text version of the resume.">
    <java classname="${xsl.processor}">
      <arg value="-in"/>
      <arg value="${resume}.${resume.extension}"/>
      <arg value="-xsl"/>
      <arg value="${text_style}"/>
      <arg value="-out"/>
      <arg value="${resume}.txt"/>
    </java>
  </target>
<!--		Target HTML 		-->
  <target name="html" description="Makes an HTML version of the resume.">
    <java classname="${xsl.processor}">
      <arg value="-in"/>
      <arg value="${resume}.${resume.extension}"/>
      <arg value="-xsl"/>
      <arg value="${html_style}"/>
      <arg value="-out"/>
      <arg value="${resume}.html"/>
    </java>
  </target>
<!--		Target FO 		-->
  <target name="fo" description="Makes an XML FO version of the resume.">
    <java classname="${xsl.processor}">
      <arg value="-in"/>
      <arg value="${resume}.${resume.extension}"/>
      <arg value="-xsl"/>
      <arg value="${fo_style}"/>
      <arg value="-out"/>
      <arg value="${resume}.fo"/>
    </java>
  </target>
<!-- 		Target PDF 		-->
  <target depends="fo" name="pdf" description="Makes a PDF version of the resume.">
    <java classname="${pdf.processor}">
      <arg value="-fo"/>
      <arg value="${resume}.fo"/>
      <arg value="-pdf"/>
      <arg value="${resume}.pdf"/>
    </java>
  </target>
<!-- 		Target filter 		-->
  <target name="filter" description="Makes a filtered version of a resume.">
    <echo message="Writing filtered resume to ${resume}${filter.extension}"/>
    <java classname="${filter.processor}">
      <arg value="-in"/>
      <arg value="${resume}.${resume.extension}"/>
      <arg value="-out"/>
      <arg value="${resume}${filter.extension}.${resume.extension}"/>
      <arg value="${filter.targets}"/>
    </java>
  </target>
<!-- 		Target All 		-->
  <target depends="txt,html,fo,pdf" name="all" 
	description="Makes all known formats of the resume.">
	<echo message="XXX resume = ${resume}"/>
  </target>
<!-- 		Target clean 		-->
  <target description="Clean all build products." name="clean">
    <delete file="${resume}.txt"/>
    <delete file="${resume}.html"/>
    <delete file="${resume}.fo"/>
    <delete file="${resume}.pdf"/>
    <delete file="${resume}${filter.extension}.txt"/>
    <delete file="${resume}${filter.extension}.html"/>
    <delete file="${resume}${filter.extension}.fo"/>
    <delete file="${resume}${filter.extension}.pdf"/>
    <delete file="${resume}${filter.extension}.${resume.extension}"/>
  </target>
</project>