[jboss-cvs] jboss-seam-tools/src/java/org/jboss/seam/tools ...

Thomas Heute theute at jboss.com
Tue Aug 29 09:05:47 EDT 2006


  User: theute  
  Date: 06/08/29 09:05:47

  Modified:    src/java/org/jboss/seam/tools   UtilityJar.java Util.java
  Log:
  re-formatted with headers
  
  Revision  Changes    Path
  1.2       +41 -18    jboss-seam-tools/src/java/org/jboss/seam/tools/UtilityJar.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UtilityJar.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam-tools/src/java/org/jboss/seam/tools/UtilityJar.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- UtilityJar.java	14 Aug 2006 15:57:46 -0000	1.1
  +++ UtilityJar.java	29 Aug 2006 13:05:47 -0000	1.2
  @@ -1,11 +1,32 @@
  +/*
  + * JBoss, Home of Professional Open Source
  + * Copyright 2005, JBoss Inc., and individual contributors as indicated
  + * by the @authors tag. See the copyright.txt in the distribution for a
  + * full listing of individual contributors.
  + *
  + * This is free software; you can redistribute it and/or modify it
  + * under the terms of the GNU Lesser General Public License as
  + * published by the Free Software Foundation; either version 2.1 of
  + * the License, or (at your option) any later version.
  + *
  + * This software is distributed in the hope that it will be useful,
  + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  + * Lesser General Public License for more details.
  + *
  + * You should have received a copy of the GNU Lesser General Public
  + * License along with this software; if not, write to the Free
  + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  + */
   package org.jboss.seam.tools;
   
  -
   /**
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version <tt>$Revision: 1.1 $</tt>
  + * @version <tt>$Revision: 1.2 $</tt>
    */
  -public class UtilityJar {
  +public class UtilityJar
  +{
   
   	public String filename;
   	
  @@ -14,11 +35,13 @@
   		this.filename = filename;
   	}
   
  -	public String getFilename() {
  +   public String getFilename()
  +   {
   		return filename;
   	}
   
  -	public void setFilename(String filename) {
  +   public void setFilename(String filename)
  +   {
   		this.filename = filename;
   	}
   	
  
  
  
  1.2       +28 -24    jboss-seam-tools/src/java/org/jboss/seam/tools/Util.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Util.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam-tools/src/java/org/jboss/seam/tools/Util.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- Util.java	14 Aug 2006 15:57:46 -0000	1.1
  +++ Util.java	29 Aug 2006 13:05:47 -0000	1.2
  @@ -30,11 +30,13 @@
   
   /**
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version <tt>$Revision: 1.1 $</tt>
  + * @version <tt>$Revision: 1.2 $</tt>
    */
  -public class Util {
  +public class Util
  +{
   	
  -	public static void createDirectory(String directoryName) throws IOException {
  +   public static void createDirectory(String directoryName) throws IOException
  +   {
   		boolean created = new File(directoryName).mkdirs();
   		if (!created)
   		{
  @@ -42,14 +44,16 @@
   		}
   	}
   	
  -	public static void copy(File src, File dst) throws IOException {
  +   public static void copy(File src, File dst) throws IOException
  +   {
           InputStream in = new FileInputStream(src);
           OutputStream out = new FileOutputStream(dst);
       
           // Transfer bytes from in to out
           byte[] buf = new byte[1024];
           int len;
  -        while ((len = in.read(buf)) > 0) {
  +      while ((len = in.read(buf)) > 0)
  +      {
               out.write(buf, 0, len);
           }
           in.close();
  
  
  



More information about the jboss-cvs-commits mailing list