public abstract class UnixBuilder<T extends Unix,S extends AbstractSetupBuilder> extends AbstractBuilder<T,S>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
javaMainExecutable |
protected SetupBuilder |
setup |
buildDir, fileResolver, task| Modifier | Constructor and Description |
|---|---|
protected |
UnixBuilder(T task,
SetupBuilder setup,
org.gradle.api.internal.file.FileResolver fileResolver)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBundleJre(java.io.File filesPath)
Check for the bundled JRE and add it
|
protected void |
changeDirectoryPermissionsTo755(java.io.File path)
Changes the permissions of all directories recursively inside the specified path to 755.
|
protected void |
changeFilePermissionsTo644(java.io.File path)
Changes the permissions of all files recursively inside the specified path to 644.
|
static void |
setPermissions(java.io.File file,
boolean executable)
Sets the permissions of the specified file, either to 644 (non-executable) or 755 (executable).
|
protected SetupBuilder setup
protected java.lang.String javaMainExecutable
protected UnixBuilder(T task, SetupBuilder setup, org.gradle.api.internal.file.FileResolver fileResolver)
task - the calling tasksetup - the shared settingsfileResolver - the file Resolverprotected void addBundleJre(java.io.File filesPath)
throws java.io.IOException
filesPath - the destination to put the jre atjava.io.IOException - an exceptionprotected void changeDirectoryPermissionsTo755(java.io.File path)
throws java.io.IOException
path - the pathjava.io.IOException - on I/O failuresprotected void changeFilePermissionsTo644(java.io.File path)
throws java.io.IOException
path - the pathjava.io.IOException - on I/O failurespublic static void setPermissions(java.io.File file,
boolean executable)
throws java.io.IOException
file - the fileexecutable - if set to true the executable bit will be setjava.io.IOException - on errors when setting the permissions