[or-cvs] [ernie/master] Replace shell scripts with Ant build file.
karsten at torproject.org
karsten at torproject.org
Tue Apr 13 17:25:46 UTC 2010
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Tue, 13 Apr 2010 19:25:07 +0200
Subject: Replace shell scripts with Ant build file.
Commit: 1891e9d5978237ac23ef7563f1873d29cfeb83d5
---
build.xml | 27 +++++++++++++++++++++++++++
compile.sh | 2 --
run.sh | 3 ++-
3 files changed, 29 insertions(+), 3 deletions(-)
create mode 100644 build.xml
delete mode 100755 compile.sh
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..a2fc989
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,27 @@
+<project default="run" name="ERNIE" basedir=".">
+ <property name="sources" value="src/"/>
+ <property name="classes" value="bin/"/>
+ <property name="docs" value="javadoc/"/>
+ <target name="init">
+ <mkdir dir="${classes}"/>
+ </target>
+ <target name="compile" depends="init">
+ <javac srcdir="${sources}"
+ destdir="${classes}"
+ classpath="lib/commons-codec-1.4.jar;lib/commons-compress-1.0.jar"/>
+ </target>
+ <target name="run" depends="compile">
+ <java classpath="${classes};lib/commons-codec-1.4.jar:lib/commons-compress-1.0.jar;postgresql-8.4-701.jdbc4.jar"
+ fork="true"
+ maxmemory="1024m"
+ classname="Main"/>
+ </target>
+ <target name="docs">
+ <mkdir dir="${docs}"/>
+ <javadoc destdir="${docs}"
+ classpath="lib/commons-codec-1.4.jar;lib/commons-compress-1.0.jar">
+ <fileset dir="${sources}/" includes="**/*.java" />
+ </javadoc>
+ </target>
+</project>
+
diff --git a/compile.sh b/compile.sh
deleted file mode 100755
index a18231f..0000000
--- a/compile.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-javac -d bin/ -cp src:lib/commons-codec-1.4.jar:lib/commons-compress-1.0.jar src/*.java
diff --git a/run.sh b/run.sh
index 3fef684..cc885db 100755
--- a/run.sh
+++ b/run.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-java -Xms128m -Xmx1024m -cp bin/:lib/commons-codec-1.4.jar:lib/commons-compress-1.0.jar:lib/postgresql-8.4-701.jdbc4.jar Main
+# TODO is there a better way to suppress Ant's output?
+ant -q | grep -Ev "^$|^BUILD SUCCESSFUL|^Total time: "
--
1.6.5
More information about the tor-commits
mailing list