-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbuild.xml
More file actions
83 lines (73 loc) · 3.43 KB
/
build.xml
File metadata and controls
83 lines (73 loc) · 3.43 KB
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
<!--
~ Copyright (c) 2013 Denis Mikhalkin.
~
~ This software is provided to you 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="apacheds_awsiam" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant" default="package"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<property name="ivy.lib.dir" location="${basedir}/ivylib"/>
<property name="outdir" location="${basedir}/ivyout" />
<property name="distdir" location="${basedir}/dist/apacheds" />
<property name="targetdir" location="${basedir}/target/apacheds" />
<path id="ivy.lib.path">
<fileset dir="${basedir}/build" includes="*.jar"/>
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml"
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
<ivy:settings file="${basedir}/ivysettings.xml" />
<ivy:retrieve />
<target name="compile">
<delete dir="${outdir}" failonerror="false" />
<mkdir dir="${outdir}" />
<javac srcdir="${basedir}/src" destdir="${basedir}/ivyout" debug="true" debuglevel="lines,vars,source">
<classpath>
<fileset dir="${ivy.lib.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="package" depends="compile">
<jar jarfile="${basedir}/apacheds_awsiam.jar">
<fileset dir="${outdir}" includes="**/*.class" />
<fileset dir="${distdir}" includes="*.ldif" />
</jar>
<copy todir="${targetdir}/lib" file="${basedir}/apacheds_awsiam.jar" />
</target>
<target name="dist" depends="clean,package">
<delete dir="${targetdir}"/>
<mkdir dir="${targetdir}" />
<loadproperties srcfile="version"/>
<copy file="${basedir}/INSTALL.md" todir="${targetdir}"/>
<copy todir="${targetdir}">
<fileset dir="${distdir}" />
</copy>
<copy file="${distdir}/iam.ldif" todir="${targetdir}" />
<!--<copy file="${distdir}/modify.ldif" todir="${targetdir}" />-->
<!--<copy file="${distdir}/enable_nis.ldif" todir="${targetdir}" />-->
<!--<copy file="${distdir}/auth.ldif" todir="${targetdir}" />-->
<copy todir="${targetdir}/lib">
<fileset dir="${ivy.lib.dir}" includes="**/*.jar" excludes="*javadoc*,*sources*"/>
</copy>
<copy todir="${targetdir}/lib" file="${basedir}/apacheds_awsiam.jar" />
<delete file="${basedir}/target/apacheds*.zip" failonerror="false" />
<zip file="${basedir}/target/apacheds-${release}.zip" basedir="${basedir}/target"/>
<unzip src="${targetdir}/instances/default.zip" dest="${targetdir}/instances/"/>
</target>
<target name="clean">
<delete dir="${outdir}" failonerror="false"/>
<delete dir="${targetdir}" failonerror="false"/>
</target>
</project>