Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xml_plugin4rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
xml_plugin4rosetta
Commits
f90bce76
Commit
f90bce76
authored
1 year ago
by
Jens Steidl
Browse files
Options
Downloads
Patches
Plain Diff
- changed exit code behaviour for validating multiple files
parent
e90ce809
No related branches found
No related tags found
No related merge requests found
Pipeline
#5569
failed
1 year ago
Stage: build
Stage: test
Stage: packaging
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/org/slub/rosetta/dps/repository/plugin/XmlFormatValidationPlugin.java
+7
-3
7 additions, 3 deletions
...etta/dps/repository/plugin/XmlFormatValidationPlugin.java
with
7 additions
and
3 deletions
java/org/slub/rosetta/dps/repository/plugin/XmlFormatValidationPlugin.java
+
7
−
3
View file @
f90bce76
...
@@ -516,6 +516,7 @@ public class XmlFormatValidationPlugin implements FormatValidationPlugin {
...
@@ -516,6 +516,7 @@ public class XmlFormatValidationPlugin implements FormatValidationPlugin {
System
.
out
.
println
(
"Debug : '"
+
plugin
.
debug
+
"'"
);
System
.
out
.
println
(
"Debug : '"
+
plugin
.
debug
+
"'"
);
System
.
out
.
println
();
System
.
out
.
println
();
}
}
boolean
atLeastOneFileNotValid
=
false
;
for
(
String
file
:
args
)
{
for
(
String
file
:
args
)
{
System
.
out
.
println
(
"----------------------------------"
);
System
.
out
.
println
(
"----------------------------------"
);
System
.
out
.
println
(
"Validation of file '"
+
file
+
"'"
);
System
.
out
.
println
(
"Validation of file '"
+
file
+
"'"
);
...
@@ -536,13 +537,16 @@ public class XmlFormatValidationPlugin implements FormatValidationPlugin {
...
@@ -536,13 +537,16 @@ public class XmlFormatValidationPlugin implements FormatValidationPlugin {
System
.
out
.
println
(
"\t.........."
);
System
.
out
.
println
(
"\t.........."
);
}
}
System
.
out
.
println
(
"\tisValid: "
+
plugin
.
isValid
());
System
.
out
.
println
(
"\tisValid: "
+
plugin
.
isValid
());
if
(!
plugin
.
isValid
())
{
atLeastOneFileNotValid
=
true
;
}
}
}
// exit code
// exit code
if
(
plugin
.
isValid
())
{
if
(
atLeastOneFileNotValid
)
{
System
.
exit
(
0
);
}
else
{
System
.
exit
(
1
);
System
.
exit
(
1
);
}
else
{
System
.
exit
(
0
);
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment