Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
a06695be
Commit
a06695be
authored
Apr 11, 2025
by
Matthias Betz
Browse files
add logging message when an invalid file ending is encountered
parent
5e083df3
Pipeline
#11055
passed with stage
in 1 minute and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/CityDoctorValidation.java
View file @
a06695be
...
...
@@ -164,6 +164,9 @@ public class CityDoctorValidation {
startFileValidation
(
inputFile
,
xmlOutput
,
pdfOutput
,
config
,
outputFile
);
}
else
if
(
inputFile
.
getName
().
endsWith
(
".zip"
))
{
startZipValidation
(
input
,
xmlOutput
,
pdfOutput
,
config
,
outputFile
);
}
else
{
logger
.
error
(
"Input file '{}' does not end with .gml or .xml and is not a zip archive."
,
input
);
System
.
exit
(
1
);
}
}
...
...
CityDoctorParent/CityDoctorValidation/src/main/java/de/hft/stuttgart/citydoctor2/CityDoctorValidationCLI.java
View file @
a06695be
package
de.hft.stuttgart.citydoctor2
;
import
picocli.CommandLine
;
import
java.util.concurrent.Callable
;
import
picocli.CommandLine.Command
;
import
picocli.CommandLine.Option
;
import
picocli.CommandLine.Parameters
;
import
java.util.concurrent.Callable
;
@Command
(
name
=
"citydoctor2"
,
mixinStandardHelpOptions
=
true
,
description
=
"Validates CityGML files according to a provided validation-plan."
)
public
class
CityDoctorValidationCLI
implements
Callable
<
Integer
>
{
...
...
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