Util.buildEar()
Signature
boolean buildEar(String projectName, String projectPath, String earPath, String extendedClasspath)
Description
Builds the project EAR file for the given project path.
Parameters
Name | Type | Description |
projectName | String | The name of the project to be built. |
projectPath | String | The path to the project to be built. |
earPath | String | The full path to the output ear file, i.e. C:/temp/proj.ear. |
extendedClasspath | String | Additional classpath entries required for compilation,
or null if no additional classPath entries are needed |
Returns
Type | Description |
boolean | A boolean indicating success or failure. |
Example
String projPath = "C:/test/Studio_Project";
String earPath = "C:/test/testEar.ear";
String thirdPartyJars = "C:/thirdparties/extra.jar;C:/database/driver.jar";
boolean result = Utils.buildEarFile("Studio_Project", projPath, earPath, thirdPartyJars);
if (result) {
System.debugOut(earPath+" successfully built.");
} else {
System.debugOut("Failed to build project "+projPath);
}