Package rife.bld.extension
Class GeneratedVersionOperation
java.lang.Object
rife.bld.operations.AbstractOperation<GeneratedVersionOperation>
rife.bld.extension.GeneratedVersionOperation
Generates a project version data class.
- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the class name.classTemplate
(File template) Sets the class template path.classTemplate
(String template) Sets the class template path.classTemplate
(Path template) Sets the class template path.Sets the destination directory.Sets the destination directory.Sets the destination directory.void
execute()
Generates a version data class for this project.Sets the file extension.fromProject
(BaseProject project) Configure the operation from aBaseProject
.Retrieves the generated version instance.packageName
(String packageName) Sets the package name.projectName
(String projectName) Sets the project name.Methods inherited from class rife.bld.operations.AbstractOperation
executeOnce, executeOnce, silent, silent
-
Constructor Details
-
GeneratedVersionOperation
public GeneratedVersionOperation()
-
-
Method Details
-
className
Sets the class name.- Parameters:
className
- the class name- Returns:
- this operation instance
-
classTemplate
Sets the class template path.- Parameters:
template
- the template path- Returns:
- this operation instance
-
classTemplate
Sets the class template path.- Parameters:
template
- the template path- Returns:
- this operation instance
-
classTemplate
Sets the class template path.- Parameters:
template
- the template path- Returns:
- this operation instance
-
directory
Sets the destination directory.- Parameters:
directory
- the destination directory- Returns:
- this operation instance
-
directory
Sets the destination directory.- Parameters:
directory
- the destination directory- Returns:
- this operation instance
-
directory
Sets the destination directory.- Parameters:
directory
- the destination directory- Returns:
- this operation instance
-
execute
Generates a version data class for this project.- Specified by:
execute
in classAbstractOperation<GeneratedVersionOperation>
- Throws:
Exception
-
extension
Sets the file extension. (Default is:.java
)- Parameters:
extension
- the file extension- Returns:
- this operation instance
-
fromProject
Configure the operation from aBaseProject
.- Parameters:
project
- the project- Returns:
- this operation instance
-
generatedVersion
Retrieves the generated version instance.- Returns:
- the generated version
-
packageName
Sets the package name.- Parameters:
packageName
- the package name- Returns:
- this operation instance
-
projectName
Sets the project name.- Parameters:
projectName
- the project name- Returns:
- this operation instance
-