You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/jaxme/files/jaxme-0.3.1-base64.diff

37 lines
1.2 KiB

--- ws-jaxme-0.3.1/buildjm.xml.orig 2006-07-30 18:46:21.000000000 +0200
+++ ws-jaxme-0.3.1/buildjm.xml 2006-07-30 19:04:24.000000000 +0200
@@ -54,6 +54,7 @@
<pathelement location="${preqs}/ant.jar"/>
<pathelement location="${preqs}/xml-apis.jar"/>
<pathelement location="${preqs}/xercesImpl.jar"/>
+ <pathelement location="${preqs}/gnu-crypto.jar"/>
</path>
<path id="jaxme.runtime.path">
--- ws-jaxme-0.3.1/src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java.orig 2006-07-30 18:49:11.000000000 +0200
+++ ws-jaxme-0.3.1/src/jaxme/org/apache/ws/jaxme/util/Base64Binary.java 2006-07-30 19:02:54.000000000 +0200
@@ -18,8 +18,7 @@
import java.io.IOException;
-import sun.misc.BASE64Decoder;
-import sun.misc.BASE64Encoder;
+import gnu.crypto.util.Base64;
/**
@@ -33,11 +32,11 @@
}
public static byte[] decode(String pValue) throws IOException {
- return (new BASE64Decoder()).decodeBuffer(pValue);
+ return Base64.decode(pValue);
}
public static String encode(byte[] pValue) {
- return (new BASE64Encoder()).encode(pValue);
+ return Base64.encode(pValue);
}
public static void main(String[] args) throws Exception {