Skip to content

Commit

Permalink
Update deployment logs
Browse files Browse the repository at this point in the history
  • Loading branch information
arunans23 committed Jan 30, 2025
1 parent d8004ff commit ee334e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public void deployLibraryDependency(DeploymentFileData deploymentFileData, Strin
deploymentFileData.getAbsolutePath() + " : STARTED");
}
String libFilePath = FilenameUtils.normalize(deploymentFileData.getAbsolutePath());
log.info("Deploying dependency from file : " + libFilePath + " to the library : " + libraryName);
LibDeployerUtils.addDependencyToSynapseLibrary(libraryName, libFilePath);
if (log.isDebugEnabled()) {
log.debug("Deployment of the synapse library dependency artifact from file : " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public static Library createSynapseLibrary(String libPath) throws DeploymentExce
* @param libraryName - name of the Synapse Library
* @param dependencyPath - path to the dependency
*/
public static void addDependencyToSynapseLibrary(String libraryName, String dependencyPath) {
public static void addDependencyToSynapseLibrary(String libraryName, String dependencyPath)
throws DeploymentException {

ClassLoader classLoader = SynapseConfiguration.getClassLoader(libraryName);
if (classLoader == null) {
Expand All @@ -118,7 +119,7 @@ public static void addDependencyToSynapseLibrary(String libraryName, String depe
libClassLoader.addToClassPath(dependencyPath);
SynapseConfiguration.addLibraryClassLoader(libraryName, libClassLoader);
} catch (MalformedURLException e) {
throw new SynapseArtifactDeploymentException("Error while adding dependency to the Synapse Library : " +
throw new DeploymentException("Error while adding dependency to the Synapse Library : " +
libraryName, e);
}
} else {
Expand Down

0 comments on commit ee334e8

Please sign in to comment.