public final class Toolset extends Object
Toolset checks the existence for the WIX Toolset on the buildsystem. If not available an exception is thrown.
It is used to compile and link wsx-files in a batch mannor triggered by the WixToolsetBuilder.
| Constructor and Description |
|---|
Toolset()
Deprecated.
|
Toolset(Properties props,
hudson.model.BuildListener listener)
Deprecated.
|
Toolset(ToolsetSettings properties,
hudson.model.BuildListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
compile(hudson.FilePath file)
Compiles the given source file.
|
protected void |
debug(String message)
Writes debugging messages to logging instance of
BuildListener. |
protected void |
debug(String format,
Object... args)
Writes debugging messages to logging instance of
BuildListener. |
protected void |
doCheck()
Checks if the runtime environment fulfills the needed requirements.
|
boolean |
hasFailed()
Returns if the execution of compiler or linker has lead to a failure.
|
protected void |
initialize(Properties props,
hudson.model.BuildListener listener)
Deprecated.
use
initialize(ToolsetSettings, BuildListener)
Initializes the toolset with needed properties. |
protected void |
initialize(ToolsetSettings props,
hudson.model.BuildListener listener)
Initializes the toolset with needed properties.
|
void |
link()
Links the compiled object files together into an MSI file.
|
protected void |
log(String message)
Logs a simple message to logging instance of
BuildListener. |
protected void |
log(String format,
Object... args)
Logs a formatted message to logging instance of
BuildListener. |
protected static String |
setDefaultParameters(String outfile,
String infile) |
protected static String |
toMsiFilename(String sourceFile) |
protected static String |
toObjectFilename(String sourceFile) |
public Toolset()
throws ToolsetException
Toolset(ToolsetSettings, BuildListener)ToolsetExceptionpublic Toolset(Properties props, hudson.model.BuildListener listener) throws ToolsetException
Toolset(ToolsetSettings, BuildListener)props - listener - ToolsetExceptionpublic Toolset(ToolsetSettings properties, hudson.model.BuildListener listener) throws ToolsetException
ToolsetExceptionprotected void initialize(Properties props, hudson.model.BuildListener listener) throws ToolsetException
initialize(ToolsetSettings, BuildListener)
Initializes the toolset with needed properties.props - Properties for toolsets configuration.listener - reference to BuildListener for logging.ToolsetException - is thrown if configuration of the toolset fails.protected void initialize(ToolsetSettings props, hudson.model.BuildListener listener) throws ToolsetException
props - Properties for toolsets configuration.listener - reference to BuildListener for logging.ToolsetException - is thrown if configuration of the toolset fails.protected void doCheck()
throws ToolsetException
ToolsetException - is thrown if compiler and linker are not available or accessible.protected void log(String message)
BuildListener.message - message to print.protected void log(String format, Object... args)
BuildListener.format - the message containing formatting symbols.args - arguments to replace formatting symbols.protected void debug(String message)
BuildListener. This
is only done if debugging is globally enabled for the WIX toolset in the settings
of Jenkins.message - debug message.protected void debug(String format, Object... args)
BuildListener. This
is only done if debugging is globally enabled for the WIX toolset in the settings
of Jenkins.message - debug message with formatting symbols.args - arguments to replace formatting symbols.public boolean hasFailed()
public void compile(hudson.FilePath file)
throws ToolsetException
file - source file to compile.ToolsetException - throws an exception if process fails.public void link()
throws ToolsetException
ToolsetException - throws an exception if process fails.Copyright © 2004-2013 Berg Systeme. All Rights Reserved.