Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
riseclipse-validator-scl2003
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
Container Registry
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RiseClipseGroup
riseclipse-validator-scl2003
Commits
3e401619
Commit
3e401619
authored
5 years ago
by
Dominique Marcadet
Browse files
Options
Downloads
Patches
Plain Diff
add --help for a more complete description
parent
7b9f2cfa
No related branches found
Branches containing commit
No related tags found
1 merge request
!11
Resolve "complete validation by NSD"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fr.centralesupelec.edf.riseclipse.iec61850.scl.tools/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/validator/RiseClipseValidatorSCL.java
+45
-9
45 additions, 9 deletions
...clipse/iec61850/scl/validator/RiseClipseValidatorSCL.java
with
45 additions
and
9 deletions
fr.centralesupelec.edf.riseclipse.iec61850.scl.tools/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/validator/RiseClipseValidatorSCL.java
+
45
−
9
View file @
3e401619
...
...
@@ -62,15 +62,44 @@ public class RiseClipseValidatorSCL {
private
static
void
usage
()
{
console
.
setLevel
(
IRiseClipseConsole
.
INFO_LEVEL
);
console
.
info
(
"java -jar RiseClipseValidatorSCL.jar [--info | --warning | --
v
er
bose
] [--make-explicit-links]
[--use-color] [
<oclFile> | <nsdFile> | <sclFile>
]
*"
);
console
.
info
(
"java -jar RiseClipseValidatorSCL.jar --help"
);
console
.
info
(
"java -jar RiseClipseValidatorSCL.jar [
--verbose |
--info | --warning | --er
ror
] [--make-explicit-links]
(
<oclFile> | <nsdFile> | <sclFile>
)
*"
);
console
.
info
(
"Files ending with \".ocl\" are considered OCL files, "
+
"files ending with
\\
\".nsd\
\\
" are considered NSD files, "
+
"files ending with
\\
\".nsdoc\
\\
" are considered NSDoc files, "
+
"files ending with \".nsd\" are considered NSD files, "
+
"files ending with \".nsdoc\" are considered NSDoc files, "
+
"all others are considered SCL files"
);
System
.
exit
(
-
1
);
}
private
static
void
help
()
{
console
.
setLevel
(
IRiseClipseConsole
.
INFO_LEVEL
);
displayLegal
();
console
.
info
(
"java -jar RiseClipseValidatorSCL.jar option* file*"
);
console
.
info
(
"\tFiles ending with \".ocl\" are considered OCL files,"
);
console
.
info
(
"\tfiles ending with \".nsd\" are considered NSD files,"
);
console
.
info
(
"\tfiles ending with \".nsdoc\" are considered NSDoc files,"
);
console
.
info
(
"\tall others are considered SCL files."
);
console
.
info
(
""
);
console
.
info
(
"The following options are recognized:"
);
console
.
info
(
"\t--verbose"
);
console
.
info
(
"\t--info"
);
console
.
info
(
"\t--warning"
);
console
.
info
(
"\t--error"
);
console
.
info
(
"\t\tThe amount of messages displayed is chosen according to this option, default is --warning."
);
console
.
info
(
"\t--use-color"
);
console
.
info
(
"\t\tcolors (using ANSI escape sequences) are used on message prefixes."
);
console
.
info
(
"\t--make-explicit-links"
);
console
.
info
(
"\t\tImplicit links in SCL files are made explicit, this is usually needed for complete validation. "
+
"Warnings are displayed when problems are detected. Infos are displayed about explicit links being made. "
+
"Verbosity is about how explicit links are made."
);
console
.
info
(
"\t--display-nsd-messages"
);
console
.
info
(
"\t\tOnly errors detected in NSD files are displayed by default. "
+
"This option allows for other messages to be displayed (according to the chosen level)."
);
console
.
info
(
"\t--do-not-display-copyright"
);
console
.
info
(
"\t\tThe tool information is not displayed at the beginning."
);
System
.
exit
(
0
);
}
public
static
void
main
(
@NonNull
String
[]
args
)
{
if
(
args
.
length
==
0
)
usage
();
...
...
@@ -86,14 +115,21 @@ public class RiseClipseValidatorSCL {
for
(
int
i
=
0
;
i
<
args
.
length
;
++
i
)
{
if
(
args
[
i
].
startsWith
(
"--"
)
)
{
posFiles
=
i
+
1
;
if
(
"--info"
.
equals
(
args
[
i
]
)
)
{
if
(
"--help"
.
equals
(
args
[
i
]
)
)
{
console
=
new
TextRiseClipseConsole
(
useColor
);
help
();
}
else
if
(
"--verbose"
.
equals
(
args
[
i
]
)
)
{
consoleLevel
=
IRiseClipseConsole
.
VERBOSE_LEVEL
;
}
else
if
(
"--info"
.
equals
(
args
[
i
]
)
)
{
consoleLevel
=
IRiseClipseConsole
.
INFO_LEVEL
;
}
else
if
(
"--warning"
.
equals
(
args
[
i
]
)
)
{
consoleLevel
=
IRiseClipseConsole
.
WARNING_LEVEL
;
}
else
if
(
"--
v
er
bose
"
.
equals
(
args
[
i
]
)
)
{
consoleLevel
=
IRiseClipseConsole
.
V
ER
BOSE
_LEVEL
;
else
if
(
"--er
ror
"
.
equals
(
args
[
i
]
)
)
{
consoleLevel
=
IRiseClipseConsole
.
ER
ROR
_LEVEL
;
}
else
if
(
"--make-explicit-links"
.
equals
(
args
[
i
]
)
)
{
makeExplicitLinks
=
true
;
...
...
@@ -160,7 +196,7 @@ public class RiseClipseValidatorSCL {
console
.
info
(
"which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html"
);
console
.
info
(
""
);
console
.
info
(
"This
file
is part of
the
RiseClipse
tool
."
);
console
.
info
(
"This
tool
is part of RiseClipse."
);
console
.
info
(
"Contributors:"
);
console
.
info
(
" Computer Science Department, CentraleSupélec"
);
console
.
info
(
" EDF R&D"
);
...
...
@@ -170,7 +206,7 @@ public class RiseClipseValidatorSCL {
console
.
info
(
"Web site:"
);
console
.
info
(
" http://wdi.supelec.fr/software/RiseClipse/"
);
console
.
info
(
""
);
console
.
info
(
"RiseClipseValidatorSCL version: 1.1.0 a
3
(
9
may 2019)"
);
console
.
info
(
"RiseClipseValidatorSCL version: 1.1.0 a
4
(
16
may 2019)"
);
console
.
info
(
""
);
}
...
...
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