forked from kuleszdl/Spreadsheet-Inspection-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
166 lines (135 loc) · 5.74 KB
/
build.xml
File metadata and controls
166 lines (135 loc) · 5.74 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="spreadsheet_inspection_framework">
<property environment="env" />
<property name="debuglevel" value="source,lines,vars" />
<property name="target" value="1.7" />
<property name="source" value="1.7" />
<property name="dist.dir" value="dist" />
<property name="release.dir" value="release" />
<property name="release.subdir" value="Spreadsheet Inspection Framework" />
<property name="license.file" value="LICENSE.txt" />
<property name="sifcore.version" value="0.1.2" />
<path id="spreadsheet_inspection_framework.classpath">
<pathelement location="bin" />
<pathelement location="libs/commons-logging-1.1.3.jar" />
<pathelement location="libs/dom4j-1.6.1.jar" />
<pathelement location="libs/log4j-1.2.17.jar" />
<pathelement location="libs/commons-lang3-3.1.jar" />
<pathelement location="libs/poi-3.13-20150929.jar" />
<pathelement location="libs/poi-ooxml-3.13-20150929.jar" />
<pathelement location="libs/poi-ooxml-schemas-3.13-20150929.jar" />
<pathelement location="libs/resolver.jar" />
<pathelement location="libs/stax-api-1.0.1.jar" />
<pathelement location="libs/xmlbeans-2.6.0.jar" />
<pathelement location="libs/guava-10.0.1.jar" />
<pathelement location="libs/ant-1.8.4.jar" />
</path>
<path id="spreadsheet_inspection_framework.testclasspath">
<pathelement location="libs/junit-4.12.jar" />
<pathelement location="libs/hamcrest-core-1.3.jar" />
<path refid="spreadsheet_inspection_framework.classpath" />
</path>
<target name="init">
<mkdir dir="bin" />
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.java" />
</fileset>
</copy>
<copy includeemptydirs="false" todir="bin">
<fileset dir="test">
<exclude name="**/*.java" />
</fileset>
</copy>
<copy includeemptydirs="false" todir="bin/resources">
<fileset dir="resources">
</fileset>
</copy>
<copy includeemptydirs="false" todir="${dist.dir}/libs">
<fileset dir="libs">
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin" />
<delete dir="jar" />
<delete dir="${release.dir}" />
<delete dir="${dist.dir}" />
</target>
<target depends="build-subprojects,build-project" name="build" />
<target name="build-subprojects" />
<target depends="clean,init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}" />
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}" includeantruntime="false">
<src path="src" />
<classpath refid="spreadsheet_inspection_framework.classpath" />
</javac>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}" includeantruntime="false">
<src path="test" />
<classpath refid="spreadsheet_inspection_framework.testclasspath" />
</javac>
<path id="build-classpath">
<fileset dir="${dist.dir}/libs">
<include name="*.jar" />
</fileset>
</path>
<manifestclasspath property="lib.list" jarfile="${dist.dir}/sif.jar">
<classpath refid="build-classpath" />
</manifestclasspath>
<jar jarfile="${dist.dir}/sif.jar" basedir="bin" update="false">
<manifest>
<attribute name="Main-Class" value="sif.main.Application" />
<attribute name="Class-Path" value="${lib.list}" />
</manifest>
</jar>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects" />
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
<copy todir="${ant.library.dir}">
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar" />
</copy>
<unzip dest="${ant.library.dir}">
<patternset includes="jdtCompilerAdapter.jar" />
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar" />
</unzip>
</target>
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" />
<antcall target="build" />
</target>
<target name="test" depends="build">
<!-- placeholder for running travis, just depends on default task -->
<junit printsummary="on" haltonfailure="yes">
<classpath>
<path refid="spreadsheet_inspection_framework.testclasspath" />
<pathelement location="bin"/>
</classpath>
<formatter type="brief" usefile="false" />
<test name="sif.TestSuite" />
<!--<batchtest>
<fileset dir="test" includes="**/TestSuite**.java"/>
</batchtest>-->
</junit>
</target>
<target name="build-release" depends="build">
<mkdir dir="${release.dir}" />
<mkdir dir="${release.dir}/${release.subdir}" />
<copy todir="${release.dir}/${release.subdir}">
<fileset dir="${dist.dir}" includes="**/*" />
</copy>
<copy todir="${release.dir}">
<fileset file="${license.file}"/>
</copy>
<echo file="${release.dir}/README.txt" append="false">This archive contains a binary distribution of the Spreadsheet Inspection Framework.
Visit our homepage for more details and source code: http://www.spreadsheet-inspection.org
The binaries contained in this archive are made available under the terms of the GNU GPLv3 license. Please see the file LICENSE.txt for details.
</echo>
<zip destfile="${release.dir}/sifcore-${sifcore.version}.zip"
basedir="${release.dir}"/>
</target>
</project>