You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Stephen McConnell <mc...@apache.org> on 2004/08/27 01:14:50 UTC

[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).

Stephen.


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)
@@ -624,15 +624,7 @@
         }
         else
         {
-            String type = resource.getInfo().getType();
-            if( "jar".equals( type ) )
-            {
-                return false;
-            }
-            else
-            {
-                return true;
-            }
+            return false;
         }
     }





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


RE: [patch] GumpTask.java

Posted by Stephen McConnell <mc...@apache.org>.

> -----Original Message-----
> From: Stephen McConnell [mailto:mcconnell@apache.org]
> 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: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org