You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ni...@apache.org on 2004/05/22 20:45:22 UTC

svn commit: rev 20220 - in avalon/trunk/tools/magic: artifact/src/dist java/src/dist

Author: niclas
Date: Sat May 22 11:45:22 2004
New Revision: 20220

Modified:
   avalon/trunk/tools/magic/artifact/src/dist/build.bsh
   avalon/trunk/tools/magic/java/src/dist/build.bsh
Log:
Cleaning up some code from System.out

Modified: avalon/trunk/tools/magic/artifact/src/dist/build.bsh
==============================================================================
--- avalon/trunk/tools/magic/artifact/src/dist/build.bsh	(original)
+++ avalon/trunk/tools/magic/artifact/src/dist/build.bsh	Sat May 22 11:45:22 2004
@@ -59,7 +59,8 @@
             type = "jar";
 
         Artifact artifact = new Artifact( artifactId, groupId, version, type, repository );
-        System.out.println( "Artifact: " + artifact );
+        if( getLogger().isDebugEnabled() )
+            getLogger().debug( "Artifact: " + artifact );
         return artifact;
     }
     
@@ -131,22 +132,24 @@
         Path result = new Path( m_Project );
         for( int i=0 ; i < artifacts.length ; i++ )
         {
-            System.out.print( artifacts[i] );
             File localFile = toLocalFile( artifacts[i] );
             if( ! localFile.exists() )
             {
-                System.out.println( "    NOT exists." );
+                if( getLogger().isDebugEnabled() )
+                    getLogger().debug( artifacts[i] + "    does NOT exists locally." );
                 localFile.getParentFile().mkdirs();
                 download( artifacts[i], localFile );
             }
             else
             {
-                System.out.println( "    exists." );
+                if( getLogger().isDebugEnabled() )
+                    getLogger().debug( artifacts[i] + "    exists locally." );
             }
             Path.PathElement pe = result.createPathElement();
             pe.setLocation( localFile );
         }
-        System.out.println( "Dep Classpath: " + result );
+        if( getLogger().isDebugEnabled() )
+            getLogger().debug( "Dep Classpath: " + result );
         return result;
     }
     

Modified: avalon/trunk/tools/magic/java/src/dist/build.bsh
==============================================================================
--- avalon/trunk/tools/magic/java/src/dist/build.bsh	(original)
+++ avalon/trunk/tools/magic/java/src/dist/build.bsh	Sat May 22 11:45:22 2004
@@ -84,8 +84,6 @@
         Path depPath = ap.getClassPath( deps );
         cp.add( depPath );
         
-        System.out.println( cp.toString() );        
-        
         /* Add the source path */
         Path src = javac.createSrc();
         Path.PathElement srcPE = src.createPathElement();

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