public abstract class Unix extends AbstractUnixSetupTask
| Constructor and Description |
|---|
Unix(java.lang.String format) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdditionalServiceScript()
Returns the additional service script that will be included into the original one.
|
java.lang.String |
getArchitecture()
The current architecture
|
java.io.File |
getBundleJre()
Get the bundle JRE directory.
|
java.io.File |
getDefaultServiceFile()
Returns the a default service configuration file This will be included in the service starter
|
java.lang.String |
getDepends()
The package dependencies
|
java.lang.String |
getHomepage()
Homepage of the author
|
java.lang.String |
getInstallationRoot()
Returns the installation root where the program directory should be located.
|
java.lang.String |
getRecommends()
The recommended package dependencies
|
java.lang.String |
getSection()
Returns the section that specifies the 'Group' entry in the SPEC file.
|
java.lang.String |
getServicePostScript()
Returns the service post run script that will be included into the service file.
|
java.lang.String |
getServicePreScript()
Returns the service pre run script that will be included into the service file.
|
java.lang.String |
getVariablesTemplate()
Default variables for every unix daemon
|
void |
setAdditionalServiceScript(java.lang.String additionalServiceScript)
Set an additional service script that will be included into the original one.
|
void |
setArchitecture(java.lang.String architecture)
Set the current architecture
|
void |
setBundleJre(java.lang.Object bundleJre)
Add a Java VM into your setup.
|
void |
setDefaultServiceFile(java.lang.Object defaultServiceFile)
Set the default service configuration file The file will be put at the "/etc/default/$service$" location
|
void |
setDepends(java.lang.String depends)
Sets the package dependencies
|
void |
setHomepage(java.lang.String homepage)
Sets the homepage of the author
|
void |
setInstallationRoot(java.lang.String installationRoot)
Sets the installation root directory where the main files should be located.
|
void |
setRecommends(java.lang.String recommends)
Sets the recommended package dependencies
|
void |
setSection(java.lang.String section)
Set a section (like category) for the application
|
void |
setServicePostScript(java.lang.String servicePostScript)
Set a service post run script that will be included into the service file.
|
void |
setServicePreScript(java.lang.String servicePreScript)
Set a service pre run script that will be included into the service file.
|
void |
setStartDefaultService(boolean startDefaultService)
Determine if the default service should be started.
|
boolean |
shouldStartDefaultService()
Check if the default service should be started during the setup
|
getDaemonUser, isUseInitD, setDaemonUser, setUseInitDgetPostinst, getPostrm, getPreinst, getPrerm, getSetupBuilder, setPostinst, setPostrm, setPreinst, setPrermaction, build, copyTo, getAbstractSetupBuilder, getClassifier, getDescription, getDocumentationRegistry, getExtension, getFileLookup, getFileResolver, getFileSystem, getInstantiator, getObjectFactory, getRootSpec, getSetupFile, getSetupSource, getSource, getVersion, processFiles, setClassifier, setExtension, setVersioncompareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteachFile, eachFile, exclude, exclude, exclude, exclude, expand, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileMode, getFilteringCharset, getIncludeEmptyDirs, getIncludes, include, include, include, include, into, into, into, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, with@Internal public java.lang.String getVariablesTemplate()
@Input public java.lang.String getSection()
public void setSection(java.lang.String section)
section - the section@Input @Optional public java.lang.String getArchitecture()
public void setArchitecture(java.lang.String architecture)
architecture - current architecture to set@Input @Optional public java.lang.String getRecommends()
public void setRecommends(java.lang.String recommends)
recommends - package dependencies@Input @Optional public java.lang.String getDepends()
public void setDepends(java.lang.String depends)
depends - package dependencies@Input @Optional public java.lang.String getHomepage()
public void setHomepage(java.lang.String homepage)
homepage - of the author@Input public java.lang.String getInstallationRoot()
public void setInstallationRoot(java.lang.String installationRoot)
installationRoot - the installations root directory@InputFile @Optional public java.io.File getDefaultServiceFile()
public void setDefaultServiceFile(java.lang.Object defaultServiceFile)
defaultServiceFile - the default service file@Input @Optional public java.lang.String getAdditionalServiceScript()
public void setAdditionalServiceScript(java.lang.String additionalServiceScript)
additionalServiceScript - a script the will additionally be included in the service@Input @Optional public java.lang.String getServicePreScript()
public void setServicePreScript(java.lang.String servicePreScript)
servicePreScript - a script the will be included in the service as the pre run script@Input @Optional public java.lang.String getServicePostScript()
public void setServicePostScript(java.lang.String servicePostScript)
servicePostScript - a script the will be included in the service as the post run scriptpublic boolean shouldStartDefaultService()
public void setStartDefaultService(boolean startDefaultService)
startDefaultService - true by default, so only setting false makes sense here.@InputDirectory @Optional public java.io.File getBundleJre()
public void setBundleJre(java.lang.Object bundleJre)
bundleJre - path