Author: ejiang
Date: Fri Jul 1 17:52:08 2011
New Revision: 1142009
URL: http://svn.apache.org/viewvc?rev=1142009&view=rev
Log:
ARIES-698: Missing resource key
Modified:
aries/trunk/application/application-modeller/src/main/java/org/apache/aries/application/modelling/utils/impl/ModellingHelperImpl.java
aries/trunk/application/application-modeller/src/main/resources/org/apache/aries/application/modelling/messages/APPModellingMessages.properties
Modified: aries/trunk/application/application-modeller/src/main/java/org/apache/aries/application/modelling/utils/impl/ModellingHelperImpl.java
URL: http://svn.apache.org/viewvc/aries/trunk/application/application-modeller/src/main/java/org/apache/aries/application/modelling/utils/impl/ModellingHelperImpl.java?rev=1142009&r1=1142008&r2=1142009&view=diff
==============================================================================
--- aries/trunk/application/application-modeller/src/main/java/org/apache/aries/application/modelling/utils/impl/ModellingHelperImpl.java
(original)
+++ aries/trunk/application/application-modeller/src/main/java/org/apache/aries/application/modelling/utils/impl/ModellingHelperImpl.java
Fri Jul 1 17:52:08 2011
@@ -116,7 +116,7 @@ public class ModellingHelperImpl impleme
}
Map<String, Map<String, String>> parsedFragHost = ManifestHeaderProcessor.parseImportString(fragmentHostHeader);
if(parsedFragHost.size() != 1)
- throw new InvalidAttributeException(MessageUtil.getMessage("APPUTILS0001W",
+ throw new InvalidAttributeException(MessageUtil.getMessage("MORE_THAN_ONE_FRAG_HOST",
new Object[] {fragmentHostHeader},
"An internal error occurred. A bundle fragment manifest must define exactly one
Fragment-Host entry. The following entry was found" + fragmentHostHeader + "."));
Modified: aries/trunk/application/application-modeller/src/main/resources/org/apache/aries/application/modelling/messages/APPModellingMessages.properties
URL: http://svn.apache.org/viewvc/aries/trunk/application/application-modeller/src/main/resources/org/apache/aries/application/modelling/messages/APPModellingMessages.properties?rev=1142009&r1=1142008&r2=1142009&view=diff
==============================================================================
--- aries/trunk/application/application-modeller/src/main/resources/org/apache/aries/application/modelling/messages/APPModellingMessages.properties
(original)
+++ aries/trunk/application/application-modeller/src/main/resources/org/apache/aries/application/modelling/messages/APPModellingMessages.properties
Fri Jul 1 17:52:08 2011
@@ -20,9 +20,6 @@
MORE_THAN_ONE_FRAG_HOST=APPMODELLING0001E: An internal error occurred. A bundle fragment
manifest must define exactly one Fragment-Host entry. The following entry was found {0}.
TOO_MANY_SYM_NAMES=APPMODELLING0002E: An internal error occurred. A bundle manifest must
contain exactly one Bundle-SymbolicName entry. The following entry was found {0}.
INCORRECT_MANDATORY_HEADERS=APPMODELLING0003E: An internal error occurred. A bundle with
symbolic name {0} and manifest version {1} was unable to be processed.
-TOO_MANY_CB_SYM_NAMES=APPMODELLING0004E: An internal error occurred. A composite bundle manifest
must contain exactly one Bundle-SymbolicName entry. The following entry was found {0}.
-INCORRECT_CB_MANDATORY_HEADERS=APPMODELLING0005E: An internal error occurred. A composite
bundle with symbolic name {0} and manifest version {1} was unable to be processed.
-TOO_MANY_FRAG_HOSTS=APPMODELLING0006E: An internal error occurred. A bundle fragment manifest
must define exactly one Fragment-Host entry. The following entry was found {0}.
INCOMPATIBLE_PACKAGE_VERSION_REQUIREMENTS=APPMODELLING0007E: The asset {0} cannot be resolved.
It has incompatible version requirements on the following packages: {1}.
INVALID_PACKAGE_REQUIREMENT_ATTRIBUTES=APPMODELLING0008E: The asset {0} cannot be resolved.
The attribute {1} on an import for package {2} cannot be satisfied at deployment.
INVALID_BUNDLE_LOCATION=APPMODELLING0009E: The Bundle {0} does not exist.
\ No newline at end of file
|