Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
e184d776
Commit
e184d776
authored
Sep 27, 2017
by
Björn Richerzhagen
Browse files
Bugfix for multiple vars in one string, if the string
parent
eb58dde1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/scenario/DefaultConfigurator.java
View file @
e184d776
...
@@ -662,7 +662,7 @@ public class DefaultConfigurator implements Configurator {
...
@@ -662,7 +662,7 @@ public class DefaultConfigurator implements Configurator {
}
}
public
String
parseValue
(
String
value
)
{
public
String
parseValue
(
String
value
)
{
if
(
value
.
trim
().
startsWith
(
CONFIG_VARIABLE_PREFIX_TAG
))
{
if
(
value
.
trim
().
startsWith
(
CONFIG_VARIABLE_PREFIX_TAG
)
&&
!
value
.
trim
().
startsWith
(
CONFIG_VARIABLE_PREFIX_TAG
+
"{"
)
)
{
int
posDollar
=
value
.
indexOf
(
CONFIG_VARIABLE_PREFIX_TAG
);
int
posDollar
=
value
.
indexOf
(
CONFIG_VARIABLE_PREFIX_TAG
);
String
varName
=
value
.
substring
(
posDollar
+
1
,
value
.
length
());
String
varName
=
value
.
substring
(
posDollar
+
1
,
value
.
length
());
value
=
variables
.
get
(
varName
);
value
=
variables
.
get
(
varName
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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