Fixed start.jar property as properties issue
This commit is contained in:
parent
bd8bcd62e9
commit
c1b66a3ea3
|
@ -176,18 +176,21 @@ public class CommandLineBuilder
|
|||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return toString(" ");
|
||||
}
|
||||
|
||||
public String toString(String delim)
|
||||
{
|
||||
StringBuilder buf = new StringBuilder();
|
||||
|
||||
boolean delim = false;
|
||||
for (String arg : args)
|
||||
{
|
||||
if (delim)
|
||||
if (buf.length()>0)
|
||||
{
|
||||
buf.append(' ');
|
||||
buf.append(delim);
|
||||
}
|
||||
buf.append(quote(arg));
|
||||
delim = true;
|
||||
}
|
||||
|
||||
return buf.toString();
|
||||
|
|
|
@ -654,7 +654,7 @@ public class Main
|
|||
if (args.isDryRun())
|
||||
{
|
||||
CommandLineBuilder cmd = args.getMainArgs(baseHome,true);
|
||||
System.out.println(cmd.toString());
|
||||
System.out.println(cmd.toString(File.separatorChar=='/'?" \\\n":" "));
|
||||
}
|
||||
|
||||
if (args.isStopCommand())
|
||||
|
|
|
@ -1212,13 +1212,13 @@ public class XmlConfiguration
|
|||
// For all arguments, load properties
|
||||
for (String arg : args)
|
||||
{
|
||||
if (arg.toLowerCase(Locale.ENGLISH).endsWith(".properties"))
|
||||
properties.load(Resource.newResource(arg).getInputStream());
|
||||
else if (arg.indexOf('=')>=0)
|
||||
if (arg.indexOf('=')>=0)
|
||||
{
|
||||
int i=arg.indexOf('=');
|
||||
properties.put(arg.substring(0,i),arg.substring(i+1));
|
||||
}
|
||||
else if (arg.toLowerCase(Locale.ENGLISH).endsWith(".properties"))
|
||||
properties.load(Resource.newResource(arg).getInputStream());
|
||||
}
|
||||
|
||||
// For all arguments, parse XMLs
|
||||
|
|
Loading…
Reference in New Issue