Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2256 - development/main/transit/core/handler/src/main/net/dpml/transit/repository

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT hedhman.org
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2256 - development/main/transit/core/handler/src/main/net/dpml/transit/repository
  • Date: Sat, 09 Apr 2005 12:22:13 -0400

Author: niclas AT hedhman.org
Date: Sat Apr 9 12:22:10 2005
New Revision: 2256

Modified:

development/main/transit/core/handler/src/main/net/dpml/transit/repository/PropertiesPlugin.java
Log:
Forgot to commit change in PropertiesPlugin due to removal of
URISyntaxException in method signature.

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/repository/PropertiesPlugin.java
==============================================================================
---
development/main/transit/core/handler/src/main/net/dpml/transit/repository/PropertiesPlugin.java
(original)
+++
development/main/transit/core/handler/src/main/net/dpml/transit/repository/PropertiesPlugin.java
Sat Apr 9 12:22:10 2005
@@ -22,7 +22,6 @@
import java.io.Serializable;

import java.net.URI;
-import java.net.URISyntaxException;

import java.util.ArrayList;
import java.util.Properties;
@@ -196,38 +195,26 @@
throw new NullArgumentException( "attributes" );
}

- try
+ m_specificationNamespace = attributes.getProperty( PP_NAMESPACE_KEY
);
+ if( null == m_specificationNamespace )
{
- m_specificationNamespace = attributes.getProperty(
PP_NAMESPACE_KEY );
- if( null == m_specificationNamespace )
- {
- final String error =
- "Missing attribute: " + PP_NAMESPACE_KEY;
- throw new RepositoryException( error );
- }
-
- m_specificationVersion = attributes.getProperty(
PP_META_VERSION_KEY );
- if( null == m_specificationVersion )
- {
- final String error =
- "Missing attribute: " + PP_META_VERSION_KEY;
- throw new RepositoryException( error );
- }
-
- m_group = attributes.getProperty( PP_GROUP_KEY, "" );
- m_name = attributes.getProperty( PP_NAME_KEY, "" );
- m_version = attributes.getProperty( PP_VERSION_KEY, "" );
-
- m_uri = Artifact.createArtifact( m_group, m_name, m_version,
"plugin" ).toURI();
-
+ final String error = "Missing attribute: " + PP_NAMESPACE_KEY;
+ throw new RepositoryException( error );
}
- catch( URISyntaxException e )
+
+ m_specificationVersion = attributes.getProperty( PP_META_VERSION_KEY
);
+ if( null == m_specificationVersion )
{
- final String error =
- "Unexpected exception during plugin descriptor creation.";
- throw new RepositoryException( error, e );
+ final String error = "Missing attribute: " + PP_META_VERSION_KEY;
+ throw new RepositoryException( error );
}

+ m_group = attributes.getProperty( PP_GROUP_KEY, "" );
+ m_name = attributes.getProperty( PP_NAME_KEY, "" );
+ m_version = attributes.getProperty( PP_VERSION_KEY, "" );
+
+ m_uri = Artifact.createArtifact( m_group, m_name, m_version,
"plugin" ).toURI();
+
m_api = buildDependents( attributes, PP_API_KEY );
m_spi = buildDependents( attributes, PP_SPI_KEY );
m_imp = buildDependents( attributes, PP_IMP_KEY );



  • svn commit: r2256 - development/main/transit/core/handler/src/main/net/dpml/transit/repository, niclas, 04/09/2005

Archive powered by MHonArc 2.6.24.

Top of Page