| Modifier and Type | Method and Description |
|---|---|
DirectoryResource |
ForgeEnvironment.getConfigDirectory()
Get the configuration directory.
|
DirectoryResource |
ForgeEnvironment.getForgeHome()
Get the Forge Home directory.
|
DirectoryResource |
ForgeEnvironment.getPluginDirectory()
Return the directory Forge is using to store and load third-party plugins.
|
| Modifier and Type | Method and Description |
|---|---|
DirectoryResource |
Project.getProjectRoot()
|
| Modifier and Type | Method and Description |
|---|---|
DirectoryResource |
JavaSourceFacet.getBasePackageResource()
|
DirectoryResource |
ResourceFacet.getResourceFolder()
Get the
DirectoryResource representing the folder this Project uses to store package-able,
non-source documents (such as configuration files.) |
DirectoryResource |
JavaSourceFacet.getSourceFolder()
Get the
DirectoryResource this Project uses to store package-able source documents (such as .java
files.) |
DirectoryResource |
ResourceFacet.getTestResourceFolder()
Get the
DirectoryResource representing the folder this Project uses to store test-scoped
non-source documents (such as configuration files.) Files in this directory will never be packaged or deployed
except when running Unit Tests. |
DirectoryResource |
JavaSourceFacet.getTestSourceFolder()
Get the
DirectoryResource this Project uses to store test-scoped source documents (such as .java
files.) Files in this directory will never be packaged or deployed except when running Unit Tests. |
DirectoryResource |
WebResourceFacet.getWebRootDirectory()
Get the default Web Root directory (this is the
DirectoryResource containing resources to be deployed to
the web-root URL when the application is published. |
| Modifier and Type | Method and Description |
|---|---|
List<DirectoryResource> |
ResourceFacet.getResourceFolders()
Get a list of
DirectoryResources representing the directories this project uses to contain Project
non-source documents (such as configuration files.) |
List<DirectoryResource> |
JavaSourceFacet.getSourceFolders()
Get a list of
DirectoryResources this project uses to contain Project source documents (such as
.java files.) |
List<DirectoryResource> |
WebResourceFacet.getWebRootDirectories()
Get a list containing all possible Web Root
DirectoryResources for the current project. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ProjectLocator.containsProject(DirectoryResource dir)
Return true if the given
DirectoryResource contains a project. |
Project |
ProjectLocator.createProject(DirectoryResource dir)
Attempt to locate a project root directory in the given folder.
|
| Modifier and Type | Method and Description |
|---|---|
DirectoryResource |
ProjectFactory.findProjectRootRecusively(DirectoryResource currentDirectory) |
DirectoryResource |
ProjectFactory.locateRecursively(DirectoryResource startingDirectory,
ProjectLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
void |
ProjectAssociationProvider.associate(Project project,
DirectoryResource parent)
Create a parent-child association between the given Project and the given parent directory.
|
boolean |
ProjectAssociationProvider.canAssociate(Project project,
DirectoryResource parent)
Return true if this provide is capable of creating a parent-child association between the given Project and the
given parent directory.
|
boolean |
ProjectFactory.containsProject(DirectoryResource dir)
An exception-safe method of determining whether a directory contains a project.
|
Project |
ProjectFactory.createProject(DirectoryResource root,
Class<? extends Facet>... facetTypes) |
Project |
ProjectFactory.findProject(DirectoryResource dir) |
Project |
ProjectFactory.findProjectRecursively(DirectoryResource startingPath) |
DirectoryResource |
ProjectFactory.findProjectRootRecusively(DirectoryResource currentDirectory) |
DirectoryResource |
ProjectFactory.locateRecursively(DirectoryResource startingDirectory,
ProjectLocator locator) |
| Modifier and Type | Method and Description |
|---|---|
DirectoryResource |
DirectoryResource.createFrom(File file) |
DirectoryResource |
DirectoryResource.createTempResource() |
DirectoryResource |
DirectoryResource.getChildDirectory(String name)
Obtain a reference to the child
DirectoryResource. |
DirectoryResource |
DirectoryResource.getOrCreateChildDirectory(String name) |
| Modifier and Type | Method and Description |
|---|---|
DirectoryResource |
Shell.getConfigDir()
Return the file-system directory currently in use as the configuration directory.
|
DirectoryResource |
Shell.getCurrentDirectory()
Return the current working directory resource of the shell.
|
| Modifier and Type | Method and Description |
|---|---|
static DirectoryResource |
ResourceUtil.getContextDirectory(Resource<?> r) |
| Modifier and Type | Method and Description |
|---|---|
static int |
NativeSystemCall.execFromPath(String command,
String[] parms,
ShellPrintWriter out,
DirectoryResource path)
Execute a native system command as if it were run from the given path.
|
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.