Commandline cmd = new Commandline();  if( options != null ) { for( int i = 0; i < options.length; i++ ) { cmd.createArgument().setValue( options[ i ] ); } }  Path classpath = getCompileClasspath();  cmd.createArgument().setValue( "-d" ); cmd.createArgument().setFile( attributes.getBase() );  if( attributes.getExtdirs() != null ) { if( Project.getJavaVersion().startsWith( "1.1" ) ) {  classpath.addExtdirs( attributes.getExtdirs() ); } else { cmd.createArgument().setValue( "-extdirs" ); cmd.createArgument().setPath( attributes.getExtdirs() ); } }  cmd.createArgument().setValue( "-classpath" ); cmd.createArgument().setPath( classpath );  String stubVersion = attributes.getStubVersion(); if( null != stubVersion ) { if( "1.1".equals( stubVersion ) ) cmd.createArgument().setValue( "-v1.1" ); else if( "1.2".equals( stubVersion ) ) cmd.createArgument().setValue( "-v1.2" ); else cmd.createArgument().setValue( "-vcompat" ); }  if( null != attributes.getSourceBase() ) { cmd.createArgument().setValue( "-keepgenerated" ); }  if( attributes.getIiop() ) { attributes.log( "IIOP has been turned on.", Project.MSG_INFO ); cmd.createArgument().setValue( "-iiop" ); if( attributes.getIiopopts() != null ) { attributes.log( "IIOP Options: " + attributes.getIiopopts(), Project.MSG_INFO ); cmd.createArgument().setValue( attributes.getIiopopts() ); } }  if( attributes.getIdl() ) { cmd.createArgument().setValue( "-idl" ); attributes.log( "IDL has been turned on.", Project.MSG_INFO ); if( attributes.getIdlopts() != null ) { cmd.createArgument().setValue( attributes.getIdlopts() ); attributes.log( "IDL Options: " + attributes.getIdlopts(), Project.MSG_INFO ); } }  if( attributes.getDebug() ) { cmd.createArgument().setValue( "-g" ); }  logAndAddFilesToCompile( cmd ); return cmd;
return setupRmicCommand( null );
    protected Commandline setupRmicCommand( String[] options )        throws TaskException    {        Commandline cmd = new Commandline();        if( options != null )        {            for( int i = 0; i < options.length; i++ )            {                cmd.createArgument().setValue( options[ i ] );            }        }        Path classpath = getCompileClasspath();        cmd.createArgument().setValue( "-d" );        cmd.createArgument().setFile( attributes.getBase() );        if( attributes.getExtdirs() != null )        {            if( Project.getJavaVersion().startsWith( "1.1" ) )            {                /*                 * XXX - This doesn't mix very well with build.systemclasspath,                 */                classpath.addExtdirs( attributes.getExtdirs() );            }            else            {                cmd.createArgument().setValue( "-extdirs" );                cmd.createArgument().setPath( attributes.getExtdirs() );            }        }        cmd.createArgument().setValue( "-classpath" );        cmd.createArgument().setPath( classpath );        String stubVersion = attributes.getStubVersion();        if( null != stubVersion )        {            if( "1.1".equals( stubVersion ) )                cmd.createArgument().setValue( "-v1.1" );            else if( "1.2".equals( stubVersion ) )                cmd.createArgument().setValue( "-v1.2" );            else                cmd.createArgument().setValue( "-vcompat" );        }        if( null != attributes.getSourceBase() )        {            cmd.createArgument().setValue( "-keepgenerated" );        }        if( attributes.getIiop() )        {            attributes.log( "IIOP has been turned on.", Project.MSG_INFO );            cmd.createArgument().setValue( "-iiop" );            if( attributes.getIiopopts() != null )            {                attributes.log( "IIOP Options: " + attributes.getIiopopts(),                                Project.MSG_INFO );                cmd.createArgument().setValue( attributes.getIiopopts() );            }        }        if( attributes.getIdl() )        {            cmd.createArgument().setValue( "-idl" );            attributes.log( "IDL has been turned on.", Project.MSG_INFO );            if( attributes.getIdlopts() != null )            {                cmd.createArgument().setValue( attributes.getIdlopts() );                attributes.log( "IDL Options: " + attributes.getIdlopts(),                                Project.MSG_INFO );            }        }        if( attributes.getDebug() )        {            cmd.createArgument().setValue( "-g" );        }        logAndAddFilesToCompile( cmd );        return cmd;    }