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 ; }
Converts array of JVM arguments to ANT SysProperties object .