This repository was archived by the owner on Nov 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
48 lines (41 loc) · 1.45 KB
/
build.xml
File metadata and controls
48 lines (41 loc) · 1.45 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
<project name="logpp" default="dist" basedir=".">
<description>
Handle log preprocessor.
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}" includeantruntime="false" destdir="${build}" target="1.8" source="1.8" debug="true"/>
<!-- Allow to load etld from ant run -->
<copy todir="${build}">
<fileset file="resources/public_suffix_list.dat.txt" />
</copy>
</target>
<target name="jar" depends="compile" description="generate the distribution">
<mkdir dir="${dist}/lib"/>
<jar destfile="${dist}/Main.jar" basedir="${build}">
<manifest><attribute name="Main-Class" value="logpp.Main" /></manifest>
<!-- ALlow to load etld from jar -->
<fileset file="resources/public_suffix_list.dat.txt" />
</jar>
</target>
<target name="run" depends="compile">
<java classname="logpp.Main" classpath="${build}" fork="true">
<arg value="${arg0}"/>
<arg value="${arg1}"/>
<jvmarg value="-Xms6G"/>
<jvmarg value="-Xmx6G" />
</java>
</target>
<target name="clean"
description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>