Any reason why you did not do something like this?
String type = resource.getInfo().getType();
return ( "null".equals( type ) )
Just curious.
David Gray
|---------+---------------------------->
| | "Stephen |
| | McConnell" |
| | <[EMAIL PROTECTED]|
| | .org> |
| | |
| | 27/08/2004 09:23 |
| | AM |
| | Please respond to|
| | "Avalon |
| | Developers List" |
| | |
|---------+---------------------------->
>--------------------------------------------------------------------------------------------------------------|
|
|
| To: "'Avalon Developers List'" <[EMAIL PROTECTED]>
|
| cc:
|
| Subject: RE: [patch] GumpTask.java
|
|Classification: |-------------------|
|
| | ( ) In-Confidence |
|
| | ( ) Unclassified |
|
| |-------------------|
|
|
|
>--------------------------------------------------------------------------------------------------------------|
> -----Original Message-----
> From: Stephen McConnell [mailto:[EMAIL PROTECTED]
> Sent: 27 August 2004 01:15
> To: Avalon Developers List
> Subject: [patch] GumpTask.java
>
>
>
> The following patch updates Magic's GumpTask to generate dependency
> declarations for all types of projects (not just jar files). This
> change correct the problem with the examples project which was
> attempting to reference the blck generated by a project that Gump has
> not build (because the dependency was not declared).
Woops - slight update:
Index: src/main/org/apache/avalon/tools/tasks/GumpTask.java
===================================================================
--- src/main/org/apache/avalon/tools/tasks/GumpTask.java
(revision 37083)
+++ src/main/org/apache/avalon/tools/tasks/GumpTask.java (working
copy)
@@ -625,13 +625,13 @@
else
{
String type = resource.getInfo().getType();
- if( "jar".equals( type ) )
+ if( "null".equals( type ) )
{
- return false;
+ return true;
}
else
{
- return true;
+ return false;
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
****************************************************************
NOTICE - This message is intended only for the use of the
addressee named above and may contain privileged and
confidential information. If you are not the intended recipient
of this message you are hereby notified that you must not
disseminate, copy or take any action based upon it. If you
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.
****************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]