@@ -68,8 +68,10 @@ public class Option extends SchemaObject implements IOption {
68
68
public static final String [] EMPTY_STRING_ARRAY = new String [0 ];
69
69
public static final OptionStringValue [] EMPTY_LV_ARRAY = new OptionStringValue [0 ];
70
70
private static final String EMPTY_QUOTED_STRING = "\" \" " ; //$NON-NLS-1$
71
- private static final String STRING_SEPERATOR = "\n \r " ;//$NON-NLS-1$
72
- private static final String STRING_SEPARATOR_REGEX = Pattern .quote (STRING_SEPERATOR );
71
+ private static final String STRING_NEW_LINE_SEPERATOR = "\n \r " ;//$NON-NLS-1$
72
+ private static final String STRING_NEW_LINE_SEPARATOR_REGEX = Pattern .quote (STRING_NEW_LINE_SEPERATOR );
73
+ private static final String STRING_SEMICOLON_SEPERATOR = SEMICOLON ;
74
+ private static final String STRING_SEMICOLON_SEPARATOR_REGEX = Pattern .quote (STRING_SEMICOLON_SEPERATOR );
73
75
74
76
private String [] modelCategoryId ;
75
77
private String [] modelResFilterStr ;
@@ -437,7 +439,7 @@ public String getDefaultValueString() {
437
439
for (TreeOption curTreeOption : myTreeOptions .values ()) {
438
440
curTreeOption .getDefaultValueStrings (defaultValues );
439
441
}
440
- return String .join (STRING_SEPERATOR , defaultValues );
442
+ return String .join (STRING_NEW_LINE_SEPERATOR , defaultValues );
441
443
}
442
444
443
445
}
@@ -726,7 +728,7 @@ public Map<String, String> getCommandVars(String optionValue, IAutoBuildConfigur
726
728
return ret ;
727
729
}
728
730
case IOption .TREE : {
729
- String [] values = optionValue .split (STRING_SEPARATOR_REGEX );
731
+ String [] values = optionValue .split (STRING_NEW_LINE_SEPARATOR_REGEX );
730
732
String retValue = new String ();
731
733
if (myTreeRoot != null ) {
732
734
for (String curptionValue : values ) {
@@ -759,7 +761,10 @@ public Map<String, String> getCommandVars(String optionValue, IAutoBuildConfigur
759
761
case IOption .PREPROCESSOR_SYMBOLS :
760
762
case IOption .UNDEF_PREPROCESSOR_SYMBOLS : {
761
763
String listCmd = modelCommand [SUPER ];
762
- String [] values = optionValue .split (STRING_SEPARATOR_REGEX );
764
+ String [] values = optionValue .split (STRING_NEW_LINE_SEPARATOR_REGEX );
765
+ if (values .length == 1 ) {
766
+ values = optionValue .split (STRING_SEMICOLON_SEPARATOR_REGEX );
767
+ }
763
768
String [] resolvedList = resolveStringListValues (values , autoConfData , true );
764
769
String retValue = new String ();
765
770
for (String curResolved : resolvedList ) {
@@ -925,7 +930,7 @@ public boolean isCommandLineContributionBlank(IResource resource, String optionV
925
930
return selectedEnumValue .getCommandLIneDistribution ().isBlank ();
926
931
}
927
932
case IOption .TREE : {
928
- String [] values = optionValue .split (STRING_SEPARATOR_REGEX );
933
+ String [] values = optionValue .split (STRING_NEW_LINE_SEPARATOR_REGEX );
929
934
if (myTreeRoot != null ) {
930
935
for (String curptionValue : values ) {
931
936
ITreeOption treeNode = myTreeRoot .findNode (curptionValue );
@@ -954,7 +959,7 @@ public boolean isCommandLineContributionBlank(IResource resource, String optionV
954
959
case IOption .UNDEF_MACRO_FILES :
955
960
case IOption .PREPROCESSOR_SYMBOLS :
956
961
case IOption .UNDEF_PREPROCESSOR_SYMBOLS : {
957
- String [] values = optionValue .split (STRING_SEPARATOR_REGEX );
962
+ String [] values = optionValue .split (STRING_NEW_LINE_SEPARATOR_REGEX );
958
963
String [] resolvedList = resolveStringListValues (values , autoConfData , true );
959
964
for (String curResolved : resolvedList ) {
960
965
if (!curResolved .isBlank () && !curResolved .contains (EMPTY_QUOTED_STRING ))
0 commit comments