notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1479 - trunk/main/depot/library/src/main/net/dpml/library/impl
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1479 - trunk/main/depot/library/src/main/net/dpml/library/impl
- Date: Wed, 31 May 2006 09:57:07 +0200
Author: mcconnell
Date: 2006-05-31 09:57:06 +0200 (Wed, 31 May 2006)
New Revision: 1479
Modified:
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
Log:
improve resource.toString() return value with addition of version
Modified:
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
===================================================================
---
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
2006-05-31 06:31:48 UTC (rev 1478)
+++
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
2006-05-31 07:57:06 UTC (rev 1479)
@@ -749,12 +749,17 @@
{
if( m_directive.isLocal() )
{
- return "project:" + getResourcePath();
+ return toString( "project" );
}
}
- return "resource:" + getResourcePath();
+ return toString( "resource" );
}
+ private String toString( String type )
+ {
+ return type + ":" + getResourcePath() + "#" + getVersion();
+ }
+
/**
* Compare this object with another.
* @param other the other object
- r1479 - trunk/main/depot/library/src/main/net/dpml/library/impl, mcconnell at BerliOS, 05/31/2006
Archive powered by MHonArc 2.6.24.