public class ContentGenerator extends Object
| Constructor and Description |
|---|
ContentGenerator(String groupId,
String artifactId,
String version,
PackagingType packagingType,
Path projectBaseFolder,
Path projectTargetFolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
createApplicationClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel)
It creates classloader-model.json in META-INF/mule-artifact
|
static ClassLoaderModel |
createClassLoaderModelFromJson(File classLoaderModelDescriptor)
Creates a
ClassLoaderModel from the JSON representation |
static File |
createClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel,
File destinationFolder)
It creates classloader-model.json in META-INF/mule-artifact
|
void |
createContent()
It create all the package content in the required folders
|
void |
createDescriptors()
It creates the descriptors files, pom.xml, pom.properties, and the mule-*.json file.
|
void |
createMetaInfMuleSourceFolderContent()
It creates the
FolderNames.MULE_SRC folder used by IDEs to import the project
source code |
void |
createMuleSrcFolderContent()
It creates the content that contains the productive Mule source code.
|
protected void |
createPomProperties() |
void |
createTestFolderContent()
It creates the content that contains the test Mule source code.
|
public void createContent()
throws IOException
IOExceptionpublic void createMuleSrcFolderContent()
throws IOException
IOExceptionpublic void createTestFolderContent()
throws IOException
PackagingTypeIOExceptionpublic void createMetaInfMuleSourceFolderContent()
throws IOException
FolderNames.MULE_SRC folder used by IDEs to import the project
source codeIOExceptionpublic void createDescriptors()
throws IOException
PackagingTypeIOExceptionpublic void createApplicationClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel)
classLoaderModel - the classloader model of the application being packagedpublic static ClassLoaderModel createClassLoaderModelFromJson(File classLoaderModelDescriptor)
ClassLoaderModel from the JSON representationclassLoaderModelDescriptor - file containing the classloader model in JSON formatClassLoaderModel matching the provided JSON contentprotected void createPomProperties()
public static File createClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel, File destinationFolder)
classLoaderModel - the classloader model of the application being packagedCopyright © 2017. All rights reserved.