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.Flushable
Base interface for all kinds of projects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addRoot(java.lang.String relativeDirPath, java.lang.String fileName, java.io.InputStream content)
default void
addRoot(java.lang.String relativeDirPath, java.lang.String fileName, java.lang.String content)
Adds source file to project.default void
addScript(Source source)
default void
addSource(Source source)
default void
addSource(java.lang.String relativeDirPath, java.lang.String fileName, java.lang.String content)
Adds source file to project.void
createSkeleton()
Creates project skeleton.java.nio.file.Path
getLibsRoot()
Project libs directory.java.nio.file.Path
getProjectRoot()
Project root.java.nio.file.Path
getResourcesRoot()
Resources root.java.util.List<java.nio.file.Path>
getScripts()
Project scripts.java.nio.file.Path
getSourcesRoot()
Sources root.void
markAsScript(java.nio.file.Path path)
default void
setProjectProperties(java.util.Properties properties)
Set multiple project properties.void
setProjectProperty(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.IOException
Creates 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)
-
-