-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
55 lines (49 loc) · 2.15 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
<?xml version="1.0"?>
<project name="IBPMiddleware" default="build" basedir="."
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<property name="target.dir" location="target" />
<!--
When running this script, pass the following arguments:
-Dlib.dir=<IBPCommons lib directory> -Dmaven.home=<Maven Home directory>
For Eclipse,
-Dlib.dir=${workspace_loc:/IBPCommons/lib} -Dmaven.home=<Your Maven Home directory>
The default configuraton expects:
- you have checkout the IBPCommons project
in the same directory where you have checkout this project
- you have your maven installation
in the same directory where you have checkout this project
-->
<property name="lib.dir" location="../IBPCommons/lib" />
<property name="maven.home" value="../maven"/>
<path id="maven-ant-tasks.classpath" path="${lib.dir}/maven-ant-tasks-2.1.3.jar" />
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
uri="antlib:org.apache.maven.artifact.ant"
classpathref="maven-ant-tasks.classpath" />
<target name="build" depends="clean,install" description="Compile optimized versions for deployment">
</target>
<target name="clean" description="Remove all the compiled classes">
<artifact:mvn mavenHome="${maven.home}" fork="true">
<arg value="clean"/>
</artifact:mvn>
</target>
<target name="install">
<artifact:mvn mavenHome="${maven.home}" fork="true">
<arg value="package"/>
<arg value="install"/>
<arg value="-DskipTests=true"/>
</artifact:mvn>
</target>
<target name="copyConfig">
<copy todir="src/main/resources" overwrite="true">
<fileset dir="${basedir}/pipeline/config/ci" id="fromDir">
<include name="workbench.properties" />
</fileset>
</copy>
<copy todir="src/test/resources" overwrite="true">
<fileset dir="${basedir}/pipeline/config/ci" id="fromDir">
<include name="test-hibernate.cfg.xml" />
<include name="test.properties" />
</fileset>
</copy>
</target>
</project>