bundles/org.eclipse.packagedrone.utils.rpm/src/org/eclipse/packagedrone/utils/rpm/build/RpmBuilder.java
public void build () throws IOException
    {
        if ( this.hasBuilt )
        {
            throw new IllegalStateException ( "RPM file has already been built. Can only be built once." );
        }

        this.hasBuilt = true;

        fillProvides ();
        fillRequirements ();

        fillHeader ();

        final LeadBuilder leadBuilder = new LeadBuilder ( this.name, this.version );

        leadBuilder.fillFlagsFromHeader ( this.header, createLeadArchitectureMapper (), createLeadOperatingSystemMapper () );

        if ( this.headerCustomizer != null )
        {
            this.headerCustomizer.accept ( this.header );
        }

        try ( final RpmWriter writer = new RpmWriter ( this.targetFile, leadBuilder, this.header, this.options.getHeaderCharset (), this.options.getOpenOptions () ) )
        {
            writer.addAllSignatureProcessors ( this.signatureProcessors );
            writer.setPayload ( this.recorder );
        }
    }
public void build () throws IOException
    {
        if ( this.hasBuilt )
        {
            throw new IllegalStateException ( "RPM file has already been built. Can only be built once." );
        }

        this.hasBuilt = true;

        fillProvides ();
        fillRequirements ();

        fillHeader ();

        final LeadBuilder leadBuilder = new LeadBuilder ( this.name, this.version );

        leadBuilder.fillFlagsFromHeader ( this.header, createLeadArchitectureMapper (), createLeadOperatingSystemMapper () );

        if ( this.headerCustomizer != null )
        {
            this.headerCustomizer.accept ( this.header );
        }

        try ( final RpmWriter writer = new RpmWriter ( this.targetFile, leadBuilder, this.header, this.options.getHeaderCharset (), this.options.getOpenOptions () ) )
        {
            writer.addAllSignatureProcessors ( this.signatureProcessors );
            writer.setPayload ( this.recorder );
        }
    }
public void build ( ) throws IOException { if ( this . hasBuilt ) { throw new IllegalStateException ( "RPM file has already been built. Can only be built once." ) ; } this . hasBuilt = true ; fillProvides ( ) ; fillRequirements ( ) ; fillHeader ( ) ; final LeadBuilder leadBuilder = new LeadBuilder ( this . name , this . version ) ; leadBuilder . fillFlagsFromHeader ( this . header , createLeadArchitectureMapper ( ) , createLeadOperatingSystemMapper ( ) ) ; if ( this . headerCustomizer != null ) { this . headerCustomizer . accept ( this . header ) ; } try ( final RpmWriter writer = new RpmWriter ( this . targetFile , leadBuilder , this . header , this . options . getHeaderCharset ( ) , this . options . getOpenOptions ( ) ) ) { writer . addAllSignatureProcessors ( this . signatureProcessors ) ; writer . setPayload ( this . recorder ) ; } }
Actually build the RPM file
<p>
<strong>Note: </strong> this method may only be called once per instance
</p>

@throws IOException
in case of any IO error
Actually build the RPM file <p > <strong > Note : < / strong > this method may only be called once per instance < / p >