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
2f7d0f30
Commit
2f7d0f30
authored
Jan 30, 2009
by
Claus Nagel
Browse files
No commit message
No commit message
parent
062f5649
Changes
1
Show whitespace changes
Inline
Side-by-side
src/org/citygml4j/ade_xjc/ADE_XJC.java
View file @
2f7d0f30
...
...
@@ -77,7 +77,7 @@ public class ADE_XJC {
}
if
(
version
)
{
System
.
out
.
println
(
"ade-xjc version \"0.
1
.0\""
);
System
.
out
.
println
(
"ade-xjc version \"0.
2
.0\""
);
System
.
out
.
println
(
"ade-xjc is a JAXB xjc wrapper built for citygml4j version \"0.2.0\""
);
System
.
exit
(
0
);
}
...
...
@@ -119,6 +119,7 @@ public class ADE_XJC {
if
(
adeBindingFile
!=
null
)
LOG
.
info
(
"Using JAXB binding "
+
adeBindingFile
.
getCanonicalFile
());
LOG
.
info
(
"Using Java package "
+
packageName
+
" for JAXB classes"
);
LOG
.
info
(
"Generating JAXB classes. This may take some time..."
);
SchemaCompiler
sc
=
XJC
.
createSchemaCompiler
();
...
...
@@ -189,7 +190,7 @@ public class ADE_XJC {
throw
new
FileNotFoundException
(
"Could not open folder "
+
schema_dir
.
getAbsolutePath
());
if
(!
nonStrict
)
{
LOG
.
info
(
"Running in strict mode. Checking sanity of subfolder 'schema'"
);
LOG
.
info
(
"Running in strict mode. Checking sanity of subfolder 'schema
s
'"
);
BigInteger
md5
=
new
BigInteger
(
"0"
);
File
[]
children
=
schema_dir
.
listFiles
();
...
...
@@ -200,7 +201,7 @@ public class ADE_XJC {
md5
=
Util
.
file2md5
(
file
.
getAbsolutePath
(),
md5
);
if
(!
md5
.
toString
(
16
).
equals
(
"b51bc6a36f36e2bac8c8674f1cb69042"
))
throw
new
Exception
(
"Contents of subfolder 'schema' have been altered. Please restore its original state."
);
throw
new
Exception
(
"Contents of subfolder 'schema
s
' have been altered. Please restore its original state."
);
}
if
(!
adeSchemaFile
.
exists
()
||
!
adeSchemaFile
.
isFile
()
||
!
adeSchemaFile
.
canRead
())
...
...
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