diff options
author | Florian Dold <florian.dold@gmail.com> | 2012-04-23 07:42:45 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2012-04-23 07:42:45 +0000 |
commit | bcc0c8981667f5849d5f1942cad5c992c6a73696 (patch) | |
tree | 8396f2d6b85699b3d676fb4c70264299de9721e9 | |
parent | 9c9674e7427f8be8579c6d0c9893ece0764a54a1 (diff) | |
download | gnunet-java-ext-bcc0c8981667f5849d5f1942cad5c992c6a73696.tar.gz gnunet-java-ext-bcc0c8981667f5849d5f1942cad5c992c6a73696.zip |
fix
-rw-r--r-- | README | 3 | ||||
-rwxr-xr-x | bin/gnunet-ext | 2 | ||||
-rwxr-xr-x | tools/build | 6 |
3 files changed, 8 insertions, 3 deletions
@@ -1 +1,4 @@ | |||
1 | Template directory for gnunet extensions. | 1 | Template directory for gnunet extensions. |
2 | |||
3 | tools/build: script to build the extension, if it adheres to the default folder structure | ||
4 | tools/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 | ||
5 | BASEDIR=`dirname $0`/.. | 5 | BASEDIR=`dirname $0`/.. |
6 | 6 | ||
7 | source $BASEDIR/extcfg.sh | 7 | source $BASEDIR/envcfg |
8 | 8 | ||
9 | java -ea -cp "$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS/*" org.gnunet.ext.MyExt "$@" | 9 | java -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 | ||
6 | BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/.. | 6 | BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/.. |
7 | 7 | ||
8 | source $BASEDIR/envcfg | ||
8 | 9 | ||
9 | source $BASEDIR/extcfg.sh | 10 | CLASSPATH="$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS" |
10 | 11 | ||
12 | echo "using classpath $CLASSPATH" | ||
11 | 13 | ||
12 | # collect all source files | 14 | # collect all source files |
13 | SOURCES=`find "$BASEDIR/src/" "$BASEDIR/test/" -name "*.java"` | 15 | SOURCES=`find "$BASEDIR/src/" "$BASEDIR/test/" -name "*.java"` |
14 | 16 | ||
15 | mkdir -p $BASEDIR/build | 17 | mkdir -p $BASEDIR/build |
16 | 18 | ||
17 | javac $JFLAGS -cp "$BASEDIR/build/:$BASEDIR/lib/*:$GNUNET_JAVA_CLASSPATH:$GNUNET_JAVA_DEPS" -d $BASEDIR/build/ $SOURCES | 19 | javac $JFLAGS -cp $CLASSPATH -d $BASEDIR/build/ $SOURCES |
18 | 20 | ||
19 | cd "$BASEDIR/src/" | 21 | cd "$BASEDIR/src/" |
20 | 22 | ||