public class MulePackageBuilder extends Object implements PackageBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSLOADER_MODEL_JSON |
protected List<File> |
rootResources |
| Constructor and Description |
|---|
MulePackageBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
createPackage(Path destinationPath)
Creates a package and leaves that in the destinationPath.
|
void |
createPackage(Path originFolderPath,
Path destinationPath)
Creates a mule app package based on the contents of the origin folder, writing them to the destination jar file.
|
protected MuleArchiver |
getArchiver() |
MulePackageBuilder |
withArchiver(MuleArchiver archiver) |
MulePackageBuilder |
withClasses(File folder) |
MulePackageBuilder |
withMaven(File folder) |
MulePackageBuilder |
withMuleArtifact(File folder) |
MulePackageBuilder |
withMuleSrc(File folder) |
MulePackageBuilder |
withPackagingOptions(PackagingOptions packagingOptions) |
MulePackageBuilder |
withRepository(File folder) |
MulePackageBuilder |
withRootResource(File resource) |
MulePackageBuilder |
withTestClasses(File folder) |
MulePackageBuilder |
withTestMule(File folder) |
public static final String CLASSLOADER_MODEL_JSON
public MulePackageBuilder withClasses(File folder)
public MulePackageBuilder withTestClasses(File folder)
public MulePackageBuilder withTestMule(File folder)
public MulePackageBuilder withMaven(File folder)
public MulePackageBuilder withMuleSrc(File folder)
public MulePackageBuilder withMuleArtifact(File folder)
public MulePackageBuilder withRepository(File folder)
public MulePackageBuilder withRootResource(File resource)
public MulePackageBuilder withPackagingOptions(PackagingOptions packagingOptions)
public MulePackageBuilder withArchiver(MuleArchiver archiver)
public void createPackage(Path originFolderPath, Path destinationPath) throws org.codehaus.plexus.archiver.ArchiverException, IOException
├── log4j2.xml
├── org
│ └── MyClass.class
├── mule
│ ├── package
│ └── mule-configuration(s).xml
├── api
│ └── *.raml
└── wsdl
│ └── *.wsdl
├── META-INF
│ ├── mule-src
│ │ └── application-name
│ ├── maven
│ │ ├── group-id
│ │ └── artifact-id
│ │ ├── pom.xml
│ │ └── pom.properties
│ └── mule-artifact
│ ├── classloader-model.json
│ └── mule-artifact.json
└── repository
├── org
└── mule
├── munit
└── munit-common
├── 1.1.0
│ ├── *.jar
│ └── pom.xml
└── 2.0.0
├── *.jar
└── pom.xml
createPackage in interface PackageBuilderoriginFolderPath - folder containing the source files.destinationPath - location where to leave the final package.org.codehaus.plexus.archiver.ArchiverExceptionIOExceptionpublic void createPackage(Path destinationPath) throws org.codehaus.plexus.archiver.ArchiverException, IOException
PackageBuildercreatePackage in interface PackageBuilderdestinationPath - path where to leave the created package.org.codehaus.plexus.archiver.ArchiverExceptionIOExceptionprotected MuleArchiver getArchiver()
Copyright © 2024 MuleSoft Inc. All rights reserved.