This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
137 lines (122 loc) · 4.63 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" ?>
<project name="sbol" default="plugin" basedir=".">
<property file="plugin.properties"/>
<property name="build" location="build"/>
<property name="classes" location="classes"/>
<property name="src" location="src"/>
<property name="plugin.src" location="plugin/src"/>
<property name="versioning.src" location="versioning/src"/>
<property name="servlet.src" location="servlet/src"/>
<property name="main.class" value="com.clarkparsia.sbol.editor.SBOLDesigner"/>
<property name="output.file" location="${build}/${short-plugin-name}-${plugin-version}"/>
<path id="classpath">
<fileset dir="../GeneiousFiles/lib">
<include name="GeneiousPublicAPI.jar"/>
<include name="jdom.jar"/>
<include name="jebl.jar"/>
<include name="guava-r09.jar"/>
</fileset>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<fileset dir="versioning/lib">
<include name="*.jar"/>
</fileset>
</path>
<path id="classpath-designer">
<fileset dir="../GeneiousFiles/lib">
<include name="guava-r09.jar"/>
</fileset>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<path id="classpath-servlet">
<path refid="classpath-designer"/>
<fileset dir="servlet/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name= "plugin" depends="compile-plugin" description="Builds the Geneious plugin">
<jar jarfile="${output.file}.gplugin">
<fileset dir="${classes}"/>
<fileset dir="">
<include name="plugin.properties"/>
</fileset>
<fileset dir="src">
<include name="**/*.owl"/>
<include name="**/*.rdf"/>
<include name="**/*.png"/>
<include name="**/*.gif"/>
</fileset>
<zipgroupfileset dir="lib" includes="*.jar"/>
</jar>
<echo message="Created ${output.file}.gplugin"/>
</target>
<target name="designer" depends="compile-designer" description="Builds the standalone SBOL designer">
<jar jarfile="${output.file}.jar">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
<fileset dir="${classes}"/>
<fileset dir="">
<include name="plugin.properties"/>
<include name="${src}/logging.properties"/>
</fileset>
<fileset dir="src">
<include name="**/*.owl"/>
<include name="**/*.rdf"/>
<include name="**/*.png"/>
<include name="**/*.gif"/>
</fileset>
<zipgroupfileset dir="lib" includes="*.jar"/>
<zipgroupfileset dir="../GeneiousFiles/lib" includes="guava-r09.jar"/>
</jar>
</target>
<target name="servlet" depends="compile-servlet" description="Builds the SBOL visual servlet">
<war destfile="${output.file}.war" webxml="servlet/WEB-INF/web.xml">
<classes dir="${classes}"/>
<classes dir="">
<include name="plugin.properties"/>
<include name="${src}/logging.properties"/>
</classes>
<classes dir="src">
<include name="**/*.owl"/>
<include name="**/*.rdf"/>
<include name="**/*.png"/>
<include name="**/*.gif"/>
</classes>
<lib dir="lib" includes="*.jar"/>
<lib dir="../GeneiousFiles/lib" includes="guava-r09.jar"/>
</war>
</target>
<target name="compile-plugin" depends="prepare">
<javac destdir="${classes}" debug="true" target="1.5">
<classpath refid="classpath"/>
<src path="${src}"/>
<src path="${plugin.src}"/>
<src path="${versioning.src}"/>
</javac>
</target>
<target name="compile-designer" depends="prepare">
<javac destdir="${classes}" debug="true" target="1.5">
<classpath refid="classpath-designer"/>
<src path="${src}"/>
<src path="${versioning.src}"/>
</javac>
</target>
<target name="compile-servlet" depends="compile-designer">
<javac destdir="${classes}" debug="true" target="1.5">
<classpath refid="classpath-servlet"/>
<src path="${servlet.src}"/>
</javac>
</target>
<target name="prepare">
<mkdir dir="${build}"/>
<mkdir dir="${classes}"/>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${classes.base}"/>
</target>
</project>