|
||||||||||
| 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(java.lang.String[] args)
|
void |
run(java.io.File file)
Runs the tool using a configuration provided in the given file parameter. |
void |
run(XmlEditor editor,
java.io.File destination)
Runs the tool using a configuration provided in the given configuration and output file. |
void |
run(XmlEditor editor,
java.lang.String name,
java.lang.String version,
java.lang.String release,
Contents include,
java.io.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(java.lang.String[] args)
throws org.xml.sax.SAXException,
java.security.NoSuchAlgorithmException,
java.io.IOException
org.xml.sax.SAXException
java.security.NoSuchAlgorithmException
java.io.IOException
public void run(java.io.File file)
throws org.xml.sax.SAXException,
java.security.NoSuchAlgorithmException,
java.io.IOException
file - the configuration file to use
org.xml.sax.SAXException - if the provided file is not well formed XML
java.security.NoSuchAlgorithmException - if an operation attempted during RPM creation fails due
to a missing encryption algorithm
java.io.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,
java.io.File destination)
throws java.security.NoSuchAlgorithmException,
java.io.IOException
editor - the XML configuration file, parsed by the XmlEditor utilityfile - the destination file to use in creating the RPM
java.security.NoSuchAlgorithmException - if an operation attempted during RPM creation fails due
to a missing encryption algorithm
java.io.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,
java.lang.String name,
java.lang.String version,
java.lang.String release,
Contents include,
java.io.File destination)
throws java.security.NoSuchAlgorithmException,
java.io.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 filefile - the destination file to use in creating the RPM
java.security.NoSuchAlgorithmException - if an operation attempted during RPM creation fails due
to a missing encryption algorithm
java.io.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 | |||||||||