public class CommonTask
extends org.gradle.api.DefaultTask
Required
-a, --account Subaccount name
Type: string (up to 30 characters; lowercase letters and numbers, starting with a letter)
-b, --application Application name
Type: string (up to 30 characters; lowercase letters and numbers, starting with a letter)
-h, --host Enter a region host.
Type: URL, for acceptable values see Regions.
-p, --password To protect your password, enter it only when prompted by the console client and not explicitly as a parameter in the properties file or the command line.
Type: string
-u, --user Use your email, SAP ID or user name
Type: string
So this class takes care of building the basic commandline runner and
verifying it. This class is meant to be subclassed for further task specific
attributes/actions| Constructor and Description |
|---|
CommonTask() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
baseCommandlineArguments(java.lang.String command)
Builds the default arguments for the neo cli.
|
protected void |
cliRunner(java.util.List<java.lang.String> commands) |
protected NeoJavaWebExtension |
getExtension() |
protected java.lang.String |
getNeoExecutable() |
protected boolean |
isSdkInstalled()
Tests if the neo sdk is installed
|
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringprotected java.util.List<java.lang.String> baseCommandlineArguments(java.lang.String command)
throws java.lang.Throwable
command - the command to be inserted see CommandsAndParamsjava.lang.Throwable - if a mandatory property is missingprotected boolean isSdkInstalled()
throws java.lang.Throwable
java.lang.Throwable - if no neo sdk is foundprotected NeoJavaWebExtension getExtension()
protected java.lang.String getNeoExecutable()
throws java.lang.Throwable
java.lang.Throwableprotected void cliRunner(java.util.List<java.lang.String> commands)