public class MulePackageBuilder extends Object implements PackageBuilder
| Modifier and Type | Field and Description |
|---|---|
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 zip file.
|
protected MuleArchiver |
getArchiver() |
protected MulePackageBuilder |
withApiFolder(File folder) |
protected MulePackageBuilder |
withArchiver(MuleArchiver archiver) |
protected MulePackageBuilder |
withClasses(File folder) |
protected MulePackageBuilder |
withLibFolder(File folder) |
protected MulePackageBuilder |
withMappingsFolder(File folder) |
protected MulePackageBuilder |
withMuleFolder(File folder) |
protected MulePackageBuilder |
withRootResource(File resource) |
protected MulePackageBuilder |
withTestClasses(File folder) |
protected MulePackageBuilder |
withTestMuleFolder(File folder) |
protected MulePackageBuilder |
withWsdlFolder(File folder) |
protected MulePackageBuilder withClasses(File folder)
protected MulePackageBuilder withTestClasses(File folder)
protected MulePackageBuilder withRootResource(File resource)
protected MulePackageBuilder withArchiver(MuleArchiver archiver)
protected MulePackageBuilder withMuleFolder(File folder)
protected MulePackageBuilder withTestMuleFolder(File folder)
protected MulePackageBuilder withApiFolder(File folder)
protected MulePackageBuilder withWsdlFolder(File folder)
protected MulePackageBuilder withLibFolder(File folder)
protected MulePackageBuilder withMappingsFolder(File folder)
public void createPackage(Path originFolderPath, Path destinationPath) throws org.codehaus.plexus.archiver.ArchiverException, IOException
├── classes
│ ├── MyClass.class
│ └── log4j2.xml
├── mule
│ ├── package
│ └── mule-configuration(s).xml
├── api
│ └── *.raml
├── wsdl
│ └── *.wsdl
├── test-classes
│ └── MyTestClass.class
│
├── test-mule
│ └── munit-configuration(s).xml
└── lib
└── some-lib.jar
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 © 2018 MuleSoft Inc. All rights reserved.