public class WorkingDirectoryGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.plugin.logging.Log |
log |
| Constructor and Description |
|---|
WorkingDirectoryGenerator(org.apache.maven.plugin.logging.Log log,
org.mule.munit.remote.api.project.ApplicationStructureGenerator applicationStructureGenerator,
org.apache.maven.project.MavenProject project) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteDirectories()
Clears all directories previously created
|
Path |
generate(org.mule.munit.remote.api.configuration.RunConfiguration runConfiguration)
Generates all required folders for the MUnit working directory.
|
Path |
generateApplicationStructure(org.mule.munit.remote.api.configuration.RunConfiguration runConfiguration)
It creates the application folder structure in the working directory
|
Optional<Path> |
generateDomainStructure()
It creates the domain folder structure in the working directory provided there is a mule-domain as dependency of the
application.
|
Path |
generateWorkingDirectory()
Provides the File to a new MUnit working directory that has been generated in the project's target and appended a timestamp.
|
protected org.mule.munit.remote.api.project.DomainStructureGenerator |
getDomainStructureGenerator(Optional<org.apache.maven.artifact.Artifact> domainArtifact,
File domainFile) |
protected MuleApplicationDependencyFinder |
getMuleApplicationDependencyFinder() |
void |
setDestinationName(String destinationName) |
public WorkingDirectoryGenerator(org.apache.maven.plugin.logging.Log log,
org.mule.munit.remote.api.project.ApplicationStructureGenerator applicationStructureGenerator,
org.apache.maven.project.MavenProject project)
public void setDestinationName(String destinationName)
public Path generate(org.mule.munit.remote.api.configuration.RunConfiguration runConfiguration) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic Path generateWorkingDirectory()
public Path generateApplicationStructure(org.mule.munit.remote.api.configuration.RunConfiguration runConfiguration) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic Optional<Path> generateDomainStructure() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void deleteDirectories()
protected MuleApplicationDependencyFinder getMuleApplicationDependencyFinder()
Copyright © 2019. All rights reserved.