Skip to Content.
Sympa Menu

notify-dpml - r1278 - in trunk/main: central/src/docs/about/news depot/tools/builder/src/main/net/dpml/tools/tasks transit

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1278 - in trunk/main: central/src/docs/about/news depot/tools/builder/src/main/net/dpml/tools/tasks transit
  • Date: Tue, 28 Mar 2006 04:33:32 +0200

Author: mcconnell
Date: 2006-03-28 04:33:27 +0200 (Tue, 28 Mar 2006)
New Revision: 1278

Modified:
trunk/main/central/src/docs/about/news/index.xml

trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/FeatureTask.java
trunk/main/transit/module.xml
Log:
fix broken link uri reference in RC3 and add build-time error check for this
condition

Modified: trunk/main/central/src/docs/about/news/index.xml
===================================================================
--- trunk/main/central/src/docs/about/news/index.xml 2006-03-28 02:05:50
UTC (rev 1277)
+++ trunk/main/central/src/docs/about/news/index.xml 2006-03-28 02:33:27
UTC (rev 1278)
@@ -12,12 +12,12 @@

<section name="News &amp; Events">

- <subsection name="28 March 2006 RC3 Distribution">
+ <subsection name="28 March 2006 RC4 Distribution">

<p>
Following a series of 'under-the-radar' RC distributions,
- the <a href="../download/archive.html#Build%20;1.0.0%20;RC3">RC3</a>
is
- deliverable is now available. RC3 resolves several runtime issues
+ the <a href="../download/archive.html#Build%20;1.0.0%20;RC4">RC4</a>
+ deliverable is now available. RC4 resolves several runtime issues
specific to the nix* platform, incorporates a cleaner cross-JVM
logging aggregation subsystem, introduced full XML-Schema based
definitions for long term storage of library, component, and

Modified:
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/FeatureTask.java
===================================================================
---
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/FeatureTask.java
2006-03-28 02:05:50 UTC (rev 1277)
+++
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/FeatureTask.java
2006-03-28 02:33:27 UTC (rev 1278)
@@ -22,6 +22,7 @@

import net.dpml.library.ResourceNotFoundException;
import net.dpml.library.Resource;
+import net.dpml.library.Type;

import net.dpml.transit.Artifact;

@@ -195,18 +196,32 @@
{
if( m_alias )
{
- Artifact artifact = resource.getArtifact( m_type );
- String group = artifact.getGroup();
- String name = artifact.getName();
- try
+ Type type = resource.getType( m_type );
+ if( type.getAlias() )
{
- return "link:" + m_type + ":" + group + "/" + name;
+ Artifact artifact = resource.getArtifact( m_type );
+ String group = artifact.getGroup();
+ String name = artifact.getName();
+ try
+ {
+ return "link:" + m_type + ":" + group + "/" +
name;
+ }
+ catch( Exception e )
+ {
+ final String error =
+ "Unable to resolve link uri for resource: " +
resource;
+ throw new BuildException( error, e,
getLocation() );
+ }
}
- catch( Exception e )
+ else
{
final String error =
- "Unable to resolve link uri for resource: " +
resource;
- throw new BuildException( error, e, getLocation() );
+ "Cannot resolve link from resource ["
+ + resource
+ + "] because the resource does not declare
production of an alias for the type ["
+ + type.getID()
+ + "].";
+ throw new BuildException( error, getLocation() );
}
}
else

Modified: trunk/main/transit/module.xml
===================================================================
--- trunk/main/transit/module.xml 2006-03-28 02:05:50 UTC (rev 1277)
+++ trunk/main/transit/module.xml 2006-03-28 02:33:27 UTC (rev 1278)
@@ -11,7 +11,7 @@
<project name="dpml-transit-console" basedir="console">
<types>
<type id="jar"/>
- <part:plugin class="net.dpml.transit.console.TransitConsoleHandler"/>
+ <part:plugin class="net.dpml.transit.console.TransitConsoleHandler"
alias="true"/>
</types>
<dependencies>
<include ref="dpml/transit/dpml-transit-main"/>




  • r1278 - in trunk/main: central/src/docs/about/news depot/tools/builder/src/main/net/dpml/tools/tasks transit, mcconnell at BerliOS, 03/27/2006

Archive powered by MHonArc 2.6.24.

Top of Page