-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.xml
40 lines (40 loc) · 2.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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project MedlineXmlToDatabase with libraries in sub-folder">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<property name="dist" location="dist"/>
<target name="clean" description="Delete all generated files">
<delete dir="bin"/>
<delete dir="${dist}/MedlineXmlToDatabase_lib"/>
<delete file="${dist}/MedlineXmlToDatabase.jar"/>
</target>
<target name="compile">
<mkdir dir="bin"/>
<javac srcdir="src" destdir="bin">
<classpath>
<pathelement path="lib/ojdbc6.jar"/>
</classpath>
</javac>
</target>
<target name="create_run_jar">
<jar destfile="${dist}/MedlineXmlToDatabase.jar">
<manifest>
<attribute name="Main-Class" value="org.ohdsi.medlineXmlToDatabase.MainClass"/>
<attribute name="Class-Path" value=". MedlineXmlToDatabase_lib/dom4j-1.6.1.jar MedlineXmlToDatabase_lib/mysql-connector-java-5.1.30-bin.jar MedlineXmlToDatabase_lib/ojdbc5.jar MedlineXmlToDatabase_lib/ojdbc6.jar MedlineXmlToDatabase_lib/postgresql-9.3-1101.jdbc4.jar MedlineXmlToDatabase_lib/postgresql-9.3-1101.jdbc41.jar MedlineXmlToDatabase_lib/sqljdbc4.jar MedlineXmlToDatabase_lib/stax-api-1.0.1.jar MedlineXmlToDatabase_lib/xmlbeans-2.3.0.jar"/>
</manifest>
<fileset dir="bin"/>
<zipfileset dir="src/org/ohdsi/medlineXmlToDatabase" prefix="org/ohdsi/medlineXmlToDatabase" includes="*.csv"/>
</jar>
<delete dir="${dist}/MedlineXmlToDatabase_lib"/>
<mkdir dir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/dom4j-1.6.1.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/mysql-connector-java-5.1.30-bin.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/ojdbc5.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/ojdbc6.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/postgresql-9.3-1101.jdbc4.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/postgresql-9.3-1101.jdbc41.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/sqljdbc4.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/stax-api-1.0.1.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
<copy file="lib/xmlbeans-2.3.0.jar" todir="${dist}/MedlineXmlToDatabase_lib"/>
</target>
</project>