-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
108 lines (95 loc) · 3.75 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
<!--
* ScholarLens - http://www.semanticsoftware.info/scholarlens
*
* This file is part of the ScholarLens component.
*
* Copyright (c) 2016, 2017, Semantic Software Lab, http://www.semanticsoftware.info,
* Friedrich Schiller University Jena, http://fusion.cs.uni-jena.de
* Rene Witte
* Bahar Sateli
* Felicitas Loeffler
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
-->
<project name="Semantic Scholarly Profiles Builder" basedir="." default="run"
xmlns:ivy="antlib:org.apache.ivy.ant">
<target name="init">
<!-- Make environment variables available -->
<property environment="env" />
<property name="lib.dir" location="../lib" />
<property name="src.dir" location="src" />
<property name="build.dir" value="bin"/>
<property name="program.name" location="ProfBuilder" />
<!-- location for the generated JAR file -->
<property name="jar.location" location="${program.name}.jar" />
<path id="compile.classpath">
<fileset dir="${lib.dir}" includes="**/*.jar" />
</path>
</target>
<ivy:settings file="ivysettings.xml" />
<!-- =================================
target: resolve
================================= -->
<target name="resolve" description="resolve and retrieve dependencies with ivy">
<ivy:retrieve/>
</target>
<!-- Compile the source code -->
<target name="compile" depends="init, resolve">
<javac classpathref="compile.classpath"
srcdir="${src.dir}"
destdir="${build.dir}"
debug="true"
debuglevel="lines,source"
includeantruntime="false">
<compilerarg value="-Xlint"/>
</javac>
</target>
<!-- copy resources (anything non-.java) from src to classes>
<target name="copy.resources" depends="prepare">
<copy todir="${classes.dir}">
<fileset dir="${src.dir}" excludes="**/*.java" />
</copy>
</target-->
<!-- Create the JAR file -->
<target name="jar" depends="compile" >
<copy todir="${build.dir}/lib">
<fileset dir="${lib.dir}" includes="**/*.jar" />
</copy>
<jar destfile="${jar.location}"
update="false"
basedir="${build.dir}" />
</target>
<target name="clean">
<delete file="${jar.location}" />
</target>
<target name="run" depends="jar">
<input
message="Please enter the absolute path of the triplestore: (Press enter to use the defaults)"
addproperty="dataset"
defaultvalue="/tmp/tdb" />
<input
message="Please indicate an export mode (survey or latex): (Press enter to the use defaults)"
addproperty="mode"
defaultvalue="survey" />
<java classname="info.semanticsoftware.scholarlens.ProfBuilder"
classpathref="compile.classpath">
<arg value="${dataset}"/>
<arg value="${mode}"/>
<classpath>
<pathelement location="${jar.location}"/>
</classpath>
</java>
</target>
</project>