public class MuleContentGenerator extends ContentGenerator
projectInformation| Constructor and Description |
|---|
MuleContentGenerator(ProjectInformation projectInformation) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyDescriptorFile() |
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 the destination folder
|
void |
createContent()
It creates 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.
|
void |
createTestFolderContent()
It creates the content that contains the test Mule source code.
|
checkPathExist, copyFile, copyPomFile, createMavenDescriptors, createPomPropertiespublic MuleContentGenerator(ProjectInformation projectInformation)
public void createContent()
throws IOException
createContent in class ContentGeneratorIOExceptionpublic 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 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 contentpublic static File createClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel, File destinationFolder)
classLoaderModel - the classloader model of the application being packagedpublic void createDescriptors()
throws IOException
PackagingTypeIOExceptionpublic void copyDescriptorFile()
throws IOException
copyDescriptorFile in class ContentGeneratorIOExceptionCopyright © 2019 MuleSoft Inc. All rights reserved.