Modifier and Type | Field and Description |
---|---|
private boolean | cleanBuildDir
clean BUILD directory |
private String | command
the rpm command to use |
private File | error
the file to direct standard error from the command |
private boolean | failOnError
Halt on error return value from rpm build. |
private File | output
the file to direct standard output from the command |
private static final String | |
private static final String | |
private static final String | |
private boolean | quiet
Don't show output of RPM build command on console. |
private boolean | removeSource
remove sources |
private boolean | removeSpec
remove spec file |
private String | rpmBuildCommand
The executable to use for building the packages. |
private String | specFile
the spec file |
private File | topDir
the rpm top dir |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
protected Execute | Returns: the execute object.the command line to use. toExecute, ExecuteStreamHandler the stream handler to use. streamhandler)Get the execute object. |
protected String | Returns: the command used to build RPM'sChecks whether |
public void | setCleanBuildDir(boolean
a cbd)boolean value.Flag (optional, default=false) to remove the generated files in the BUILD directory |
public void | |
public void | |
public void | setFailOnError(boolean
true if it should halt, otherwise
false . The default is false .If |
public void | |
public void | setQuiet(boolean
false if output should be logged, otherwise
true . The default is false .If true, output from the RPM build command will only be logged to DEBUG. |
public void | setRemoveSource(boolean
a rs)boolean value.Flag (optional, default=false) to remove the sources after the build. |
public void | setRemoveSpec(boolean
a rs)boolean value.Flag (optional, default=false) to remove the spec file from SPECS |
public void | |
public void | |
public void |
cleanBuildDir | back to summary |
---|---|
private boolean cleanBuildDir clean BUILD directory |
command | back to summary |
---|---|
private String command the rpm command to use |
error | back to summary |
---|---|
private File error the file to direct standard error from the command |
failOnError | back to summary |
---|---|
private boolean failOnError Halt on error return value from rpm build. |
output | back to summary |
---|---|
private File output the file to direct standard output from the command |
PATH1 | back to summary |
---|---|
private static final String PATH1 |
PATH2 | back to summary |
---|---|
private static final String PATH2 |
PATH3 | back to summary |
---|---|
private static final String PATH3 |
quiet | back to summary |
---|---|
private boolean quiet Don't show output of RPM build command on console. This does not affect the printing of output and error messages to files. |
removeSource | back to summary |
---|---|
private boolean removeSource remove sources |
removeSpec | back to summary |
---|---|
private boolean removeSpec remove spec file |
rpmBuildCommand | back to summary |
---|---|
private String rpmBuildCommand The executable to use for building the packages.
|
specFile | back to summary |
---|---|
private String specFile the spec file |
topDir | back to summary |
---|---|
private File topDir the rpm top dir |
Rpm | back to summary |
---|---|
public Rpm() |
execute | back to summary |
---|---|
public void execute() throws BuildException Overrides org. Execute the task
|
getExecute | back to summary |
---|---|
protected Execute getExecute(Commandline toExecute, ExecuteStreamHandler streamhandler) Get the execute object.
|
guessRpmBuildCommand | back to summary |
---|---|
protected String guessRpmBuildCommand() Checks whether
|
setCleanBuildDir | back to summary |
---|---|
public void setCleanBuildDir(boolean cbd) Flag (optional, default=false) to remove the generated files in the BUILD directory
|
setCommand | back to summary |
---|---|
public void setCommand(String c) What command to issue to the rpm build tool; optional. The default is "-bb"
|
setError | back to summary |
---|---|
public void setError(File error) Optional file to save stderr to
|
setFailOnError | back to summary |
---|---|
public void setFailOnError(boolean value) If
|
setOutput | back to summary |
---|---|
public void setOutput(File output) Optional file to save stdout to.
|
setQuiet | back to summary |
---|---|
public void setQuiet(boolean value) If true, output from the RPM build command will only be logged to DEBUG.
|
setRemoveSource | back to summary |
---|---|
public void setRemoveSource(boolean rs) Flag (optional, default=false)
to remove the sources after the build.
See the
|
setRemoveSpec | back to summary |
---|---|
public void setRemoveSpec(boolean rs) Flag (optional, default=false) to remove the spec file from SPECS
|
setRpmBuildCommand | back to summary |
---|---|
public void setRpmBuildCommand(String c) The executable to run when building; optional.
The default is
|
setSpecFile | back to summary |
---|---|
public void setSpecFile(String sf) The name of the spec File to use; required.
|
setTopDir | back to summary |
---|---|
public void setTopDir(File td) The directory which will have the expected
subdirectories, SPECS, SOURCES, BUILD, SRPMS; optional.
If this isn't specified,
the
|