public class AbstractSetupBuilder extends java.lang.Object implements SetupSources
| Modifier and Type | Field and Description |
|---|---|
protected org.gradle.api.Project |
project |
| Constructor and Description |
|---|
AbstractSetupBuilder(org.gradle.api.Project project)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
documentType(groovy.lang.Closure<?> closue)
Deprecated.
|
java.lang.String |
getAppIdentifier()
Get the short application identifier of the setup file.
|
java.lang.String |
getApplication()
Return the name of the application
|
java.lang.String |
getArchiveName()
Get the name of the setup file without extension.
|
java.lang.Object |
getBundleJre()
Get the bundle JRE value.
|
java.lang.String |
getBundleJreTarget()
Get the target for a bundle JRE.
|
java.lang.String |
getCopyright()
Get the Copyright information.
|
java.lang.String |
getDescription()
Get a global description.
|
java.io.File |
getDestinationDir()
Override to remove the annotation OutputDirectories in the Copy task.
|
java.util.List<DocumentType> |
getDocumentType()
Deprecated.
|
java.io.File |
getIconForType(java.io.File buildDir,
java.lang.String type)
Retrieve a specific icon from the icons set for the setup
|
java.lang.Object |
getIcons()
Get the icons for the setup.
|
java.lang.String |
getMainClass()
Get the main class.
|
java.lang.String |
getMainJar()
Get the main jar file.
|
org.gradle.api.Project |
getProject()
Get the current project.
|
org.gradle.api.internal.file.copy.CopySpecInternal |
getRootSpec() |
org.gradle.api.file.FileTree |
getSource()
All the inputs
|
java.lang.String |
getVendor()
Vendor of this setup
|
java.lang.String |
getVersion()
Get the version of the setup.
|
boolean |
isFailOnEmptyFrom()
If enabled then an empty from definition is failing the build.
|
void |
setAppIdentifier(java.lang.String identifier)
Set the short application identifier for the setup file.
|
void |
setApplication(java.lang.String application)
Setup an application with specified type
|
void |
setArchiveName(java.lang.String setupName)
Set the name of the download file for the setup.
|
void |
setBundleJre(java.lang.Object bundleJre)
Add a Java VM into your setup.
|
void |
setBundleJreTarget(java.lang.String bundleJreTarget)
The target directory in the install directory for a bundled JRE.
|
void |
setCopyright(java.lang.String copyright)
Set the copyright information.
|
void |
setDescription(java.lang.String description)
Set a description for the installer.
|
void |
setDestinationDir(java.lang.Object destinationDir)
Sets the destination of this task.
|
void |
setFailOnEmptyFrom(boolean failOnEmptyFrom)
Enable the check.
|
void |
setIcons(java.lang.Object icons)
Set the icons for the setup.
|
void |
setMainClass(java.lang.String mainClass)
Set the main class of the Java application.
|
void |
setMainJar(java.lang.String mainJar)
Set the jar which contains the main class.
|
void |
setVendor(java.lang.String vendor)
Set the vendor
|
void |
setVersion(java.lang.String version)
Set the version of the setup.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteachFile, eachFile, exclude, exclude, exclude, exclude, 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, withpublic AbstractSetupBuilder(org.gradle.api.Project project)
project - current projectpublic org.gradle.api.internal.file.copy.CopySpecInternal getRootSpec()
getRootSpec in interface org.gradle.api.internal.file.copy.CopySpecSourcepublic org.gradle.api.Project getProject()
public java.io.File getDestinationDir()
public org.gradle.api.file.FileTree getSource()
getSource in interface SetupSourcespublic void setDestinationDir(java.lang.Object destinationDir)
destinationDir - The destination directory. Must not be null.public java.lang.String getVendor()
public void setVendor(java.lang.String vendor)
vendor - vendorpublic java.lang.String getApplication()
public void setApplication(java.lang.String application)
application - type of applicationpublic java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - the versionpublic java.lang.String getAppIdentifier()
public void setAppIdentifier(java.lang.String identifier)
identifier - new base namepublic java.lang.String getArchiveName()
public void setArchiveName(java.lang.String setupName)
setupName - name of the setuppublic java.lang.Object getIcons()
public java.io.File getIconForType(java.io.File buildDir,
java.lang.String type)
throws java.io.IOException
buildDir - directory in which to put the icontype - of the icon to retrievejava.io.IOException - if an error occurspublic void setIcons(java.lang.Object icons)
icons - the iconspublic java.lang.Object getBundleJre()
public void setBundleJre(java.lang.Object bundleJre)
bundleJre - version or pathsetBundleJreTarget(String)public java.lang.String getBundleJreTarget()
public void setBundleJreTarget(java.lang.String bundleJreTarget)
bundleJreTarget - the new valuepublic java.lang.String getMainClass()
public void setMainClass(java.lang.String mainClass)
mainClass - the class namepublic java.lang.String getMainJar()
public void setMainJar(java.lang.String mainJar)
mainJar - the main jar file@Deprecated public void documentType(groovy.lang.Closure<?> closue)
closue - document type@Deprecated public java.util.List<DocumentType> getDocumentType()
public boolean isFailOnEmptyFrom()
public void setFailOnEmptyFrom(boolean failOnEmptyFrom)
failOnEmptyFrom - true, check is enabledpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - new descriptionpublic java.lang.String getCopyright()
public void setCopyright(java.lang.String copyright)
copyright - the copyright notice