Package deltix.qsrv.solgen.java
Class GradleProject
- java.lang.Object
-
- deltix.qsrv.solgen.java.GradleProject
-
-
Field Summary
Fields Modifier and Type Field Description static Property
JAVA_PROJECT_GROUP
static Property
JAVA_PROJECT_NAME
static Property
JAVA_PROJECT_ROOT
static java.lang.String
PROJECT_TYPE
static java.util.List<Property>
PROPERTIES
-
Constructor Summary
Constructors Constructor Description GradleProject(java.nio.file.Path root, java.lang.String group, java.lang.String name)
GradleProject(java.util.Properties properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createBuildGradle()
void
createReadme()
void
createSettingsGradle()
void
createSkeleton()
Creates project skeleton.void
flush()
java.lang.String
getGroup()
java.nio.file.Path
getLibsRoot()
Project libs directory.java.lang.String
getName()
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.static boolean
isValidGroup(java.lang.String s)
static boolean
isValidName(java.lang.String s)
void
markAsScript(java.nio.file.Path path)
void
setProjectProperty(java.lang.String key, java.lang.String value)
Sets project property.void
setTbVersion(java.lang.String version)
void
setVersion(java.lang.String version)
-
-
-
Field Detail
-
PROJECT_TYPE
public static final java.lang.String PROJECT_TYPE
- See Also:
- Constant Field Values
-
JAVA_PROJECT_ROOT
public static final Property JAVA_PROJECT_ROOT
-
JAVA_PROJECT_GROUP
public static final Property JAVA_PROJECT_GROUP
-
JAVA_PROJECT_NAME
public static final Property JAVA_PROJECT_NAME
-
PROPERTIES
public static final java.util.List<Property> PROPERTIES
-
-
Method Detail
-
getSourcesRoot
public java.nio.file.Path getSourcesRoot()
Description copied from interface:Project
Sources root.- Specified by:
getSourcesRoot
in interfaceProject
- Returns:
- sources root directory.
-
getResourcesRoot
public java.nio.file.Path getResourcesRoot()
Description copied from interface:Project
Resources root.- Specified by:
getResourcesRoot
in interfaceProject
- Returns:
- resources root directory.
-
getProjectRoot
public java.nio.file.Path getProjectRoot()
Description copied from interface:Project
Project root.- Specified by:
getProjectRoot
in interfaceProject
- Returns:
- project root directory.
-
getLibsRoot
public java.nio.file.Path getLibsRoot()
Description copied from interface:Project
Project libs directory.- Specified by:
getLibsRoot
in interfaceProject
- Returns:
- path to libs root.
-
getScripts
public java.util.List<java.nio.file.Path> getScripts()
Description copied from interface:Project
Project scripts.- Specified by:
getScripts
in interfaceProject
- Returns:
- list of project scripts.
-
markAsScript
public void markAsScript(java.nio.file.Path path)
- Specified by:
markAsScript
in interfaceProject
-
setProjectProperty
public void setProjectProperty(java.lang.String key, java.lang.String value)
Description copied from interface:Project
Sets project property.- Specified by:
setProjectProperty
in interfaceProject
- Parameters:
key
- property pathvalue
- property value
-
createSkeleton
public void createSkeleton() throws java.io.IOException
Description copied from interface:Project
Creates project skeleton.- Specified by:
createSkeleton
in interfaceProject
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Throws:
java.io.IOException
-
setVersion
public void setVersion(java.lang.String version)
-
setTbVersion
public void setTbVersion(java.lang.String version)
-
createBuildGradle
public void createBuildGradle() throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
createSettingsGradle
public void createSettingsGradle() throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
createReadme
public void createReadme() throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
getGroup
public java.lang.String getGroup()
-
getName
public java.lang.String getName()
-
isValidGroup
public static boolean isValidGroup(@Nullable java.lang.String s)
-
isValidName
public static boolean isValidName(@Nullable java.lang.String s)
-
-