aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2012-04-23 07:42:45 +0000
committerFlorian Dold <florian.dold@gmail.com>2012-04-23 07:42:45 +0000
commitbcc0c8981667f5849d5f1942cad5c992c6a73696 (patch)
tree8396f2d6b85699b3d676fb4c70264299de9721e9
parent9c9674e7427f8be8579c6d0c9893ece0764a54a1 (diff)
downloadgnunet-java-ext-bcc0c8981667f5849d5f1942cad5c992c6a73696.tar.gz
gnunet-java-ext-bcc0c8981667f5849d5f1942cad5c992c6a73696.zip
fix
-rw-r--r--README3
-rwxr-xr-xbin/gnunet-ext2
-rwxr-xr-xtools/build6
3 files changed, 8 insertions, 3 deletions
diff --git a/README b/README
index 84a40b3..06a2112 100644
--- a/README
+++ b/README
@@ -1 +1,4 @@
1Template directory for gnunet extensions. 1Template directory for gnunet extensions.
2
3tools/build: script to build the extension, if it adheres to the default folder structure
4tools/update-msgtypes: extract a mapping from message IDs to java classes from the source code
diff --git a/bin/gnunet-ext b/bin/gnunet-ext
index 5df452f..e0146f6 100755
--- a/bin/gnunet-ext
+++ b/bin/gnunet-ext
@@ -4,7 +4,7 @@
4 4
5BASEDIR=`dirname $0`/.. 5BASEDIR=`dirname $0`/..
6 6
7source $BASEDIR/extcfg.sh 7source $BASEDIR/envcfg
8 8
9java -ea -cp "$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS/*" org.gnunet.ext.MyExt "$@" 9java -ea -cp "$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS/*" org.gnunet.ext.MyExt "$@"
10 10
diff --git a/tools/build b/tools/build
index 944d230..3ca8a76 100755
--- a/tools/build
+++ b/tools/build
@@ -5,16 +5,18 @@
5 5
6BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/.. 6BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
7 7
8source $BASEDIR/envcfg
8 9
9source $BASEDIR/extcfg.sh 10CLASSPATH="$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS"
10 11
12echo "using classpath $CLASSPATH"
11 13
12# collect all source files 14# collect all source files
13SOURCES=`find "$BASEDIR/src/" "$BASEDIR/test/" -name "*.java"` 15SOURCES=`find "$BASEDIR/src/" "$BASEDIR/test/" -name "*.java"`
14 16
15mkdir -p $BASEDIR/build 17mkdir -p $BASEDIR/build
16 18
17javac $JFLAGS -cp "$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS" -d $BASEDIR/build/ $SOURCES 19javac $JFLAGS -cp $CLASSPATH -d $BASEDIR/build/ $SOURCES
18 20
19cd "$BASEDIR/src/" 21cd "$BASEDIR/src/"
20 22