@Service public class PomPackaging extends AbstractPackagingProvider
PackagingProviderfileManager, LOGGER, pathResolver, ROO_PACKAGING_PROVIDER_PROPERTY| Constructor and Description |
|---|
PomPackaging()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createOtherArtifacts(org.springframework.roo.model.JavaPackage topLevelPackage,
String module,
ProjectOperations projectOperations)
Subclasses can override this method to create any other required files or
directories (apart from the POM, which has previously been generated by
AbstractPackagingProvider.createPom(org.springframework.roo.model.JavaPackage, java.lang.String, java.lang.String, org.springframework.roo.project.GAV, java.lang.String, org.springframework.roo.project.ProjectOperations)). |
Collection<Path> |
getPaths()
|
boolean |
isDefault()
Indicates whether this type of packaging should be used for new projects
and modules by default, i.e. when the user doesn't specify the packaging.
|
protected void |
setPackagingProviderId(Document pom)
Stores the ID of this
PackagingProvider as a POM property called
"roo.packaging.provider". |
activate, createArtifacts, createPom, getArtifactId, getFileManager, getFullyQualifiedModuleName, getGroupId, getId, getPathResolver, getProjectName, setGroupIdAndParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateArtifacts, getIdprotected void createOtherArtifacts(org.springframework.roo.model.JavaPackage topLevelPackage,
String module,
ProjectOperations projectOperations)
AbstractPackagingProviderAbstractPackagingProvider.createPom(org.springframework.roo.model.JavaPackage, java.lang.String, java.lang.String, org.springframework.roo.project.GAV, java.lang.String, org.springframework.roo.project.ProjectOperations)).
This implementation sets up the Log4j configuration file for the root module.
createOtherArtifacts in class AbstractPackagingProvidermodule - the unqualified name of the module being created (empty
means the root or only module)projectOperations - can't be injected as it would create a circular
dependencypublic Collection<Path> getPaths()
PackagingProviderpublic boolean isDefault()
PackagingProvider
If the user defines their own PackagingProviders, they should
ensure that at most one of them returns true from this
method.
isDefault in interface PackagingProviderprotected final void setPackagingProviderId(Document pom)
AbstractPackagingProviderPackagingProvider as a POM property called
"roo.packaging.provider". Subclasses can override this
method, but be aware that Roo needs some way of working out from a given
pom.xml file which PackagingProvider should be used.setPackagingProviderId in class AbstractPackagingProviderpom - the DOM document for the POM being createdCopyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.