public class MuleContentGenerator extends ContentGenerator
projectInformation| Constructor and Description |
|---|
MuleContentGenerator(ProjectInformation projectInformation,
org.apache.maven.model.Parent parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyDescriptorFile() |
void |
createApplicationClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel)
Deprecated.
|
void |
createApplicationClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel,
boolean prettyPrinting)
It creates classloader-model.json in META-INF/mule-artifact
|
void |
createApplicationClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel,
boolean prettyPrinting,
File destinationFolder)
It creates classloader-model.json in destinationFolder
|
void |
createAstFile(InputStream inputStream) |
static ClassLoaderModel |
createClassLoaderModelFromJson(File classLoaderModelDescriptor)
Creates a
ClassLoaderModel from the JSON representation |
static File |
createClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel,
File destinationFolder)
Deprecated.
|
static File |
createClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel,
File destinationFolder,
boolean prettyPrinting)
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, org.apache.maven.model.Parent parent)
public void createContent()
throws IOException
createContent in class ContentGeneratorIOExceptionpublic void createMuleSrcFolderContent()
throws IOException
IOExceptionpublic void createAstFile(InputStream inputStream) throws IOException
IOExceptionpublic void createTestFolderContent()
throws IOException
PackagingTypeIOExceptionpublic void createMetaInfMuleSourceFolderContent()
throws IOException
FolderNames.MULE_SRC folder used by IDEs to import the project
source codeIOException@Deprecated public void createApplicationClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel)
classLoaderModel - the classloader model of the application being packagedpublic void createApplicationClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel, boolean prettyPrinting)
classLoaderModel - the classloader model of the application being packagedprettyPrinting - public void createApplicationClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel, boolean prettyPrinting, File destinationFolder)
classLoaderModel - the classloader model of the application being packagedprettyPrinting - destinationFolder - public static ClassLoaderModel createClassLoaderModelFromJson(File classLoaderModelDescriptor)
ClassLoaderModel from the JSON representationclassLoaderModelDescriptor - file containing the classloader model in JSON formatClassLoaderModel matching the provided JSON content@Deprecated public static File createClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel, File destinationFolder)
classLoaderModel - the classloader model of the application being packagedpublic static File createClassLoaderModelJsonFile(ClassLoaderModel classLoaderModel, File destinationFolder, boolean prettyPrinting)
classLoaderModel - the classloader model of the application being packagedprettyPrinting - if true will print the json using pretty print.public void createDescriptors()
throws IOException
PackagingTypeIOExceptionpublic void copyDescriptorFile()
throws IOException
copyDescriptorFile in class ContentGeneratorIOExceptionCopyright © 2024 MuleSoft Inc. All rights reserved.