forked from tingley/okapi-ant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
57 lines (51 loc) · 2.34 KB
/
build.xml
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
<project name="test" default="build" basedir="."
xmlns:okapi="antlib:com.spartansoftwareinc.okapi.ant">
<property name="okapi.lib" value="/Applications/okapi-apps_cocoa-macosx-x86_64_0.21/lib/" />
<!-- The task needs both its own code and an okapi installation to
- load. -->
<path id="okapi.classpath">
<fileset dir="${okapi.lib}" includes="**/*.jar" />
<fileset dir="target" includes="okapi-ant-1.0-SNAPSHOT.jar" />
</path>
<!-- Load all the tasks in the okapi namespace. -->
<taskdef uri="antlib:com.spartansoftwareinc.okapi.ant"
resource="com/spartansoftwareinc/okapi/ant/antlib.xml"
classpathref="okapi.classpath" />
<target name="build">
<!-- First method: from explicit pipeline -->
<okapi:mkbconf pipeline="config/pipeline.pln"
bconfPath="output.bconf"
filterConfigDir="config">
<fileset dir="config" includes="**/*.jar"/>
<!-- custom filter configuration; the task will look in
- ${filterConfigDir} to find it. -->
<filterMapping extension=".xml" filterConfig="okf_xmlstream@cdata" />
<!-- filter configuration from a custom filter contained in a
- plugin
<filterMapping extension="" filterConfig="okf_foo" />
-->
</okapi:mkbconf>
<delete dir="t" failonerror="no"/>
<mkdir dir="t"/>
<okapi:installbconf bconf="output.bconf" dir="t" />
<!-- Second method: from rainbow settings (.rnb). This will
include both the pipeline from the RNB and any non-default
filter mappings it defines. -->
<okapi:mkbconf settings="config/settings.rnb"
bconfPath="output2.bconf"
filterConfigDir="config">
<!--
<fileset dir="config" includes="**/*.jar"/>
-->
<!--
- filter configs are imported from the rnb file; these are
- then added.
<filterMapping extension=".xml" filterConfig="okf_xmlstream@cdata" />
-->
<filterMapping extension="" filterConfig="okf_xml" />
</okapi:mkbconf>
<delete dir="t2" failonerror="no"/>
<mkdir dir="t2"/>
<okapi:installbconf bconf="output2.bconf" dir="t2" />
</target>
</project>