-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
50 lines (40 loc) · 1.6 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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="rdfizer" default="bundle" basedir=".">
<property name="src" value="src/main/java" />
<property name="src_resources" value="src/main/resources" />
<property name="ant_scripts" value="${src}/org/apache/ant/scripts" />
<property name="ontology_template" value="${src_resources}/mappings/helifit/helifit.template.ttl" />
<property name="target_classes" value="target/classes" />
<property name="artifacts_dir" value="out/artifacts" />
<property name="deploy_dir" value="../matkg/lib/rdfizer" />
<target name="bundle" depends="bundle-helifit" />
<target name="bundle-compilescripts">
<mkdir dir="${target_classes}" />
<javac srcdir="${ant_scripts}" destdir="${target_classes}" includeantruntime="false" />
</target>
<target name="bundle-helifit" depends="bundle-compilescripts">
<java classname="org.apache.ant.scripts.BundleGenerator" failonerror="yes">
<arg line="helifit" />
<classpath>
<pathelement path="${target_classes}" />
</classpath>
</java>
</target>
<target name="bundle-clean">
<delete file="${ontology_template}" />
</target>
<target name="clean" depends="bundle-clean">
<delete dir="target" />
<delete dir="out" />
</target>
<target name="clean-artifacts">
<delete dir="out/artifacts" />
</target>
<target name="deploy">
<delete dir="${deploy_dir}" failonerror="false"/>
<mkdir dir="${deploy_dir}" />
<copy todir="${deploy_dir}">
<fileset dir="${artifacts_dir}/rdfizer_jar" includes="**" />
</copy>
</target>
</project>