Package deltix.qsrv.solgen.base
Interface Project
-
- All Superinterfaces:
java.io.Flushable
- All Known Implementing Classes:
GradleProject,MakeProject,PythonProject,VsProject,VsProject
public interface Project extends java.io.FlushableBase interface for all kinds of projects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaddRoot(java.lang.String relativeDirPath, java.lang.String fileName, java.io.InputStream content)default voidaddRoot(java.lang.String relativeDirPath, java.lang.String fileName, java.lang.String content)Adds source file to project.default voidaddScript(Source source)default voidaddSource(Source source)default voidaddSource(java.lang.String relativeDirPath, java.lang.String fileName, java.lang.String content)Adds source file to project.voidcreateSkeleton()Creates project skeleton.java.nio.file.PathgetLibsRoot()Project libs directory.java.nio.file.PathgetProjectRoot()Project root.java.nio.file.PathgetResourcesRoot()Resources root.java.util.List<java.nio.file.Path>getScripts()Project scripts.java.nio.file.PathgetSourcesRoot()Sources root.voidmarkAsScript(java.nio.file.Path path)default voidsetProjectProperties(java.util.Properties properties)Set multiple project properties.voidsetProjectProperty(java.lang.String key, java.lang.String value)Sets project property.
-
-
-
Method Detail
-
getSourcesRoot
java.nio.file.Path getSourcesRoot()
Sources root.- Returns:
- sources root directory.
-
getResourcesRoot
java.nio.file.Path getResourcesRoot()
Resources root.- Returns:
- resources root directory.
-
getProjectRoot
java.nio.file.Path getProjectRoot()
Project root.- Returns:
- project root directory.
-
getLibsRoot
java.nio.file.Path getLibsRoot()
Project libs directory.- Returns:
- path to libs root.
-
getScripts
java.util.List<java.nio.file.Path> getScripts()
Project scripts.- Returns:
- list of project scripts.
-
markAsScript
void markAsScript(java.nio.file.Path path)
-
setProjectProperty
void setProjectProperty(java.lang.String key, java.lang.String value)Sets project property.- Parameters:
key- property pathvalue- property value
-
createSkeleton
void createSkeleton() throws java.io.IOExceptionCreates project skeleton.- Throws:
java.io.IOException
-
setProjectProperties
default void setProjectProperties(java.util.Properties properties)
Set multiple project properties.- Parameters:
properties- properties to set.
-
addSource
default void addSource(java.lang.String relativeDirPath, java.lang.String fileName, java.lang.String content)Adds source file to project.- Parameters:
relativeDirPath- relative path in sources directory.fileName- file name.content- source file content.
-
addSource
default void addSource(Source source)
-
addScript
default void addScript(Source source)
-
addRoot
default void addRoot(java.lang.String relativeDirPath, java.lang.String fileName, java.lang.String content)Adds source file to project.- Parameters:
relativeDirPath- relative path in sources directory.fileName- file name.content- source file content.
-
addRoot
default void addRoot(java.lang.String relativeDirPath, java.lang.String fileName, java.io.InputStream content)
-
-