public class GradleFileSystemLayout extends FileSystemLayout
GradleFileSystemLayout provides an abstraction over the file system layout for Gradle based projects. This class
is primarily used when executing tests, etc, from within the IDE / Gradle tasks.| Modifier and Type | Field and Description |
|---|---|
static String |
BUILD_DIR_NAME
The name of the build root directory.
|
protected static String |
CLASSES |
protected static String |
RESOURCES |
protected static String |
SOURCE_SET_MAIN |
static String |
SRC_DIR_NAME
The name of the sources root directory.
|
static String |
SYSTEM_PROPERTY_BUILD_DIR
Constant for specifying the Gradle project's build directory via the System properties.
|
static String |
SYSTEM_PROPERTY_SRC_DIR
Constant for specifying the Gradle project's sources root directory (under which the tooling can find find 'main'
source set).
|
protected static String |
WEBAPP |
MAVEN_CMD_LINE_ARGS, TYPE_JAR, TYPE_WAR| Modifier and Type | Method and Description |
|---|---|
String |
determinePackagingType() |
protected Path |
getBuildRoot()
Get the directory under which all built artifacts can be found.
|
Path |
getRootPath() |
Path |
resolveBuildClassesDir() |
Path |
resolveBuildResourcesDir() |
Path |
resolveSrcWebAppDir() |
archiveNameForClassesDir, create, create, resolveMavenBuildFileNamepublic static final String SYSTEM_PROPERTY_BUILD_DIR
public static final String SYSTEM_PROPERTY_SRC_DIR
public static final String SRC_DIR_NAME
public static final String BUILD_DIR_NAME
protected static final String CLASSES
protected static final String SOURCE_SET_MAIN
protected static final String RESOURCES
protected static final String WEBAPP
public String determinePackagingType()
determinePackagingType in class FileSystemLayoutpublic Path resolveBuildClassesDir()
resolveBuildClassesDir in class FileSystemLayoutpublic Path resolveBuildResourcesDir()
resolveBuildResourcesDir in class FileSystemLayoutpublic Path resolveSrcWebAppDir()
resolveSrcWebAppDir in class FileSystemLayoutpublic Path getRootPath()
getRootPath in class FileSystemLayoutprotected Path getBuildRoot()
Copyright © 2018 JBoss by Red Hat. All rights reserved.