Helper class for the plugin
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
COMMONJS_MODULE |
|
static java.lang.String |
CPSeparator |
|
static java.lang.String |
DEBUG_LVL |
|
static java.lang.String |
ECMA_51_GLOBAL |
|
static java.lang.String |
ECMA_51_ISOLATED |
|
static java.lang.String |
ECMA_6 |
|
static java.lang.String |
ERROR_LVL |
|
static java.lang.String |
EXT |
|
static java.lang.String |
FASTOPT_SUFFIX |
|
static java.lang.String |
FASTOPT_TEST_SUFFIX |
|
static java.lang.String |
FULLOPT_SUFFIX |
|
static java.lang.String |
FULLOPT_TEST_SUFFIX |
|
static java.lang.String |
INFO_LVL |
|
static java.lang.String |
JAVA_OPT |
|
static java.lang.String |
JETTY_SERVER_VERSION |
|
static java.lang.String |
JETTY_WEBSOCKET_VERSION |
|
static java.lang.String |
JSDOM |
|
static java.lang.String |
JSENV |
|
static java.lang.String |
JS_REL_DIR |
|
static java.lang.String |
NOOPT_TEST_SUFFIX |
|
static java.lang.String |
PHANTOM |
|
static java.lang.String |
RHINO |
|
static java.lang.String |
RUN_FULL |
|
static java.lang.String |
RUN_NOOPT |
|
static java.lang.String |
TEST_FRAMEWORKS |
|
static java.lang.String |
TEST_SUFFIX |
|
static java.lang.String |
USE_MAIN_MODULE |
|
static java.lang.String |
WARN_LVL |
| Type | Name and description |
|---|---|
static void |
deleteRecursive(java.io.File file)Deletes a file, if it is a folder, deletes it recursively. |
static scala.collection.mutable.Seq |
getMinimalDependencySeq(org.gradle.api.Project project)Returns the minimal ResolvedDependency Seq, which is comprised of only the generated js file. |
static org.scalajs.core.tools.linker.backend.OutputMode |
getOutputMode(java.lang.String s)Returns the outputMode corresponding to a string |
static boolean |
isTaskInStartParameter(org.gradle.api.Project project, java.lang.String task)Checks if there is a task to be executed (explicitely specified) |
static void |
listRecursive(java.io.File file, org.gradle.api.Project project)Prints file if it is a file, or all the files contained in file if it is a directory |
static void |
listRecursive(org.gradle.api.file.FileCollection file, org.gradle.api.Project project)Prints all the files in a FileCollection (as well as subfiles if there are directories) |
static void |
prepareGraph(org.gradle.api.Project project)Prepares the TaskExecutionGraph for the given project |
static org.scalajs.jsenv.JSEnv |
resolveEnv(org.gradle.api.Project project)Resolves the environment to use, depending on the project properties |
static org.scalajs.core.tools.logging.Level |
resolveLogLevel(org.gradle.api.Project project, java.lang.String property, org.scalajs.core.tools.logging.Level base)Resolves the level of logging, depending on the project properties |
static org.scalajs.core.tools.linker.backend.ModuleKind |
resolveModuleKind(org.gradle.api.Project project) |
static java.lang.String |
resolvePath(org.gradle.api.Project project)Resolves the path of the file to run, depending on full, fast or no optimization |
static java.util.List<com.github.gtache.testing.TestFramework> |
resolveTestFrameworks(org.gradle.api.Project project)Returns the list of custom TestFrameworks added by the user |
static java.lang.String |
toRegex(java.lang.String s)Takes a wildcard and returns a regex corresponding to it Example : com.github.* => com\\.github\\ |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Deletes a file, if it is a folder, deletes it recursively.
file - The file to deleteReturns the minimal ResolvedDependency Seq, which is comprised of only the generated js file.
project - The projectReturns the outputMode corresponding to a string
s - The stringChecks if there is a task to be executed (explicitely specified)
project - The project whose startparameters we want to usetask - The name task to be checkedPrints file if it is a file, or all the files contained in file if it is a directory
file - The file to printproject - For logging (printing)Prints all the files in a FileCollection (as well as subfiles if there are directories)
file - The FileCollectionproject - For logging (printing)Prepares the TaskExecutionGraph for the given project
Resolves the environment to use, depending on the project properties
project - The project with properties to checkResolves the level of logging, depending on the project properties
project - The project with the property to checkproperty - The property used on the switchResolves the path of the file to run, depending on full, fast or no optimization
Returns the list of custom TestFrameworks added by the user
project - The projectTakes a wildcard and returns a regex corresponding to it Example : com.github.* => com\\.github\\..*
s - The string to transform