-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
61 lines (51 loc) · 1.94 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Custom Connector Sample Plugin" default="overlay">
<!-- allow overriding of build properties -->
<property file="user.build.properties"/>
<property file="build.properties"/>
<property name="overlay" location="build/dist/overlay"/>
<path id="build.compile.classpath">
<pathelement path="${iiq.home}/WEB-INF/classes"/>
<fileset dir="${iiq.home}/WEB-INF/lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="build/jars" erroronmissingdir="false">
<include name="**/*.jar"/>
</fileset>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes" debug="true" classpathref="build.compile.classpath"
target="1.7" source="1.7" includeantruntime="last">
</javac>
<copy todir="build/classes">
<fileset dir="src">
<include name="**/*.hbm.xml"/>
</fileset>
</copy>
</target>
<target name="overlay" depends="compile" description="Output zip file overlay to build/dist dir">
<mkdir dir="${overlay}/jars"/>
<jar destfile="${overlay}/jars/customConnector.jar">
<fileset dir="build/classes">
<include name="sailpoint/plugin/**"/>
<include name="sailpoint/web/**"/>
</fileset>
</jar>
<copy todir="${overlay}">
<fileset dir="web"/>
</copy>
<copy file="./web/ui/CustomConnectorDemo.xhtml" todir="${iiq.home}/define/ui"/>
<zip basedir="${overlay}" destfile="build/dist/customConnector.${version}.zip"/>
</target>
<target name="dist" depends="overlay" description="Dev dist to IIQ home">
<mkdir dir="${iiq.home}/plugins/customConnector"/>
<unzip dest="${iiq.home}/plugins/customConnector" src="build/dist/customConnector.${version}.zip" overwrite="true"/>
</target>
</project>