org.freecompany.redline
Class Main

java.lang.Object
  extended by org.freecompany.redline.Main

public class Main
extends Object

Main entry point for the Redline command line tool. The command line tool uses a provided configuration file to generate an RPM file. Execution of this tool may be scripted or called from third party software as needed to create an RPM file.


Constructor Summary
Main()
           
 
Method Summary
static void main(String[] args)
           
 void run(File file)
          Runs the tool using a configuration provided in the given file parameter.
 void run(XmlEditor editor, File destination)
          Runs the tool using a configuration provided in the given configuration and output file.
 void run(XmlEditor editor, String name, String version, String release, Contents include, File destination)
          Runs the tool using the provided settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)
                 throws SAXException,
                        NoSuchAlgorithmException,
                        IOException
Throws:
SAXException
NoSuchAlgorithmException
IOException

run

public void run(File file)
         throws SAXException,
                NoSuchAlgorithmException,
                IOException
Runs the tool using a configuration provided in the given file parameter. The configuration file is expected to be well formed XML conforming to the Redline configuration syntax.

Parameters:
file - the configuration file to use
Throws:
SAXException - if the provided file is not well formed XML
NoSuchAlgorithmException - if an operation attempted during RPM creation fails due to a missing encryption algorithm
IOException - if an IO error occurs either in reading the configuration file, reading an input file to the RPM, or during RPM creation

run

public void run(XmlEditor editor,
                File destination)
         throws NoSuchAlgorithmException,
                IOException
Runs the tool using a configuration provided in the given configuration and output file.

Parameters:
editor - the XML configuration file, parsed by the XmlEditor utility
destination - the destination file to use in creating the RPM
Throws:
NoSuchAlgorithmException - if an operation attempted during RPM creation fails due to a missing encryption algorithm
IOException - if an IO error occurs either in reading the configuration file, reading an input file to the RPM, or during RPM creation

run

public void run(XmlEditor editor,
                String name,
                String version,
                String release,
                Contents include,
                File destination)
         throws NoSuchAlgorithmException,
                IOException
Runs the tool using the provided settings.

Parameters:
editor - the XML configuration file, parsed by the XmlEditor utility
name - the name of the RPM file to create
version - the version of the created RPM
release - the release version of the created RPM
include - the contents to include in the generated RPM file
destination - the destination file to use in creating the RPM
Throws:
NoSuchAlgorithmException - if an operation attempted during RPM creation fails due to a missing encryption algorithm
IOException - if an IO error occurs either in reading the configuration file, reading an input file to the RPM, or during RPM creation


Copyright © 2012. All Rights Reserved.