Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1354 - development/main/transit/handler/src/main/net/dpml/transit/artifact

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1354 - development/main/transit/handler/src/main/net/dpml/transit/artifact
  • Date: Mon, 03 Jan 2005 12:59:16 +0100

Author: niclas
Date: Mon Jan 3 12:59:15 2005
New Revision: 1354

Modified:

development/main/transit/handler/src/main/net/dpml/transit/artifact/XMLHostsBuilder.java
Log:
o Changed the <trust trusted=true/> to <trusted>true</trusted> as is in the
documentation.
o Changed the <class> to accept the format mentioned in the documentation.

Modified:
development/main/transit/handler/src/main/net/dpml/transit/artifact/XMLHostsBuilder.java
==============================================================================
---
development/main/transit/handler/src/main/net/dpml/transit/artifact/XMLHostsBuilder.java
(original)
+++
development/main/transit/handler/src/main/net/dpml/transit/artifact/XMLHostsBuilder.java
Mon Jan 3 12:59:15 2005
@@ -220,19 +220,20 @@
*/
private String getClassname( Element root )
throws IOException
- {
+ {
+ String defaultClass = "net.dpml.transit.artifact.MavenResourceHost";
Element element = ElementHelper.getChild( root, "class" );
if( null == element )
{
- return "net.dpml.transit.artifact.MavenResourceHost";
+ return defaultClass;
}

String classname = ElementHelper.getAttribute( root, "name", null );
if( null == classname )
{
- final String error =
- "Missing 'name' attribute on host element.";
- throw new IllegalArgumentException( error );
+ classname = ElementHelper.getValue( element );
+ if( classname == null )
+ classname = defaultClass;
}
return classname;
}
@@ -290,7 +291,7 @@
{
return false;
}
- String trusted = ElementHelper.getAttribute( root, "trusted",
"false" );
+ String trusted = ElementHelper.getValue( root );
return new Boolean( trusted ).booleanValue();
}




  • svn commit: r1354 - development/main/transit/handler/src/main/net/dpml/transit/artifact, niclas, 01/03/2005

Archive powered by MHonArc 2.6.24.

Top of Page