notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2335 - development/main/magic/core/src/main/net/dpml/magic/builder
- From: niclas AT hedhman.org
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2335 - development/main/magic/core/src/main/net/dpml/magic/builder
- Date: Wed, 20 Apr 2005 16:17:13 -0400
Author: niclas AT hedhman.org
Date: Wed Apr 20 16:17:12 2005
New Revision: 2335
Modified:
development/main/magic/core/src/main/net/dpml/magic/builder/XMLDefinitionBuilder.java
Log:
Ooops. Something wnet wrong.
Modified:
development/main/magic/core/src/main/net/dpml/magic/builder/XMLDefinitionBuilder.java
==============================================================================
---
development/main/magic/core/src/main/net/dpml/magic/builder/XMLDefinitionBuilder.java
(original)
+++
development/main/magic/core/src/main/net/dpml/magic/builder/XMLDefinitionBuilder.java
Wed Apr 20 16:17:12 2005
@@ -31,7 +31,7 @@
/**
* Definition of a project.
*
- * @author <a href="http://www.dpml.net">The Digital Product Meta Library</a>
+ * @author <a href="mailto:dev-dpml AT lists.ibiblio.org";>The Digital Product
Meta Library</a>
* @version $Revision: 1.2 $ $Date: 2004/03/17 10:30:09 $
*/
public class XMLDefinitionBuilder
@@ -84,8 +84,8 @@
boolean external = isExternal( element );
- final Element infoElement = ElementHelper.getChild( element,
"info" );
- final Info info = createInfo( home, infoElement, external );
+ final Info info =
+ createInfo( home, ElementHelper.getChild( element, "info" ),
external );
final String key = getDefinitionKey( element, info );
final String path = element.getAttribute( "basedir" );
@@ -93,14 +93,17 @@
final String file = getBuildFile( element );
- final Element dependenciesElement = ElementHelper.getChild(
element, "dependenciesElement" );
- final ResourceRef[] resources = createResourceRefs(
dependenciesElement );
-
- final Element pluginsElement = ElementHelper.getChild( element,
"plugins" );
- final ResourceRef[] plugins = createPluginRefs( pluginsElement );
-
- final Element partsElement = ElementHelper.getChild( element,
"parts" );
- final ResourceRef[] parts = createResourceRefs( partsElement );
+ final ResourceRef[] resources =
+ createResourceRefs(
+ ElementHelper.getChild( element, "dependencies" ) );
+
+ final ResourceRef[] plugins =
+ createPluginRefs(
+ ElementHelper.getChild( element, "plugins" ) );
+
+ final ResourceRef[] parts =
+ createResourceRefs(
+ ElementHelper.getChild( element, "parts" ) );
return new Definition(
home, key, basedir, file, path, info, resources, plugins,
parts, uri );
@@ -254,14 +257,15 @@
}
else
{
- final Element statusElement = ElementHelper.getChild( info,
"status" );
- final String status = ElementHelper.getValue( statusElement );
+ final String status =
+ ElementHelper.getValue(
+ ElementHelper.getChild( info, "status" ) );
return Info.SNAPSHOT.equalsIgnoreCase( status );
}
}
private static ResourceRef[] createResourceRefs( final Element element )
- throws BuildException
+ throws BuildException
{
final Element[] children = ElementHelper.getChildren( element,
"include" );
final ResourceRef[] refs = new ResourceRef[ children.length ];
- svn commit: r2335 - development/main/magic/core/src/main/net/dpml/magic/builder, niclas, 04/20/2005
Archive powered by MHonArc 2.6.24.