tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@locus.apache.org
Subject cvs commit: jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs Get.java
Date Fri, 31 Dec 1999 15:46:11 GMT
rubys       99/12/31 07:46:11

  Modified:    ant/src/main/org/apache/tools/ant/taskdefs Get.java
  Log:
  Integrate get taskdef with Ant exception and logging mechanisms.
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Get.java
  
  Index: Get.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Get.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Get.java	1999/11/23 08:27:30	1.3
  +++ Get.java	1999/12/31 15:46:10	1.4
  @@ -70,7 +70,7 @@
       public void execute() throws BuildException {
   	try {
   	    URL url=new URL( source );
  -	    System.out.println("<log:get src=\"" + source + "\">");
  +	    project.log("Getting: " + source);
   	    File destF=new File(dest);
   	    FileOutputStream fos = new FileOutputStream(destF);
   
  @@ -83,11 +83,11 @@
   		if( "true".equals(verbose)) System.out.print(".");
   	    }
   	    if( "true".equals(verbose)) System.out.println();
  -	    System.out.println("</log:get>");
   	    fos.close();
   	    is.close();
   	} catch (IOException ioe) {
   	    ioe.printStackTrace();
  +	    throw new BuildException(ioe.toString());
   	}
       }
   
  
  
  

Mime
View raw message