cvs commit: maven-new/core/src/java/org/apache/maven/util IOUtility.java

2003-05-27 Thread michal
michal  2003/05/27 11:38:29

  Added:   core/src/java/org/apache/maven/util IOUtility.java
  Log:
  Added what Ben has forgotten
  
  Revision  ChangesPath
  1.1  maven-new/core/src/java/org/apache/maven/util/IOUtility.java
  
  Index: IOUtility.java
  ===
  package org.apache.maven.util;
  
  /* 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *notice, this list of conditions and the following disclaimer in
   *the documentation and/or other materials provided with the
   *distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *if any, must include the following acknowledgment:
   *   This product includes software developed by the
   *Apache Software Foundation (http://www.apache.org/).
   *Alternately, this acknowledgment may appear in the software itself,
   *if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names Apache and Apache Software Foundation and
   *Apache Maven must not be used to endorse or promote products
   *derived from this software without prior written permission. For
   *written permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called Apache,
   *Apache Maven, nor may Apache appear in their name, without
   *prior written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * 
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * http://www.apache.org/.
   *
   * 
   */
  
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.OutputStream;
  
  /**
   * @author  Ben Walding
   * @version $Id: IOUtility.java,v 1.1 2003/05/27 18:38:29 michal Exp $
   */
  public class IOUtility
  {
  protected static final int BUFFER_SIZE = 16384;
  
  /**
   * Transfers all remaining data in the input stream to the output stream
   * 
   * Neither stream will be closed at completion.
   **/
  public static void transferStream(InputStream is, OutputStream os) throws 
IOException
  {
  final byte[] buffer = new byte[BUFFER_SIZE];
  while (true)
  {
  int bytesRead = is.read(buffer, 0, buffer.length);
  if (bytesRead == -1)
  {
  break;
  }
  os.write(buffer, 0, bytesRead);
  }
  }
  
  /**
   * Closes an InputStream without throwing an IOException.
   * The IOException is swallowed.
   * @param in the input stream to close. If null, nothing is closed.
   */
  public static final void close(InputStream in)
  {
  try
  {
  if (in != null)
  {
  in.close();
  }
  }
  catch (IOException ioex)
  {
  //Do nothing
  }
  }
  
  /**
   * Closes an OutputStream without throwing an IOException.
   * The IOException is swallowed.
   * @param in the OutputStream to close. If null, nothing is closed.
   */
  public static final void close(OutputStream out)
  {
  try
  {
  if (out != null)
  {
  out.close();
  }
  }
  catch 

[ibiblio] Jar Request

2003-05-27 Thread nick . minutello

Hi,

Can we pls upload the following jars to Ibiblio?

EDT FTP Client
http://www.enterprisedt.com/downloads/ftp.html

TanukiSoft Java Service Wrapper
http://wrapper.tanukisoftware.org/doc/english/index.html

Ta.

-Nick





This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: maven/src/plugins-build/docbook/xdocs properties.xml

2003-05-27 Thread dion
dion2003/05/27 16:25:55

  Modified:src/plugins-build/docbook plugin.jelly
   src/plugins-build/docbook/xdocs properties.xml
  Log:
  Applied Maven-436 patch
  
  Revision  ChangesPath
  1.5   +25 -9 maven/src/plugins-build/docbook/plugin.jelly
  
  Index: plugin.jelly
  ===
  RCS file: /home/cvs/maven/src/plugins-build/docbook/plugin.jelly,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- plugin.jelly  27 Mar 2003 13:14:25 -  1.4
  +++ plugin.jelly  27 May 2003 23:25:55 -  1.5
  @@ -6,7 +6,7 @@
 !-- == --
 !-- S I M P L E   D O C B O O K   D O C U M E N T A T I O N--
 !-- == --
  -  goal 
  +  goal
   name=docbook:transform
   prereqs=xdoc:init
   description=Transform any docbook-simple source into xdocs for later use
  @@ -15,13 +15,29 @@
 
value=${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.gen.docs')}/
   
   
${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')}
  -ant:style 
  -  basedir=${maven.docbook.src}
  -  destdir=${genDocs} extension=.xml
  -  style=${plugin.resources}/docbook2document.xsl
  -  includes=**/*.xml, **/*.sgml
  -/
  -  
  +j:set var=dtd value=${maven.docbook.dtd}/
  +j:if test=${empty(dtd)}
  +  ant:style
  +basedir=${maven.docbook.src}
  +destdir=${genDocs} extension=.xml
  +style=${plugin.resources}/docbook2document.xsl
  +includes=**/*.xml, **/*.sgml
  +  /
  +/j:if
  +j:if test=${!empty(dtd)}
  +   echoUsing offline DocBook DTD ${maven.docbook.dtd}/echo
  +   ant:style
  +basedir=${maven.docbook.src}
  +destdir=${genDocs} extension=.xml
  +style=${plugin.resources}/docbook2document.xsl
  +includes=**/*.xml, **/*.sgml
  +ant:xmlcatalog id=cat
  +  ant:dtd
  +publicId=-//OASIS//DTD DocBook XML V4.1.2//EN
  +location=${maven.docbook.dtd}/
  +/ant:xmlcatalog
  +  /ant:style
  +/j:if
 /goal
  -  
  +
   /project
  
  
  
  1.2   +11 -0 maven/src/plugins-build/docbook/xdocs/properties.xml
  
  Index: properties.xml
  ===
  RCS file: /home/cvs/maven/src/plugins-build/docbook/xdocs/properties.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- properties.xml24 Jan 2003 03:45:09 -  1.1
  +++ properties.xml27 May 2003 23:25:55 -  1.2
  @@ -22,6 +22,17 @@
   source directory for the simple docbook xml files
 /td
   /tr
  +tr
  +  tdmaven.docbook.dtd/td
  +  tdYes/td
  +  td
  +If set, it points to the offline DocBook DTD.
  +This allows offline transformation and DTD checking.
  +DocBook DTD is available for download at
  +a 
href=http://www.oasis-open.org/docbook/xml/4.1.2/index.shtml;http://www.oasis-open.org/docbook/xml/4.1.2/index.shtml/a.
  +Example value: /home/msk/docbook-dtd/docbookx.dtd
  +  /td
  +/tr
 /table
   /section
 /body
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: maven/src/plugins-build/docbook project.xml

2003-05-27 Thread dion
dion2003/05/27 16:26:27

  Modified:src/plugins-build/docbook project.xml
  Log:
  Bump version up for development
  
  Revision  ChangesPath
  1.9   +1 -1  maven/src/plugins-build/docbook/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/maven/src/plugins-build/docbook/project.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- project.xml   9 Apr 2003 01:06:45 -   1.8
  +++ project.xml   27 May 2003 23:26:27 -  1.9
  @@ -5,7 +5,7 @@
 pomVersion3/pomVersion
 idmaven-docbook-plugin/id
 nameMaven DocBook Plug-in/name
  -  currentVersion1.0/currentVersion
  +  currentVersion1.1-SNAPSHOT/currentVersion
 shortDescriptionJava Project Management Tools/shortDescription
 urlhttp://maven.apache.org/reference/plugins/docbook//url
 siteDirectory/www/maven.apache.org/reference/plugins/docbook//siteDirectory
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]