-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
102 lines (82 loc) · 3.78 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
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
<?xml version="1.0"?>
<!--
Copyright 2018 NEOautus Ltd. (http://neoautus.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
-->
<project name="lucidj-admind" default="build-all">
<import>
<fileset dir="${basedir}" includes="configure.xml"/>
<fileset dir=".." includes="configure.xml"/>
</import>
<target name="getlibs" depends="configure.getlibs">
<resolvePath id="admind/logging">
<dependency org="org.ops4j.pax.logging" name="pax-logging-api" rev="1.10.1" transitive="false"/>
</resolvePath>
<getDependency group="project-libs"
org="org.lucidj.stddef" name="org.lucidj.api.stddef" rev="1.0.1"/>
<path id="project-libs">
<fileset dir="${libcache.dir}" includes="project-libs/**/*.jar"/>
</path>
<path id="project-api">
<fileset dir="${artifacts.dir}" includes="api/*.jar"/>
</path>
</target>
<target name="build-ext" depends="init">
<!-- The adminutil.jar extension library is kept as classic jar
on purpose, because it should be embedded into another bundles
which need these classes.
-->
<build.classic.jar src="api/src/org/lucidj/admind/shared"
name="lucidj-adminutil" version="1.1.0" outfileProperty="ext.jar"/>
<artifact file="${ext.jar}" group="shared"/>
<publish file="${ext.jar}" org="org.lucidj.admind" name="org.lucidj.admind.adminutil" rev="1.1.0"/>
</target>
<target name="build-api" depends="init">
<build.module dir="api" symbolicName="org.lucidj.api.admind" version="1.1.0"
exports="org.lucidj.api.admind;version=1.1.0,org.lucidj.admind.shared;version=1.1.0"
deploy="${deploy.flag}" ipojo="false" outfileProperty="api.jar">
<classpath>
<path refid="project-libs"/>
</classpath>
</build.module>
<artifact file="${api.jar}" group="api"/>
<publish file="${api.jar}" org="org.lucidj.admind" name="org.lucidj.api.admind" rev="1.1.0"/>
</target>
<target name="build-admind" depends="init">
<build.module dir="admind" symbolicName="org.lucidj.admind" version="1.1.0"
deploy="${deploy.flag}" ipojo="false" outfileProperty="core.jar">
<classpath>
<path refid="admind/logging"/>
<path refid="project-libs"/>
<path refid="project-api"/>
</classpath>
</build.module>
<publish file="${core.jar}" org="org.lucidj.admind" name="org.lucidj.admind.core" rev="1.1.0"/>
</target>
<target name="build-examples" depends="init">
<subant buildpath="${basedir}/examples">
<property name="deploy.flag" value="${deploy.flag}"/>
<property name="dist.dir" value="${dist.dir}"/>
</subant>
</target>
<target name="build-all" >
<!-- Default for deploy -->
<property name="deploy.flag" value="false"/>
<antcall target="build-api"/>
<antcall target="build-ext"/>
<antcall target="build-admind"/>
<antcall target="build-examples"/>
</target>
<target name="deploy-all">
<property name="deploy.flag" value="true"/>
<antcall target="build-all"/>
</target>
</project>