You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wagon-commits@maven.apache.org by tr...@apache.org on 2004/06/20 17:25:28 UTC

cvs commit: maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon WagonTestCase.java

trygvis     2004/06/20 08:25:28

  Modified:    wagon-api/src/main/java/org/apache/maven/wagon
                        WagonTestCase.java
  Log:
  o Removed the creation of directories within the repository,
    only create the repository itself.
  
  Revision  Changes    Path
  1.10      +8 -21     maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/WagonTestCase.java
  
  Index: WagonTestCase.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/WagonTestCase.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- WagonTestCase.java	19 Jun 2004 14:16:21 -0000	1.9
  +++ WagonTestCase.java	20 Jun 2004 15:25:28 -0000	1.10
  @@ -17,21 +17,19 @@
    * ====================================================================
    */
   
  +import java.io.File;
  +import java.io.IOException;
  +
   import org.apache.maven.wagon.artifact.Artifact;
   import org.apache.maven.wagon.artifact.DefaultArtifact;
  -import org.apache.maven.wagon.observers.Debug;
  +import org.apache.maven.wagon.authentication.AuthenticationInfo;
   import org.apache.maven.wagon.observers.ChecksumObserver;
  +import org.apache.maven.wagon.observers.Debug;
   import org.apache.maven.wagon.repository.Repository;
  -import org.apache.maven.wagon.authentication.AuthenticationInfo;
  +
   import org.codehaus.plexus.PlexusTestCase;
   import org.codehaus.plexus.util.FileUtils;
   
  -import java.io.File;
  -import java.io.FileWriter;
  -import java.io.IOException;
  -import java.io.Writer;
  -import java.io.FileReader;
  -
   /**
    * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
    * @version $Id$
  @@ -67,8 +65,6 @@
       // Constructors
       // ----------------------------------------------------------------------
   
  -   
  -
       public WagonTestCase( String testName )
       {
           super( testName );
  @@ -96,7 +92,6 @@
       protected void setupRepositories()
           throws Exception
       {
  -
           resource = "test-resource.txt";
   
           //modelReader = new MavenXpp3Reader();
  @@ -121,14 +116,7 @@
   
           message( "Local repository: " + localRepository );
   
  -        File f = new File( localRepositoryPath, "/maven/jars" );
  -
  -        if ( !f.exists() )
  -        {
  -            f.mkdirs();
  -        }
  -
  -        f = new File( localRepositoryPath, "/maven/poms" );
  +        File f = new File( localRepositoryPath );
   
           if ( !f.exists() )
           {
  @@ -191,7 +179,6 @@
       public void testWagon()
           throws Exception
       {
  -        
           setupRepositories();
   
           setupWagonTestingFixtures();
  
  
  

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