From 5c0ba20f4402dd50cecbac4d8e32f2463f380759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Hall=C3=A9?= Date: Thu, 4 Apr 2019 15:51:27 +0200 Subject: [PATCH] Small compilation bugfix --- .gitignore | 10 +- Core/src/ca/uqac/lif/buffertannen/Main.java | 4 +- .../lif/buffertannen/message/BitSequence.java | 7 +- build.xml | 138 ++++++++++-------- config.xml | 3 +- 5 files changed, 94 insertions(+), 68 deletions(-) diff --git a/.gitignore b/.gitignore index cccb850..3f8ad7c 100644 --- a/.gitignore +++ b/.gitignore @@ -14,10 +14,10 @@ **/doc/ lib/ doxygen/ -/dep/ -/tests/ -/html/ -/cov-int/ +dep/ +tests/ +html/ +cov-int/ # Top-level jar, but not jars in subfolders (if any) *.jar @@ -67,4 +67,4 @@ jacoco.exec *.iml out/ -beepbeep*.zip \ No newline at end of file +beepbeep*.zip diff --git a/Core/src/ca/uqac/lif/buffertannen/Main.java b/Core/src/ca/uqac/lif/buffertannen/Main.java index ad95fff..9851b58 100644 --- a/Core/src/ca/uqac/lif/buffertannen/Main.java +++ b/Core/src/ca/uqac/lif/buffertannen/Main.java @@ -1,6 +1,6 @@ /* Buffer Tannen, a binary message protocol - Copyright (C) 2013-2018 Sylvain Hallé + Copyright (C) 2013-2019 Sylvain Hallé This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published @@ -32,7 +32,7 @@ public static String getVersionString() public static void main(String[] args) { System.out.println("Buffer Tannen v" + s_versionString + " - Binary protocol"); - System.out.println("(C) 2013-2018 Laboratoire d'informatique formelle\nUniversité du Québec à Chicoutimi, Canada"); + System.out.println("(C) 2013-2019 Laboratoire d'informatique formelle\nUniversité du Québec à Chicoutimi, Canada"); System.out.println("This jar file is not meant to be run stand-alone"); } } diff --git a/Core/src/ca/uqac/lif/buffertannen/message/BitSequence.java b/Core/src/ca/uqac/lif/buffertannen/message/BitSequence.java index 24a13da..3c75432 100644 --- a/Core/src/ca/uqac/lif/buffertannen/message/BitSequence.java +++ b/Core/src/ca/uqac/lif/buffertannen/message/BitSequence.java @@ -1,6 +1,6 @@ /* Buffer Tannen, a binary message protocol - Copyright (C) 2013-2018 Sylvain Hallé + Copyright (C) 2013-2019 Sylvain Hallé This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published @@ -265,7 +265,7 @@ public void fromByteString(String s) throws BitFormatException */ public void fromBase64(String s) throws BitFormatException { - byte[] data = Base64.decodeBase64(s); + byte[] data = Base64.decodeBase64(s.getBytes()); readFromBytes(data, data.length * 8); } @@ -276,7 +276,8 @@ public void fromBase64(String s) throws BitFormatException public String toBase64() { byte[] data = toByteArray(); - return Base64.encodeBase64String(data); + String out = new String(Base64.encodeBase64(data)); + return out; } /** diff --git a/build.xml b/build.xml index e8b0eb8..22e852d 100755 --- a/build.xml +++ b/build.xml @@ -1,7 +1,7 @@ - + @@ -91,11 +91,17 @@ + + + + + rt.jar + - - + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + - + - + - - - - - - - + @@ -185,18 +213,11 @@ srcdir="${build.test.srcdir}" destdir="${build.test.bindir}" includeantruntime="false"> - - - - - - - - - + + @@ -205,6 +226,7 @@ --> + ]]>${build.name}]]> Copyright © ]]>${build.author}]]> - - - - - - - - - + + + + + + + + + - + @@ -273,18 +295,12 @@ - - - - - - - + - + @@ -411,7 +427,7 @@ Download boot classpath for Java 1.6 and put it in the root folder --> - + @@ -445,7 +461,7 @@ - + @@ -468,7 +484,7 @@ - + @@ -494,46 +510,54 @@ + + + + + + + + - + - + - + - + - - - - - - + + + + + + + - - + \ No newline at end of file diff --git a/config.xml b/config.xml index 0d7eb0b..291f429 100755 --- a/config.xml +++ b/config.xml @@ -63,8 +63,9 @@ Commons Codec org.apache.commons.codec.binary.Base64 - http://apache.mirror.rafal.ca/commons/codec/binaries/commons-codec-1.11-bin.zip + http://archive.apache.org/dist/commons/codec/commons-codec-1.1.zip + true