public interface BuiltProject
| Modifier and Type | Method and Description |
|---|---|
List<org.jboss.shrinkwrap.api.Archive> |
getArchives()
Returns a list of all supported
Archives found in the first level of the build target directory. |
<A extends org.jboss.shrinkwrap.api.Archive<?>> |
getArchives(Class<A> type)
Returns a list of all
Archives of the given type of Archive found in the first level of the build
target directory. |
org.jboss.shrinkwrap.api.Archive |
getDefaultBuiltArchive()
Tries to find an
Archive with a default name. |
int |
getMavenBuildExitCode()
Returns an exit code of a Maven build set for this instance.
|
String |
getMavenLog()
Returns a log of a Maven build of this project.
|
org.apache.maven.model.Model |
getModel()
Returns an instance of
Model representing the set and parsed POM file |
BuiltProject |
getModule(String moduleName)
Returns an instance of
BuiltProject representing module with the given name. |
List<BuiltProject> |
getModules()
Returns a list of instances of
BuiltProject representing all modules specified in the POM file. |
File |
getTargetDirectory()
Returns a
File representing a build target directory |
void |
setMavenBuildExitCode(int mavenBuildExitCode)
Sets the given exit code of a Maven build for this instance.
|
void |
setMavenLog(String mavenLog)
Sets the given log a Maven build for this instance
|
org.jboss.shrinkwrap.api.Archive getDefaultBuiltArchive()
Archive with a default name.
As a "default archive name" is understood:
null is returnedArchive with a default name. If no archive is found then null is returnedBuiltProject getModule(String moduleName)
BuiltProject representing module with the given name.
The name has to equal to the string specified in current project POM filemoduleName - Name of the required moduleBuiltProject representing module with the given name.List<BuiltProject> getModules()
BuiltProject representing all modules specified in the POM file.BuiltProject representing all modules specified in the POM file.File getTargetDirectory()
File representing a build target directoryFile representing a build target directoryList<org.jboss.shrinkwrap.api.Archive> getArchives()
Archives found in the first level of the build target directory.
If no target directory is present then null is returned.Archives found in the first level of the build target directory.
If no target directory is present then null is returned.<A extends org.jboss.shrinkwrap.api.Archive<?>> List<A> getArchives(Class<A> type)
Archives of the given type of Archive found in the first level of the build
target directory. If no target directory is present then null is returned.A - The required type of Archivetype - The required type of ArchiveArchives of the given type of Archive found in the first level of the build
target directory. If no target directory is present then null is returned.org.apache.maven.model.Model getModel()
Model representing the set and parsed POM fileModel representing the set and parsed POM fileString getMavenLog()
NOTE: Please be aware that if you retrieve this instance of BuiltProject from the EmbeddedMaven
build and you use the method EmbeddedMaven.withMavenInvokerSet(InvocationRequest, Invoker) for it,
then no Maven log is set by default and this method returns null!
void setMavenLog(String mavenLog)
mavenLog - The log of a Maven build to be setint getMavenBuildExitCode()
void setMavenBuildExitCode(int mavenBuildExitCode)
mavenBuildExitCode - The exit code of a Maven build to be set. Default value is 0Copyright © 2016 JBoss by Red Hat. All rights reserved.