|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.freecompany.redline.Main
public class Main
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 |
|---|
public Main()
| Method Detail |
|---|
public static void main(String[] args)
throws SAXException,
NoSuchAlgorithmException,
IOException
SAXException
NoSuchAlgorithmException
IOException
public void run(File file)
throws SAXException,
NoSuchAlgorithmException,
IOException
file - the configuration file to use
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
public void run(XmlEditor editor,
File destination)
throws NoSuchAlgorithmException,
IOException
editor - the XML configuration file, parsed by the XmlEditor utilitydestination - the destination file to use in creating the RPM
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
public void run(XmlEditor editor,
String name,
String version,
String release,
Contents include,
File destination)
throws NoSuchAlgorithmException,
IOException
editor - the XML configuration file, parsed by the XmlEditor utilityname - the name of the RPM file to createversion - the version of the created RPMrelease - the release version of the created RPMinclude - the contents to include in the generated RPM filedestination - the destination file to use in creating the RPM
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||