-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
89 lines (67 loc) · 2.79 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
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="physionetAnalysisService" basedir="." default="deployAnalysisService">
<property name="projectName" value="nodeConversionService"/>
<property name="liferay" value="/opt/liferay" />
<property name="liferay-sdk" value="${liferay}/liferay-plugins-sdk-6.1.1"/>
<property file="${liferay-sdk}/build.${user.name}.properties" />
<property name="portlet-ext" value="/opt/liferay/portlet-ext"/>
<property name="axis2deployFolder" value="${app.server.dir}/webapps/axis2/WEB-INF/services"/>
<property name="dependencies" value="${liferay}/projects-dependencies" />
<path id="project-classpath">
<fileset dir="${dependencies}/${ant.project.name}-dependencies">
<include name="*.jar"/>
</fileset>
</path>
<target name="copyDependenciesToServer">
<copy todir="${app.server.dir}/webapps/axis2/WEB-INF/lib">
<fileset dir="${dependencies}/${ant.project.name}-dependencies">
<include name="*.jar"/>
</fileset>
</copy>
</target>
<target name="cleanAll">
<echo>Clean the temporary area</echo>
<delete dir="build"/>
</target>
<target name="compileService" depends="cleanAll">
<!-- DROPBOX FEATURE
<mkdir dir="${dependencies}"/>
<mkdir dir="${dependencies}/${ant.project.name}-dependencies"/>
<copy todir="${dependencies}/${ant.project.name}-dependencies">
<fileset dir="${dropbox.home}/jars/projects-dependencies/${ant.project.name}-dependencies">
<include name="*.jar"/>
</fileset>
</copy>
-->
<echo>Create the temporary area</echo>
<mkdir dir="build"/>
<mkdir dir="build/class"/>
<javac target="1.5" classpathref="project-classpath" srcdir="src" includes="edu/**/serviceDescriptionData/*" destdir="build/class" debug="true"/>
<javac target="1.5" classpathref="project-classpath" srcdir="src" includes="edu/**/${projectName}/**" excludes="edu/**/${projectName}/**/test/*" destdir="build/class" debug="true"/>
<jar destfile="Aar/${projectName}.aar" basedir="build/class">
<metainf dir="Aar/meta-inf" />
<include name="**/**"/>
</jar>
<antcall target="cleanAll" />
</target>
<target name="deployService">
<copy todir="${axis2deployFolder}">
<fileset dir="Aar">
<include name="${projectName}.aar"/>
</fileset>
</copy>
<echo>Project ${projectName} deployed!</echo>
<echo>Please add the ${projectName}.aar reference on the ${axis2deployFolder}/services.list</echo>
</target>
<target name="compileAnalysisService">
<antcall target="compileService">
<param name="projectName" value="physionetAnalysisService"/>
</antcall>
</target>
<target name="deployAnalysisService" depends="compileAnalysisService">
<antcall target="deployService">
<param name="projectName" value="physionetAnalysisService"/>
</antcall>
</target>
</project>