-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
58 lines (51 loc) · 2.84 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="oimadmin-release" default="release">
<property file="build.properties"/>
<include file="build-util.xml"/>
<property name="artifacts.temp.manifest.dir" value="${module.oimadmin.basedir}/target/generated-sources/manifest"/>
<target name="update-release-jar" depends="oimadmin.init.artifacts" description="Removes signature from given file">
<mkdir dir="${artifacts.temp.manifest.dir}"/>
<copyfile src="${module.oimadmin.basedir}/src/main/resources/META-INF/MANIFEST.MF" dest="${artifacts.temp.manifest.dir}/MANIFEST.MF"/>
<manifest mode="update" file="${artifacts.temp.manifest.dir}/MANIFEST.MF">
<section name="sysadmin++">
<attribute name="Specification-Title" value="Oracle Identity Manager"/>
<attribute name="Specification-Version" value="11g R2"/>
<attribute name="Specification-Vendor" value="Oracle"/>
<attribute name="Implementation-Title" value="sysadmin++"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="Implementation-Vendor" value="Shekhar Jha"/>
</section>
</manifest>
<jar update="true" file="${temp.jar.path.OIMAdmin.jar}"
manifest="${artifacts.temp.manifest.dir}/MANIFEST.MF"/>
<!--exec executable="zip">
<arg value="-d"/>
<arg value="${temp.jar.path.OIMAdmin.jar}"/>
<arg value="*.RSA"/>
<arg value="*.SF"/>
<arg value="*.DSA"/>
</exec-->
<copy file="${temp.jar.path.OIMAdmin.jar}" tofile="${artifact.output.oimadmin:jar}/OIMAdmin.jar"/>
</target>
<target name="build" depends="oimadmin.build.modules" description="Builds all components">
<delete dir="${artifacts.temp.dir}"/>
</target>
<target name="run" depends="build" description="Executes the application">
<java classname="com.jhash.oimadmin.ui.OIMAdmin" fork="true">
<jvmarg value="-Dapple.laf.useScreenMenuBar=true -Xdock:name=sysadmin++"/>
<classpath refid="oimadmin.runtime.module.classpath"/>
</java>
</target>
<target name="release" depends="clean, build, oimadmin.build.all.artifacts, update-release-jar"
description="Builds the component for release">
<zip destfile="${artifact.output.oimadmin:jar}/configuration.zip" duplicate="preserve">
<zipfileset dir="${basedir}/src/main/resources" includes="conf/**/*"/>
</zip>
<delete dir="${artifacts.temp.dir}"/>
</target>
<target name="clean" depends="oimadmin.init.artifacts, oimadmin.clean"
description="Cleans all the intermediate and release files">
<delete dir="${artifacts.temp.manifest.dir}"/>
<delete dir="${artifacts.temp.dir}"/>
</target>
</project>