[jboss-cvs] JBossAS SVN: r86169 - branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Mar 20 14:19:18 EDT 2009
Author: emuckenhuber
Date: 2009-03-20 14:19:18 -0400 (Fri, 20 Mar 2009)
New Revision: 86169
Modified:
branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/ProfileDeployAction.java
Log:
[JBAS-6641] don't fail on addDeployment.
Modified: branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/ProfileDeployAction.java
===================================================================
--- branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/ProfileDeployAction.java 2009-03-20 16:58:15 UTC (rev 86168)
+++ branches/Branch_5_x/system/src/main/org/jboss/system/server/profileservice/repository/ProfileDeployAction.java 2009-03-20 18:19:18 UTC (rev 86169)
@@ -38,7 +38,7 @@
/** The profile deployment deployer. */
private MainDeployerAdapter deployer;
-
+
public ProfileDeployAction(MainDeployerAdapter deployer)
{
if(deployer == null)
@@ -47,23 +47,31 @@
}
@Override
- public void install(Profile profile) throws Exception
+ public void install(Profile profile)
{
Collection<ProfileDeployment> deployments = profile.getDeployments();
if (deployments != null && !deployments.isEmpty())
{
// Add deployments
for (ProfileDeployment deployment : profile.getDeployments())
- deployer.addDeployment(deployment);
+ {
+ try
+ {
+ deployer.addDeployment(deployment);
+ }
+ catch(Exception e)
+ {
+ log.error("Failed to add deployment: " + deployment, e);
+ }
+ }
+
// deploy
deployer.process();
- // TODO do we need some additional meta data to do e.g.: ?
- // deployer.checkComplete();
}
}
@Override
- public void uninstall(Profile profile) throws Exception
+ public void uninstall(Profile profile)
{
// Handle deployments
Collection<ProfileDeployment> deployments = profile.getDeployments();
More information about the jboss-cvs-commits
mailing list