code: static SysProperties toSystemProperties(final String[] arguments)
     {
        final SysProperties retVal = new SysProperties();
  
        if (arguments != null && arguments.length != 0)
        {
           for (final String argument : arguments)
           {
              if (argument.startsWith("-D"))
              {
                 Variable var = AntTaskHelper.toVariable(argument);
                 retVal.addVariable(var);
              }
           }
        }
  
        return retVal;
     }
docs: Converts array of JVM arguments to ANT SysProperties object.
  
  @param arguments to be converted.
  @return ANT SysProperties object.