-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
60 lines (41 loc) · 1.8 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
<!--===========================================================================
This is the build file for the Pentaho Agile BI 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="Karaf Plugin" basedir="." default="dist"
xmlns:ivy="antlib:org.apache.ivy.ant" >
<property name="karaf-version" value="2.2.4"/>
<description>
Example project to providing a new Spoon Perspective and hooking into the
menu system.
</description>
<!-- Import the common_build.xml file which contains all the default tasks -->
<import file="build-res/subfloor-pkg.xml"/>
<target name="assemble.init">
<mkdir dir="${approot.stage.dir}" />
<if>
<available file="build-res/apache-karaf-${karaf-version}.zip"/><then/>
<else>
<get src="http://mirrors.ibiblio.org/apache/karaf/${karaf-version}/apache-karaf-${karaf-version}.zip" dest="build-res/apache-karaf-${karaf-version}.zip"/>
<unzip src="build-res/apache-karaf-${karaf-version}.zip" dest="build-res" />
</else>
</if>
<copy todir="${approot.stage.dir}/karaf">
<fileset dir="build-res/apache-karaf-${karaf-version}" includes="**" />
</copy>
<copy file="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar" todir="${approot.stage.dir}"/>
</target>
<target name="assemble.copy-libs">
<copy todir="${approot.stage.dir}/lib">
<fileset dir="${lib.dir}">
<include name="org*.jar"/>
</fileset>
</copy>
<copy todir="${approot.stage.dir}/lib">
<fileset dir="dev-lib" includes="*.jar"/>
</copy>
</target>
</project>