Class DefaultProjectTemplate
java.lang.Object
net.thevpc.nsite.deprecated.DefaultProjectTemplate
- All Implemented Interfaces:
ProjectTemplate
- Author:
- thevpc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.thevpc.nuts.artifact.NDescriptornet.thevpc.nuts.artifact.NDescriptorconvertToPath(String path) voidvoidcopyProperties(String from, String toFolder) voidvoidvoidevalExpression(String expression) getConfigProperty(String name) getFunction(String name) net.thevpc.nuts.core.NSessionbooleanisAskAll()booleanvoidloadConfigProperties(File file) loadSourceXmlDocument(String from) loadTargetXmlDocument(String from) voidvoidfinal voidregisterFunction(String name, MessageNameFormat.Function function) resolveFirstPomFile(File folder) resolvePomFile(File folder) voidsetAskAll(boolean askAll) final voidsetConfigProperty(String name, String defaultvalue, StringValidator g, String title, boolean promenent) voidsetConfigValue(String propertyName, String value) voidvoidsetTargetRoot(String targetRoot) static StringsourceConvertPath(String path) voidstoreTargetXmlDocument(Document doc, String to) voidtargetAddPomParentModule(String pomxml, String modulePath) voidtargetAppendProperties(String toFile, String[] keyValues) voidtargetAppendProperty(String toFile, String name, String value) voidtargetMkdirs(String path) final voidunregisterFunction(String name)
-
Field Details
-
createPaths
-
-
Constructor Details
-
DefaultProjectTemplate
public DefaultProjectTemplate(net.thevpc.nuts.core.NSession session)
-
-
Method Details
-
isAskAll
public boolean isAskAll()- Specified by:
isAskAllin interfaceProjectTemplate
-
setAskAll
public void setAskAll(boolean askAll) -
getConfigListeners
- Specified by:
getConfigListenersin interfaceProjectTemplate
-
setConfigProperty
public final void setConfigProperty(String name, String defaultvalue, StringValidator g, String title, boolean promenent) -
getConsole
- Specified by:
getConsolein interfaceProjectTemplate
-
setConfigValue
- Specified by:
setConfigValuein interfaceProjectTemplate
-
loadConfigProperties
-
getConfigProperties
-
getConfigProperty
- Specified by:
getConfigPropertyin interfaceProjectTemplate
-
getProjectRootFolder
- Specified by:
getProjectRootFolderin interfaceProjectTemplate
-
registerDefaultsFunctions
public void registerDefaultsFunctions() -
getFunction
-
registerFunction
-
unregisterFunction
-
getMessageNameFormatContext
-
evalExpression
-
setNewlyCreated
- Specified by:
setNewlyCreatedin interfaceProjectTemplate
-
isNewlyCreated
- Specified by:
isNewlyCreatedin interfaceProjectTemplate
-
println
-
sourceConvertPath
-
replacePlaceHoldersSimple
-
convertToPath
-
loadSourceXmlDocument
- Throws:
UncheckedIOException
-
loadTargetXmlDocument
- Throws:
UncheckedIOException
-
storeTargetXmlDocument
- Throws:
UncheckedIOException
-
copyXml
- Throws:
UncheckedIOException
-
copyXml
- Throws:
UncheckedIOException
-
copyProperties
- Throws:
UncheckedIOException
-
targetAppendProperty
public void targetAppendProperty(String toFile, String name, String value) throws UncheckedIOException - Throws:
UncheckedIOException
-
targetAppendProperties
- Throws:
UncheckedIOException
-
copyJava
- Throws:
UncheckedIOException
-
copyScala
- Throws:
UncheckedIOException
-
getTargetRoot
-
setTargetRoot
-
targetMkdirs
-
targetAddPomParentModule
- Throws:
UncheckedIOException
-
getSession
public net.thevpc.nuts.core.NSession getSession()- Specified by:
getSessionin interfaceProjectTemplate
-
resolveFirstPomFile
-
resolvePomFile
-
askForPomAndUpdateConfig
public net.thevpc.nuts.artifact.NDescriptor askForPomAndUpdateConfig() -
askForPom
public net.thevpc.nuts.artifact.NDescriptor askForPom() -
getProjectName
-
getProjectVersion
-
getProjectGroup
-
getModuleName
-
getModuleVersion
-