avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 46980 - avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model
Date Tue, 21 Sep 2004 13:43:57 GMT
Author: niclas
Date: Tue Sep 21 06:43:56 2004
New Revision: 46980

Modified:
   avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model/Resource.java
Log:
Check for JAR before adding to classpath list.

Modified: avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model/Resource.java
==============================================================================
--- avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model/Resource.java	(original)
+++ avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model/Resource.java	Tue Sep
21 06:43:56 2004
@@ -164,9 +164,14 @@
             if( ! visited.contains( ref ) )
             {
                 final Resource resource = getResource( project, ref );
-                final File file = resource.getArtifact( project, resolve );
-                path.createPathElement().setLocation( file );
-                visited.add( ref );
+                Info info = resource.getInfo();
+                String type = info.getType();
+                if( "jar".equals( type ) )
+                {
+                    final File file = resource.getArtifact( project, resolve );
+                    path.createPathElement().setLocation( file );
+                    visited.add( ref );
+                }
             }
         }
         

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


Mime
View raw message