-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·39 lines (34 loc) · 1.15 KB
/
build.xml
File metadata and controls
executable file
·39 lines (34 loc) · 1.15 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
<?xml version="1.0" ?>
<project name="twitter-crawler" default="compress">
<target name="init">
<mkdir dir="build/classes" />
<mkdir dir="dist/lib" />
</target>
<target name="compile" depends="init">
<javac srcdir="src" encoding="utf-8" destdir="build/classes" includeantruntime="false" debug="true">
<classpath>
<pathelement path="${classpath}"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="compress" depends="compile">
<jar destfile="dist/lib/twitter-crawler.jar" basedir="build/classes" />
<copy todir="dist/lib">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</copy>
<!-- <copy todir="dist/log">
<fileset dir="log">
<include name="**/*.properties"/>
</fileset>
</copy>-->
<echo file="dist/runner.sh" append="false">java -Xms16384m -Xmx16384m -classpath lib/java-json.jar:lib/gson-2.2.4.jar:lib/jsoup-1.8.1.jar:lib/twitter-crawler.jar crawler.$1 $2</echo>
</target>
<target name="clean">
<delete dir="build" />
</target>
</project>