File file = new File( args[ 0]); file.delete(); builder.build( new RandomAccessFile( file, "rw").getChannel());
builder.build( new File( args[ 0]));
	public static void main( String[] args) throws Exception {		Builder builder = new Builder();		builder.setPackage( "test", "1.1.2", "1");		builder.setType( BINARY);		builder.setPlatform( NOARCH, LINUX);		builder.setSummary( "A test RPM.");		builder.setDescription( "A test RPM with several files.");		builder.setBuildHost( "localhost");		builder.setLicense( "MIT");		builder.setGroup( "Miscellaneous");		builder.setVendor( "FreeCompany RPM Repository http://yum.freecompany.org/");		builder.setPackager( "Craig Blake <craigwblake@mac.com>");		builder.setUrl( "http://www.freecompany.org/test/");		builder.setProvides( "test");		builder.addFile( "/tmp/AbstractHeader.java", new File( args[1]));		builder.addFile( "/tmp/Entry.java", new File( args[2]));		File file = new File( args[ 0]);		file.delete();		builder.build( new RandomAccessFile( file, "rw").getChannel());	}