atom feed1 message in net.java.dev.updatecenter.cvsCVS update: /updatecenter/core/src/ja...
FromSent OnAttachments
raje...@dev.java.netOct 8, 2007 4:03 pm 
Subject:CVS update: /updatecenter/core/src/java/com/sun/enterprise/update/ModuleStateUpdater.java
From:raje...@dev.java.net (raje@dev.java.net)
Date:Oct 8, 2007 4:03:47 pm
List:net.java.dev.updatecenter.cvs

User: rajeshwar Date: 2007-10-08 23:03:47+0000 Modified: updatecenter/core/src/java/com/sun/enterprise/update/ModuleStateUpdater.java

Log: Issue number: 335 Reviewed by: Snjezana. Fix for an update when module is part of group.

File Changes:

Directory: /updatecenter/core/src/java/com/sun/enterprise/update/ =================================================================

File [changed]: ModuleStateUpdater.java Url:
https://updatecenter.dev.java.net/source/browse/updatecenter/core/src/java/com/sun/enterprise/update/ModuleStateUpdater.java?r1=1.19&r2=1.20 Delta lines: +13 -7

-------------------- --- ModuleStateUpdater.java 2007-07-23 22:28:38+0000 1.19 +++ ModuleStateUpdater.java 2007-10-08 23:03:45+0000 1.20 @@ -154,12 +154,18 @@ com.sun.enterprise.update.config.catalog.ModuleGroup
parent = getParentModuleGroup( (com.sun.enterprise.update.config.catalog.ModuleGroup)_impl._getParent(),
lRoot); - com.sun.enterprise.update.config.catalog.Module - child = getChildModule(parent,
_impl.getManifestOpenIDEModule()); - if ( child == null ) { -
parent.addModule(createModule(_impl,type,moduleLocation)); + com.sun.enterprise.update.config.catalog.Module child = + getChildModule(parent,
_impl.getManifestOpenIDEModule()); + + if (child != null) { + if ( UpdatesImpl.isModuleUpdated(child, _impl)) { +
setUpdatesModuleType(child,type,moduleLocation); } else { - setModuleType(child, type, moduleLocation); + setModuleType(child,type,moduleLocation); + } + } else { + // create the module +
parent.addModule(createModule(_impl,type,moduleLocation)); } } else { throw new
RuntimeException(stringManager.getString("ParentOfModule")); //NOI18N