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
4b4badad
Commit
4b4badad
authored
5 years ago
by
Dominique Marcadet
Browse files
Options
Downloads
Patches
Plain Diff
use exact value instead of start with for console level
parent
9921810a
No related branches found
Branches containing commit
No related tags found
1 merge request
!25
Resolve "allow the use of environment variables in addition to command line options"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fr.centralesupelec.edf.riseclipse.iec61850.scl.validator/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/validator/RiseClipseValidatorSCL.java
+8
-8
8 additions, 8 deletions
...clipse/iec61850/scl/validator/RiseClipseValidatorSCL.java
with
8 additions
and
8 deletions
fr.centralesupelec.edf.riseclipse.iec61850.scl.validator/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/validator/RiseClipseValidatorSCL.java
+
8
−
8
View file @
4b4badad
...
...
@@ -190,34 +190,34 @@ public class RiseClipseValidatorSCL {
console
.
info
(
"The folowing environment variables may be used in addition to command line options, "
+
"however, the latter have precedence."
);
console
.
info
(
"\t"
+
CONSOLE_LEVEL_VARIABLE_NAME
+
": if its value
starts with one of
"
console
.
info
(
"\t"
+
CONSOLE_LEVEL_VARIABLE_NAME
+
": if its value
is one of (ignoring case)
"
+
VERBOSE_KEYWORD
+
", "
+
INFO_KEYWORD
+
", "
+
WARNING_KEYWORD
+
" or "
+
ERROR_KEYWORD
+
", then the corresponding level is set, otherwise the variable is ignored."
);
console
.
info
(
"\t"
+
OUTPUT_FILE_VARIABLE_NAME
+
": name of the output file for messages."
);
console
.
info
(
"\t"
+
USE_COLOR_VARIABLE_NAME
+
": if its value is not equal to FALSE "
+
"(ignoring case), it is equi
b
valent to the use of "
+
USE_COLOR_OPTION
+
" option."
);
+
"(ignoring case), it is equivalent to the use of "
+
USE_COLOR_OPTION
+
" option."
);
console
.
info
(
"\t"
+
MAKE_EXPLICIT_LINKS_VARIABLE_NAME
+
": if its value is not equal to FALSE "
+
"(ignoring case), it is equi
b
valent to the use of "
+
MAKE_EXPLICIT_LINKS_OPTION
+
" option."
);
+
"(ignoring case), it is equivalent to the use of "
+
MAKE_EXPLICIT_LINKS_OPTION
+
" option."
);
console
.
info
(
"\t"
+
DISPLAY_NSD_MESSAGES_VARIABLE_NAME
+
": if its value is not equal to FALSE "
+
"(ignoring case), it is equibvalent to the use of "
+
DISPLAY_NSD_MESSAGES_OPTION
+
" option."
);
console
.
info
(
"\t"
+
DO_NOT_DISPLAY_COPYRIGHT_VARIABLE_NAME
+
": if its value is not equal to FALSE "
+
"(ignoring case), it is equi
b
valent to the use of "
+
DO_NOT_DISPLAY_COPYRIGHT_OPTION
+
" option."
);
+
"(ignoring case), it is equivalent to the use of "
+
DO_NOT_DISPLAY_COPYRIGHT_OPTION
+
" option."
);
System
.
exit
(
0
);
}
private
static
void
setOptionsFromEnvironmentVariables
()
{
String
s
=
System
.
getenv
(
CONSOLE_LEVEL_VARIABLE_NAME
);
if
(
s
!=
null
)
{
if
(
s
.
startsWith
(
VERBOSE_KEYWORD
))
{
if
(
s
.
equalsIgnoreCase
(
VERBOSE_KEYWORD
))
{
consoleLevel
=
IRiseClipseConsole
.
VERBOSE_LEVEL
;
}
else
if
(
s
.
startsWith
(
INFO_KEYWORD
))
{
else
if
(
s
.
equalsIgnoreCase
(
INFO_KEYWORD
))
{
consoleLevel
=
IRiseClipseConsole
.
INFO_LEVEL
;
}
else
if
(
s
.
startsWith
(
WARNING_KEYWORD
))
{
else
if
(
s
.
equalsIgnoreCase
(
WARNING_KEYWORD
))
{
consoleLevel
=
IRiseClipseConsole
.
WARNING_LEVEL
;
}
else
if
(
s
.
startsWith
(
ERROR_KEYWORD
))
{
else
if
(
s
.
equalsIgnoreCase
(
ERROR_KEYWORD
))
{
consoleLevel
=
IRiseClipseConsole
.
ERROR_LEVEL
;
}
else
{
...
...
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