Skip to Content.
Sympa Menu

notify-dpml - r1445 - in trunk/main/depot: library/src/main/net/dpml/library/impl tools/builder/src/main/net/dpml/tools/process

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: r1445 - in trunk/main/depot: library/src/main/net/dpml/library/impl tools/builder/src/main/net/dpml/tools/process
  • Date: Fri, 19 May 2006 16:49:37 +0200

Author: mcconnell
Date: 2006-05-19 16:49:35 +0200 (Fri, 19 May 2006)
New Revision: 1445

Modified:

trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java

trunk/main/depot/tools/builder/src/main/net/dpml/tools/process/JarProcess.java
Log:
housekeeping


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-19 14:22:39 UTC (rev 1444)
+++
trunk/main/depot/library/src/main/net/dpml/library/impl/DefaultResource.java
2006-05-19 14:49:35 UTC (rev 1445)
@@ -385,7 +385,7 @@
+ "] not recognized with the scope of resource ["
+ getResourcePath()
+ "].";
- throw new InvalidTypeNameException( error );
+ throw new IllegalArgumentException( error );
}

/**

Modified:
trunk/main/depot/tools/builder/src/main/net/dpml/tools/process/JarProcess.java
===================================================================
---
trunk/main/depot/tools/builder/src/main/net/dpml/tools/process/JarProcess.java
2006-05-19 14:22:39 UTC (rev 1444)
+++
trunk/main/depot/tools/builder/src/main/net/dpml/tools/process/JarProcess.java
2006-05-19 14:49:35 UTC (rev 1445)
@@ -65,18 +65,21 @@
task.execute();

Resource resource = context.getResource();
- Type type = resource.getType( "jar" );
- if( type instanceof JarTypeDirective )
+ if( resource.isa( "jar" ) )
{
- JarTypeDirective directive = (JarTypeDirective) type;
- String[] includes = directive.getRMICIncludes();
- String[] excludes = directive.getRMICExcludes();
- RMICTask rmicTask = new RMICTask( context );
- rmicTask.setProject( project );
- rmicTask.setIncludes( includes );
- rmicTask.setExcludes( excludes );
- rmicTask.init();
- rmicTask.execute();
+ Type type = resource.getType( "jar" );
+ if( type instanceof JarTypeDirective )
+ {
+ JarTypeDirective directive = (JarTypeDirective) type;
+ String[] includes = directive.getRMICIncludes();
+ String[] excludes = directive.getRMICExcludes();
+ RMICTask rmicTask = new RMICTask( context );
+ rmicTask.setProject( project );
+ rmicTask.setIncludes( includes );
+ rmicTask.setExcludes( excludes );
+ rmicTask.init();
+ rmicTask.execute();
+ }
}
}





  • r1445 - in trunk/main/depot: library/src/main/net/dpml/library/impl tools/builder/src/main/net/dpml/tools/process, mcconnell at BerliOS, 05/19/2006

Archive powered by MHonArc 2.6.24.

Top of Page