Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Energy ADE
ADE Xjc
Commits
27eb2f0e
Commit
27eb2f0e
authored
Mar 24, 2017
by
Claus Nagel
Browse files
even more flexible support for JAXB plugins
parent
2069595d
Changes
21
Hide whitespace changes
Inline
Side-by-side
src/org/citygml4j/ade_xjc/Util.java
View file @
27eb2f0e
...
@@ -27,6 +27,9 @@ import java.io.FileNotFoundException;
...
@@ -27,6 +27,9 @@ import java.io.FileNotFoundException;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.math.BigInteger
;
import
java.math.BigInteger
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
import
java.nio.file.Path
;
import
java.security.MessageDigest
;
import
java.security.MessageDigest
;
import
java.security.NoSuchAlgorithmException
;
import
java.security.NoSuchAlgorithmException
;
...
@@ -89,4 +92,24 @@ public class Util {
...
@@ -89,4 +92,24 @@ public class Util {
return
md5
.
xor
(
new
BigInteger
(
1
,
md5sum
));
return
md5
.
xor
(
new
BigInteger
(
1
,
md5sum
));
}
}
public
static
class
URLClassLoader
extends
java
.
net
.
URLClassLoader
{
protected
URLClassLoader
()
{
super
(
new
URL
[]{},
Util
.
class
.
getClassLoader
());
}
@Override
protected
void
addURL
(
URL
url
)
{
super
.
addURL
(
url
);
}
protected
void
addPath
(
Path
path
)
{
try
{
super
.
addURL
(
path
.
toUri
().
toURL
());
}
catch
(
MalformedURLException
e
)
{
//
}
}
}
}
}
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment