-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
93 lines (77 loc) · 3.18 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- ========================================================
Copyright 2016 Marco Lombardo
https://github.com/mar9000
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
============================================================= -->
<project name="store2latex" default="compile" basedir=".">
<description>
Build Store2Latex.
</description>
<property environment="env"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="build.dir" value="${basedir}/classes"/>
<property name="lib.dir" value="${basedir}/lib"/>
<path id="compile.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<path id="runtime.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</path>
<property name="compile.debug" value="true"/>
<property name="compile.deprecation" value="false"/>
<property name="compile.optimize" value="true"/>
<target name="check-environment">
<mkdir dir="${build.dir}"/>
</target>
<target name="clean" description="Clean environment.">
<delete includeEmptyDirs="true">
<fileset dir="${build.dir}" includes="**/*"/>
</delete>
</target>
<target name="compile" depends="check-environment"
description="Compile java sources.">
<javac srcdir="${src.dir}"
destdir="${build.dir}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
<classpath refid="compile.classpath"/>
</javac>
<!-- Copy files other than java. -->
<copy todir="${build.dir}" preservelastmodified="true" overwrite="true">
<fileset dir="${src.dir}">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="example-download-page" depends="compile"
description="Run the download example.">
<mkdir dir="${basedir}/examples/MPS-page/download"/>
<java classname="org.mar9000.space2latex.Space2Latex">
<classpath refid="runtime.classpath"/>
<arg line="--command=download --url=https://confluence.jetbrains.com/rest/api/content/59935365 --limit=7 --dest-dir=${basedir}/examples/MPS-page/download"/>
</java>
</target>
<target name="example-format-page" depends="compile"
description="Run the download example.">
<mkdir dir="${basedir}/examples/MPS-page/latex"/>
<java classname="org.mar9000.space2latex.Space2Latex">
<classpath refid="runtime.classpath"/>
<arg line="--command=format --dest-dir=${basedir}/examples/MPS-page/download --latex-dir=${basedir}/examples/MPS-page/latex"/>
</java>
</target>
</project>