public class Main extends Object
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static void main(String[] args) throws SAXException, NoSuchAlgorithmException, IOException
public void run(File file) throws SAXException, NoSuchAlgorithmException, IOException
file - the configuration file to useSAXException - if the provided file is not well formed XMLNoSuchAlgorithmException - if an operation attempted during RPM creation fails due
to a missing encryption algorithmIOException - if an IO error occurs either in reading the configuration file, reading
an input file to the RPM, or during RPM creationpublic 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 RPMNoSuchAlgorithmException - if an operation attempted during RPM creation fails due
to a missing encryption algorithmIOException - if an IO error occurs either in reading the configuration file, reading
an input file to the RPM, or during RPM creationpublic 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 RPMNoSuchAlgorithmException - if an operation attempted during RPM creation fails due
to a missing encryption algorithmIOException - if an IO error occurs either in reading the configuration file, reading
an input file to the RPM, or during RPM creationCopyright © 2021. All Rights Reserved.