public class ModuleBuildHelper extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
static class |
ModuleBuildHelper.SvnCleaner |
| Constructor and Description |
|---|
ModuleBuildHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
JahiaTemplatesPackage |
compileAndDeploy(String moduleId,
File sources,
JCRSessionWrapper session) |
org.jahia.services.templates.ModuleBuildHelper.CompiledModuleInfo |
compileModule(File sources) |
JCRNodeWrapper |
createModule(String moduleName,
String artifactId,
String groupId,
String moduleType,
File moduleSources,
JCRSessionWrapper session) |
void |
deployToMaven(String groupId,
String artifactId,
ModuleReleaseInfo releaseInfo,
File generatedJar) |
JahiaTemplatesPackage |
duplicateModule(String dstModuleName,
String dstModuleId,
String dstGroupId,
String srcPath,
String scmURI,
String branchOrTag,
String srcModuleId,
String srcModuleVersion,
boolean uninstallSrcModule,
String dstPath,
boolean deleteSrcFolder,
JCRSessionWrapper session) |
int |
getModuleStartLevel() |
void |
regenerateImportFile(JCRSessionWrapper session,
List<File> modifiedFiles,
File sources,
String moduleId,
String moduleIdWithVersion) |
protected File |
releaseModuleInternal(org.apache.maven.model.Model model,
String lastVersion,
String releaseVersion,
ModuleReleaseInfo releaseInfo,
File sources,
String scmUrl) |
void |
setIgnoreSnapshots(String ignoreSnapshots) |
void |
setMavenArchetypeCatalog(String mavenArchetypeCatalog) |
void |
setMavenArchetypePlugin(String mavenArchetypePlugin) |
void |
setMavenArchetypeVersion(String mavenArchetypeVersion)
Supplies the exact version of the Maven archetypes to use when creating a module.
|
void |
setMavenExecutable(String mavenExecutable) |
void |
setMavenMinRequiredVersion(String mavenRequiredVersion) |
void |
setMavenReleasePlugin(String mavenReleasePlugin) |
void |
setMavenWarnIfVersionIsOlderThan(String mavenWarnIfVersionIsOlderThan) |
void |
setModuleManager(ModuleManager moduleManager) |
void |
setModuleStartLevel(int moduleStartLevel) |
void |
setSettingsBean(SettingsBean settingsBean) |
void |
setSourceControlHelper(SourceControlHelper scmHelper) |
void |
setTemplatePackageRegistry(TemplatePackageRegistry registry) |
void |
setToolbarWarningsService(ToolbarWarningsService toolbarWarningsService) |
public JahiaTemplatesPackage compileAndDeploy(String moduleId, File sources, JCRSessionWrapper session) throws javax.jcr.RepositoryException, IOException, org.osgi.framework.BundleException
javax.jcr.RepositoryExceptionIOExceptionorg.osgi.framework.BundleExceptionpublic org.jahia.services.templates.ModuleBuildHelper.CompiledModuleInfo compileModule(File sources) throws IOException
IOExceptionpublic JCRNodeWrapper createModule(String moduleName, String artifactId, String groupId, String moduleType, File moduleSources, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException, org.osgi.framework.BundleException
IOExceptionjavax.jcr.RepositoryExceptionorg.osgi.framework.BundleExceptionpublic void deployToMaven(String groupId, String artifactId, ModuleReleaseInfo releaseInfo, File generatedJar) throws IOException
IOExceptionprotected File releaseModuleInternal(org.apache.maven.model.Model model, String lastVersion, String releaseVersion, ModuleReleaseInfo releaseInfo, File sources, String scmUrl) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic void setIgnoreSnapshots(String ignoreSnapshots)
public void setMavenArchetypeCatalog(String mavenArchetypeCatalog)
public void setSettingsBean(SettingsBean settingsBean)
public void setSourceControlHelper(SourceControlHelper scmHelper)
public void setTemplatePackageRegistry(TemplatePackageRegistry registry)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setMavenReleasePlugin(String mavenReleasePlugin)
public void setMavenMinRequiredVersion(String mavenRequiredVersion)
public void setMavenExecutable(String mavenExecutable)
public void setToolbarWarningsService(ToolbarWarningsService toolbarWarningsService)
public JahiaTemplatesPackage duplicateModule(String dstModuleName, String dstModuleId, String dstGroupId, String srcPath, String scmURI, String branchOrTag, String srcModuleId, String srcModuleVersion, boolean uninstallSrcModule, String dstPath, boolean deleteSrcFolder, JCRSessionWrapper session) throws IOException, javax.jcr.RepositoryException, org.osgi.framework.BundleException
IOExceptionjavax.jcr.RepositoryExceptionorg.osgi.framework.BundleExceptionpublic void regenerateImportFile(JCRSessionWrapper session, List<File> modifiedFiles, File sources, String moduleId, String moduleIdWithVersion) throws javax.jcr.RepositoryException, SAXException, IOException, TransformerException
javax.jcr.RepositoryExceptionSAXExceptionIOExceptionTransformerExceptionpublic void setMavenArchetypeVersion(String mavenArchetypeVersion)
mavenArchetypeVersion - the exact version of the Maven archetypes to use when creating a modulepublic int getModuleStartLevel()
public void setModuleStartLevel(int moduleStartLevel)
public void setModuleManager(ModuleManager moduleManager)
public void setMavenWarnIfVersionIsOlderThan(String mavenWarnIfVersionIsOlderThan)
public void setMavenArchetypePlugin(String mavenArchetypePlugin)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.