-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
76 lines (62 loc) · 2.55 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!--===========================================================================
This is the build file for the Pentaho Cassandra Project
This build file will use the subfloor.xml file as the default build
process and should only override the tasks that need to differ from
the common build file.
See subfloor.xml for more details
============================================================================-->
<project name="Pentaho Cassandra Plugin" basedir="." default="dist"
xmlns:ivy="antlib:org.apache.ivy.ant" >
<!-- For ant version below 1.8.2 -->
<defaultexcludes add="**/.gitignore"/>
<description>
This build file is used to create the Pentaho Cassandra project
and works with the subfloor.xml file.
</description>
<!-- Import the common_build.xml file which contains all the default tasks -->
<import file="build-res/subfloor-pkg.xml"/>
<!--
AS STATED ABOVE, THE ONLY TASKS THAT SHOULD EXIST IN THIS BUILD FILE ARE
THE TASKS THAT NEED TO DIFFER FROM THE DEFAULT IMPLEMENTATION OF THE TASKS
FOUND IN subfloor.xml.
-->
<target name="dist-noresolve" depends="jar,package" description="Builds and packages the application" />
<target name="dist" depends="resolve,jar,package" description="Builds and packages the application" />
<target name="clean-dist">
<delete dir="${dist.dir}" />
<delete dir="${stage.dir}" />
</target>
<target name="assemble.init">
<mkdir dir="${stage.dir}" />
<mkdir dir="${stage.dir}/${ivy.artifact.id}" />
</target>
<target name="assemble.copy-libs">
<copy todir="${stage.dir}/${ivy.artifact.id}/lib">
<fileset dir="${lib.dir}">
<exclude name="kettle-*.jar" />
<exclude name="pentaho-xul-*.jar" />
<exclude name="metro-*.jar" />
<exclude name="log4j-*.jar" />
<exclude name="jface*.jar" />
<exclude name="hadoop-*.jar" />
<exclude name="hbase-*.jar" />
<exclude name="zookeeper-*.jar" />
<exclude name="jug-*.jar" />
<exclude name="commons-codec*.jar" />
<exclude name="commons-io*.jar" />
<exclude name="commons-lang*.jar" />
<exclude name="commons-logging*.jar" />
<exclude name="commons-vfs*.jar" />
<exclude name="pentaho-vfs-browser*.jar" />
<exclude name="scannotation*.jar" />
<exclude name="metastore*.jar" />
<exclude name="dom4j*.jar" />
<exclude name="jface*.jar" />
<exclude name="x86*.jar" />
</fileset>
</copy>
<copy todir="${stage.dir}/${ivy.artifact.id}">
<fileset file="${dist.dir}/${package.basename}.jar" />
</copy>
</target>
</project>