Modifier and Type | Class and Description |
---|---|
class |
TemplateOperation.InitOperation
Builder to specify additional parameters for the
TemplateOperation.createGradleInit(java.io.File, java.lang.String)
operation. |
static interface |
TemplateOperation.ProjectConfigurator |
Constructor and Description |
---|
TemplateOperation() |
TemplateOperation(ProgressHandle handle) |
Modifier and Type | Method and Description |
---|---|
void |
addConfigureProject(File projectDir,
TemplateOperation.ProjectConfigurator configurator) |
void |
addProjectPreload(File projectDir) |
void |
addWrapperInit(File target)
Initialize the Gradle wrapper in the target project.
|
void |
addWrapperInit(File target,
String version)
Initialize the Gradle wrapper in the target project with the requested
version of Gradle.
|
void |
copyFromFile(String templateName,
File target,
Map<String,? extends Object> tokens) |
void |
copyFromTemplate(String template,
File target,
Map<String,? extends Object> tokens) |
void |
createFolder(File target) |
TemplateOperation.InitOperation |
createGradleInit(File target,
String type)
Begin creation of new project using Gradle's
gradle init
functionality.
|
void |
createPackage(File base,
String pkg) |
Set<FileObject> |
getImportantFiles() |
void |
openFromFile(String templateName,
File target,
Map<String,? extends Object> tokens) |
void |
openFromTemplate(String template,
File target,
Map<String,? extends Object> tokens) |
void |
run() |
public TemplateOperation(ProgressHandle handle)
public TemplateOperation()
public Set<FileObject> getImportantFiles()
public void createFolder(File target)
public void addConfigureProject(File projectDir, TemplateOperation.ProjectConfigurator configurator)
public void addWrapperInit(File target)
gradle wrapper
.target
- project directorypublic void addWrapperInit(File target, String version)
gradle wrapper --gradle-version $version
. The version may be
the specific Gradle version required, or one of the labels supported by
the wrapper task, eg. latest
.target
- project directoryversion
- Gradle version or version labelpublic TemplateOperation.InitOperation createGradleInit(File target, String type)
TemplateOperation.InitOperation
object to specify
additional properties and then call
TemplateOperation.InitOperation.add()
to finish the request.target
- the directory to place the project attype
- either java-application
, java-library
, etc.TemplateOperation.InitOperation
builder to finish the requestpublic void copyFromFile(String templateName, File target, Map<String,? extends Object> tokens)
public void openFromFile(String templateName, File target, Map<String,? extends Object> tokens)
public void copyFromTemplate(String template, File target, Map<String,? extends Object> tokens)
public void openFromTemplate(String template, File target, Map<String,? extends Object> tokens)
public void addProjectPreload(File projectDir)