Package org.redline_rpm

Examples of org.redline_rpm.Scanner


        builder.setLicense( "GPL" );
        builder.setPlatform( NOARCH, LINUX );
        builder.setType( BINARY );
        builder.build( new File( getTargetDir()));

        Format format = new Scanner().run(channelWrapper("target" + File.separator + "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa-1.0-1.noarch.rpm"));

    assertEquals("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", format.getLead().getName());
    }
View Full Code Here


    assertNotNull( format.getSignature().getEntry( RSAHEADER));
    assertNotNull( format.getSignature().getEntry( LEGACY_PGP));
  }

  private Format getFormat( File filename ) throws IOException {
    Scanner scanner = new Scanner();
    return scanner.run(new ReadableChannelWrapper( Channels
        .newChannel( new FileInputStream( filename ) )));
  }
View Full Code Here

TOP

Related Classes of org.redline_rpm.Scanner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.