maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r430944 [1/2] - in /maven/wagon/trunk: ./ wagon-provider-api/src/main/java/org/apache/maven/wagon/ wagon-provider-api/src/test/java/org/apache/maven/wagon/ wagon-provider-test/src/main/java/org/apache/maven/wagon/ wagon-providers/ wagon-pro...
Date Sat, 12 Aug 2006 02:02:22 GMT
Author: carlos
Date: Fri Aug 11 19:02:20 2006
New Revision: 430944

URL: http://svn.apache.org/viewvc?rev=430944&view=rev
Log:
[WAGON-58] Implement resourceExists and getFileList methods on all wagons.
Submitted By: Joakim Erdfelt

Added:
    maven/wagon/trunk/wagon-providers/wagon-http-shared/   (with props)
    maven/wagon/trunk/wagon-providers/wagon-http-shared/pom.xml   (with props)
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HtmlFileListParser.java   (with props)
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/http/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/http/HtmlFileListParserTest.java   (with props)
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/ibiblio-wagon.html   (with props)
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/jetty-wagon.html   (with props)
    maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/mirror-wagon.html   (with props)
Modified:
    maven/wagon/trunk/pom.xml
    maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/Wagon.java
    maven/wagon/trunk/wagon-provider-api/src/test/java/org/apache/maven/wagon/WagonMock.java
    maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
    maven/wagon/trunk/wagon-providers/pom.xml
    maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
    maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java
    maven/wagon/trunk/wagon-providers/wagon-http-lightweight/pom.xml
    maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java
    maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/test/java/org/apache/maven/wagon/providers/http/LightweightHttpWagonTest.java
    maven/wagon/trunk/wagon-providers/wagon-http/pom.xml
    maven/wagon/trunk/wagon-providers/wagon-http/src/main/java/org/apache/maven/wagon/providers/http/HttpWagon.java
    maven/wagon/trunk/wagon-providers/wagon-http/src/test/java/org/apache/maven/wagon/providers/http/HttpWagonTest.java
    maven/wagon/trunk/wagon-providers/wagon-ssh-external/pom.xml
    maven/wagon/trunk/wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java
    maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/AbstractSshWagon.java
    maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java
    maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/SftpWagon.java
    maven/wagon/trunk/wagon-providers/wagon-webdav/src/main/java/org/apache/maven/wagon/providers/webdav/WebDavWagon.java
    maven/wagon/trunk/wagon-providers/wagon-webdav/src/test/java/org/apache/maven/wagon/providers/webdav/PutInputStreamTest.java

Modified: maven/wagon/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/pom.xml?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/pom.xml (original)
+++ maven/wagon/trunk/pom.xml Fri Aug 11 19:02:20 2006
@@ -79,12 +79,12 @@
       <dependency>
         <groupId>org.apache.maven.wagon</groupId>
         <artifactId>wagon-provider-api</artifactId>
-        <version>1.0-beta-1</version>
+        <version>1.0-beta-2-SNAPSHOT</version>
       </dependency>
       <dependency>
         <groupId>org.apache.maven.wagon</groupId>
         <artifactId>wagon-provider-test</artifactId>
-        <version>1.0-beta-1</version>
+        <version>1.0-beta-2-SNAPSHOT</version>
       </dependency>
       <dependency>
         <groupId>junit</groupId>

Modified: maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/Wagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/Wagon.java?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/Wagon.java (original)
+++ maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/Wagon.java Fri Aug 11 19:02:20 2006
@@ -1,7 +1,7 @@
 package org.apache.maven.wagon;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@
 import org.apache.maven.wagon.repository.Repository;
 
 import java.io.File;
+import java.util.List;
 
 public interface Wagon
 {
@@ -87,6 +88,44 @@
      */
     void putDirectory( File sourceDirectory, String destinationDirectory )
         throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException;
+    
+    /**
+     * Check if a remote resource exists
+     * 
+     * @param resourceName
+     * @return whether the resource exists or not 
+     * @throws TransferFailedException if there's an error trying to access the remote side
+     * @throws AuthorizationException if not authorized to verify the existence of the resource
+     */
+    boolean resourceExists( String resourceName )
+        throws TransferFailedException, AuthorizationException;
+    
+    /**
+     * <p>
+     * Returns a {@link List} of strings naming the files and directories in the directory denoted by
+     * this abstract pathname.
+     * </p>
+     * <p>
+     * If this abstract pathname does not denote a directory, or does not exist, then this method throws
+     * {@link ResourceDoesNotExistException}.
+     * Otherwise a {@link List} of strings is returned, one for each file or directory in the directory.
+     * Names denoting the directory itself and the directory's parent directory are not included in
+     * the result. Each string is a file name rather than a complete path.
+     * </p>
+     * <p>
+     * There is no guarantee that the name strings in the resulting list will appear in any specific
+     * order; they are not, in particular, guaranteed to appear in alphabetical order.
+     * </p> 
+     * 
+     * @param destinationDirectory directory to list contents of
+     * @return A {@link List} of strings naming the files and directories in the directory denoted by
+     * this abstract pathname. The {@link List} will be empty if the directory is empty.
+     * @throws TransferFailedException if there's an error trying to access the remote side
+     * @throws ResourceDoesNotExistException if destinationDirectory does not exist or is not a directory
+     * @throws AuthorizationException if not authorized to list the contents of the directory
+     */
+    List getFileList( String destinationDirectory )
+        throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException; 
 
     /**
      * 

Modified: maven/wagon/trunk/wagon-provider-api/src/test/java/org/apache/maven/wagon/WagonMock.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-api/src/test/java/org/apache/maven/wagon/WagonMock.java?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-provider-api/src/test/java/org/apache/maven/wagon/WagonMock.java (original)
+++ maven/wagon/trunk/wagon-provider-api/src/test/java/org/apache/maven/wagon/WagonMock.java Fri Aug 11 19:02:20 2006
@@ -16,13 +16,15 @@
  * limitations under the License.
  */
 
-import org.apache.maven.wagon.authorization.AuthorizationException;
-
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.InputStream;
 import java.io.OutputStream;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.maven.wagon.authorization.AuthorizationException;
 
 /**
  * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
@@ -106,5 +108,16 @@
     {
     }
 
+    public List getFileList( String destinationDirectory )
+        throws TransferFailedException, AuthorizationException
+    {
+        return Collections.EMPTY_LIST;
+    }
+
+    public boolean resourceExists( String resourceName )
+        throws AuthorizationException
+    {
+        return false;
+    }
 
 }

Modified: maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java (original)
+++ maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java Fri Aug 11 19:02:20 2006
@@ -1,7 +1,7 @@
 package org.apache.maven.wagon;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -458,6 +458,138 @@
             tearDownWagonTestingFixtures();
         }
     }
+    
+    /**
+     * Test {@link Wagon#getFileList(String)}.
+     * 
+     * @since 1.0-beta-2
+     * @throws Exception
+     */
+    public void testWagonGetFileList()
+        throws Exception
+    {
+        setupRepositories();
+
+        setupWagonTestingFixtures();
+
+        String dirName = "file-list";
+
+        String filenames[] = new String[] {
+            "test-resource.txt",
+            "test-resource-b.txt",
+            "test-resource.pom",
+            "more-resources.dat" };
+
+        for ( int i = 0; i < filenames.length; i++ )
+        {
+            putFile( dirName + "/" + filenames[i], dirName + "/" + filenames[i], filenames[i] + "\n" );
+        }
+
+        Wagon wagon = getWagon();
+
+        wagon.connect( testRepository, getAuthInfo() );
+
+        List list = wagon.getFileList( dirName );
+        assertNotNull( "file list should not be null.", list );
+        assertTrue( "file list should contain 4 or more items (actually contains " + list.size() + " elements).", list
+            .size() >= 4 );
+
+        for ( int i = 0; i < filenames.length; i++ )
+        {
+            assertTrue( "Filename '" + filenames[i] + "' should be in list.", list.contains( filenames[i] ) );
+        }
+
+        wagon.disconnect();
+
+        tearDownWagonTestingFixtures();
+    }
+    
+    /**
+     * Test {@link Wagon#getFileList(String)} when the directory does not exist.
+     * 
+     * @since 1.0-beta-2
+     * @throws Exception
+     */
+    public void testWagonGetFileListWhenDirectoryDoesNotExist()
+        throws Exception
+    {
+        setupRepositories();
+
+        setupWagonTestingFixtures();
+
+        String dirName = "file-list-unexisting";
+
+        Wagon wagon = getWagon();
+
+        wagon.connect( testRepository, getAuthInfo() );
+
+        try
+        {
+            wagon.getFileList( dirName );
+            fail( "getFileList on unexisting directory must throw ResourceDoesNotExistException" );
+        }
+        catch ( ResourceDoesNotExistException e )
+        {
+            // expected
+        }
+        finally
+        {
+            wagon.disconnect();
+
+            tearDownWagonTestingFixtures();
+        }
+    }
+
+    /**
+     * Test for an existing resource.
+     * 
+     * @since 1.0-beta-2
+     * @throws Exception
+     */
+    public void testWagonResourceExists()
+        throws Exception
+    {
+        setupRepositories();
+
+        setupWagonTestingFixtures();
+
+        Wagon wagon = getWagon();
+
+        putFile();
+        
+        wagon.connect( testRepository, getAuthInfo() );
+
+        assertTrue( sourceFile.getName() + " does not exist", wagon.resourceExists( sourceFile.getName() ) );
+
+        wagon.disconnect();
+
+        tearDownWagonTestingFixtures();
+    }
+    
+    /**
+     * Test for an invalid resource.
+     * 
+     * @since 1.0-beta-2
+     * @throws Exception
+     */
+    public void testWagonResourceNotExists()
+        throws Exception
+    {
+        setupRepositories();
+
+        setupWagonTestingFixtures();
+
+        Wagon wagon = getWagon();
+
+        wagon.connect( testRepository, getAuthInfo() );
+
+        assertFalse( wagon.resourceExists( "a/bad/resource/name/that/should/not/exist.txt" ) );
+
+        wagon.disconnect();
+
+        tearDownWagonTestingFixtures();
+    }
+    
 
     // ----------------------------------------------------------------------
     // File <--> File round trip testing
@@ -465,11 +597,11 @@
     // We are testing taking a file, our sourcefile, and placing it into the
     // test repository that we have setup.
     // ----------------------------------------------------------------------
-
-    protected void putFile()
+    
+    protected void putFile(String resourceName, String testFileName, String content)
         throws Exception
     {
-        message( "Putting test artifact: " + resource + " into test repository " + testRepository );
+        message( "Putting test artifact: " + resourceName + " into test repository " + testRepository );
 
         Wagon wagon = getWagon();
 
@@ -477,14 +609,21 @@
 
         wagon.connect( testRepository, getAuthInfo() );
 
-        sourceFile = new File( FileTestUtils.getTestOutputDir(), "test-resource" );
-        FileUtils.fileWrite( sourceFile.getAbsolutePath(), "test-resource.txt\n" );
+        sourceFile = new File( FileTestUtils.getTestOutputDir(), testFileName );
+        sourceFile.getParentFile().mkdirs();
+        FileUtils.fileWrite( sourceFile.getAbsolutePath(), content );
 
-        wagon.put( sourceFile, resource );
+        wagon.put( sourceFile, resourceName );
 
         wagon.removeTransferListener( checksumObserver );
 
-        wagon.disconnect();
+        wagon.disconnect();        
+    }
+
+    protected void putFile()
+        throws Exception
+    {
+        putFile( resource, "test-resource", "test-resource.txt\n" );
     }
 
     protected void getFile()

Modified: maven/wagon/trunk/wagon-providers/pom.xml
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/pom.xml?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/pom.xml (original)
+++ maven/wagon/trunk/wagon-providers/pom.xml Fri Aug 11 19:02:20 2006
@@ -14,6 +14,7 @@
     <module>wagon-ftp</module>
     <module>wagon-http-lightweight</module>
     <module>wagon-http</module>
+    <module>wagon-http-shared</module>
     <module>wagon-ssh-external</module>
     <module>wagon-ssh</module>
     <module>wagon-webdav</module>

Modified: maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java (original)
+++ maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java Fri Aug 11 19:02:20 2006
@@ -1,7 +1,7 @@
 package org.apache.maven.wagon.providers.file;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -33,6 +33,8 @@
 import java.io.InputStream;
 import java.io.OutputStream;
 import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
 
 /**
  * Wagon Provider for Local File System
@@ -102,20 +104,7 @@
     public void putDirectory( File sourceDirectory, String destinationDirectory )
         throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
     {
-        String basedir = getRepository().getBasedir();
-
-        destinationDirectory = StringUtils.replace( destinationDirectory, "\\", "/" );
-
-        File path;
-
-        if ( destinationDirectory.equals( "." ) )
-        {
-            path = new File( basedir );
-        }
-        else
-        {
-            path = new File( basedir, destinationDirectory );
-        }
+        File path = resolveDestinationPath( destinationDirectory );
 
         path.mkdirs();
  
@@ -132,5 +121,53 @@
         {
             throw new TransferFailedException( "Error copying directory structure", e );
         }
+    }
+    
+    private File resolveDestinationPath(String destinationPath)
+    {
+        String basedir = getRepository().getBasedir();
+        
+        destinationPath = StringUtils.replace( destinationPath, "\\", "/" );
+
+        File path;
+
+        if ( destinationPath.equals( "." ) )
+        {
+            path = new File( basedir );
+        }
+        else
+        {
+            path = new File( basedir, destinationPath );
+        }
+        
+        return path;
+    }
+
+    public List getFileList( String destinationDirectory )
+        throws ResourceDoesNotExistException, AuthorizationException
+    {
+        File path = resolveDestinationPath( destinationDirectory );
+
+        if ( !path.exists() )
+        {
+            throw new ResourceDoesNotExistException( "Directory does not exist: " + destinationDirectory );
+        }
+
+        if ( !path.isDirectory() )
+        {
+            throw new ResourceDoesNotExistException( "Path is not a directory: " + destinationDirectory );
+        }
+
+        String files[] = path.list();
+
+        return Arrays.asList( files );
+    }
+
+    public boolean resourceExists( String resourceName )
+        throws TransferFailedException, AuthorizationException
+    {
+        File file = resolveDestinationPath( resourceName );
+
+        return file.exists();
     }
 }

Modified: maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java (original)
+++ maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java Fri Aug 11 19:02:20 2006
@@ -1,7 +1,7 @@
 package org.apache.maven.wagon.providers.ftp;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,13 @@
  * limitations under the License.
  */
 
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.ArrayList;
+import java.util.List;
+
 import org.apache.commons.net.ProtocolCommandEvent;
 import org.apache.commons.net.ProtocolCommandListener;
 import org.apache.commons.net.ftp.FTP;
@@ -32,14 +39,10 @@
 import org.apache.maven.wagon.WagonConstants;
 import org.apache.maven.wagon.authentication.AuthenticationException;
 import org.apache.maven.wagon.authentication.AuthenticationInfo;
+import org.apache.maven.wagon.authorization.AuthorizationException;
 import org.apache.maven.wagon.repository.RepositoryPermissions;
 import org.apache.maven.wagon.resource.Resource;
 
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
 public class FtpWagon
     extends StreamWagon
 {
@@ -308,25 +311,7 @@
 
         try
         {
-            if ( !ftp.changeWorkingDirectory( getRepository().getBasedir() ) )
-            {
-                throw new TransferFailedException(
-                    "Required directory: '" + getRepository().getBasedir() + "' " + "is missing" );
-            }
-
-            String[] dirs = PathUtils.dirnames( resource.getName() );
-
-            for ( int i = 0; i < dirs.length; i++ )
-            {
-                boolean dirChanged = ftp.changeWorkingDirectory( dirs[i] );
-
-                if ( !dirChanged )
-                {
-                    String msg = "Resource " + resource + " not found. Directory " + dirs[i] + " does not exist";
-
-                    throw new ResourceDoesNotExistException( msg );
-                }
-            }
+            ftpChangeDirectory( resource );
 
             String filename = PathUtils.filename( resource.getName() );
             FTPFile[] ftpFiles = ftp.listFiles( filename );
@@ -357,6 +342,30 @@
         inputData.setInputStream( is );
     }
 
+    private void ftpChangeDirectory( Resource resource )
+        throws IOException, TransferFailedException, ResourceDoesNotExistException
+    {
+        if ( !ftp.changeWorkingDirectory( getRepository().getBasedir() ) )
+        {
+            throw new TransferFailedException(
+                "Required directory: '" + getRepository().getBasedir() + "' " + "is missing" );
+        }
+
+        String[] dirs = PathUtils.dirnames( resource.getName() );
+
+        for ( int i = 0; i < dirs.length; i++ )
+        {
+            boolean dirChanged = ftp.changeWorkingDirectory( dirs[i] );
+
+            if ( !dirChanged )
+            {
+                String msg = "Resource " + resource + " not found. Directory " + dirs[i] + " does not exist";
+
+                throw new ResourceDoesNotExistException( msg );
+            }
+        }
+    }
+
 
     public class PrintCommandListener
         implements ProtocolCommandListener
@@ -383,5 +392,59 @@
     protected void fireSessionDebug( String msg )
     {
         super.fireSessionDebug( msg );
+    }
+
+    public List getFileList( String destinationDirectory )
+        throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
+    {
+        Resource resource = new Resource(destinationDirectory);
+        
+        try 
+        {
+            ftpChangeDirectory( resource );
+    
+            String filename = PathUtils.filename( resource.getName() );
+            FTPFile[] ftpFiles = ftp.listFiles( filename );
+    
+            if ( ftpFiles == null || ftpFiles.length <= 0 )
+            {
+                throw new ResourceDoesNotExistException( "Could not find file: '" + resource + "'" );
+            }
+            
+            List ret = new ArrayList();
+            for(int i=0; i<ftpFiles.length; i++)
+            {
+                ret.add(ftpFiles[i].getName());
+            }
+            
+            return ret;
+        } catch(IOException e)
+        {
+            throw new TransferFailedException( "Error transferring file via FTP", e );
+        }
+    }
+
+    public boolean resourceExists( String resourceName )
+        throws TransferFailedException, AuthorizationException
+    {
+        Resource resource = new Resource( resourceName );
+
+        try
+        {
+            ftpChangeDirectory( resource );
+
+            String filename = PathUtils.filename( resource.getName() );
+            int status = ftp.stat( filename );
+
+            return ( ( status == FTPReply.FILE_STATUS ) || ( status == FTPReply.FILE_STATUS_OK ) || ( status == FTPReply.SYSTEM_STATUS ) );
+        }
+        catch ( IOException e )
+        {
+            throw new TransferFailedException( "Error transferring file via FTP", e );
+        }
+        catch ( ResourceDoesNotExistException e )
+        {
+            return false;
+        }
     }
 }

Modified: maven/wagon/trunk/wagon-providers/wagon-http-lightweight/pom.xml
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-lightweight/pom.xml?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-lightweight/pom.xml (original)
+++ maven/wagon/trunk/wagon-providers/wagon-http-lightweight/pom.xml Fri Aug 11 19:02:20 2006
@@ -1,9 +1,14 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<?xml version="1.0" encoding="UTF-8"?>
+<project 
+  xmlns="http://maven.apache.org/POM/4.0.0" 
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <parent>
     <artifactId>wagon-providers</artifactId>
     <groupId>org.apache.maven.wagon</groupId>
     <version>1.0-beta-2-SNAPSHOT</version>
   </parent>
+
   <modelVersion>4.0.0</modelVersion>
   <artifactId>wagon-http-lightweight</artifactId>
   <name>Maven Wagon Lightweight HTTP Provider</name>
@@ -18,6 +23,16 @@
 
   <dependencies>
     <dependency>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>wagon-http-shared</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>xml-apis</groupId>
+      <artifactId>xml-apis</artifactId>
+      <version>1.0.b2</version>
+    </dependency>
+    <dependency>
       <groupId>plexus</groupId>
       <artifactId>plexus-jetty-httpd</artifactId>
       <version>1.0-beta-1</version>
@@ -30,4 +45,4 @@
       </exclusions>
     </dependency>
   </dependencies>
-</project>
\ No newline at end of file
+</project>

Modified: maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java (original)
+++ maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java Fri Aug 11 19:02:20 2006
@@ -1,7 +1,7 @@
 package org.apache.maven.wagon.providers.http;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,6 +16,18 @@
  * limitations under the License.
  */
 
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.Authenticator;
+import java.net.HttpURLConnection;
+import java.net.MalformedURLException;
+import java.net.PasswordAuthentication;
+import java.net.URL;
+import java.net.URLConnection;
+import java.util.List;
+
 import org.apache.maven.wagon.ConnectionException;
 import org.apache.maven.wagon.InputData;
 import org.apache.maven.wagon.OutputData;
@@ -25,18 +37,8 @@
 import org.apache.maven.wagon.authentication.AuthenticationException;
 import org.apache.maven.wagon.authorization.AuthorizationException;
 import org.apache.maven.wagon.proxy.ProxyInfo;
-import org.apache.maven.wagon.repository.Repository;
 import org.apache.maven.wagon.resource.Resource;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.net.Authenticator;
-import java.net.HttpURLConnection;
-import java.net.MalformedURLException;
-import java.net.PasswordAuthentication;
-import java.net.URL;
-import java.net.URLConnection;
+import org.apache.maven.wagon.shared.http.HtmlFileListParser;
 
 /**
  * @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
@@ -63,20 +65,10 @@
     public void fillInputData( InputData inputData )
         throws TransferFailedException, ResourceDoesNotExistException
     {
-        Repository repository = getRepository();
-        String repositoryUrl = repository.getUrl();
         Resource resource = inputData.getResource();
         try
         {
-            URL url;
-            if ( repositoryUrl.endsWith( "/" ) )
-            {
-                url = new URL( repositoryUrl + resource.getName() );
-            }
-            else
-            {
-                url = new URL( repositoryUrl + "/" + resource.getName() );
-            }
+            URL url = resolveResourceURL( resource );
             URLConnection urlConnection = url.openConnection();
             if ( !useCache )
             {
@@ -103,21 +95,10 @@
     public void fillOutputData( OutputData outputData )
         throws TransferFailedException
     {
-        Repository repository = getRepository();
-        String repositoryUrl = repository.getUrl();
-
         Resource resource = outputData.getResource();
         try
         {
-            URL url;
-            if ( repositoryUrl.endsWith( "/" ) )
-            {
-                url = new URL( repositoryUrl + resource.getName() );
-            }
-            else
-            {
-                url = new URL( repositoryUrl + "/" + resource.getName() );
-            }
+            URL url = resolveResourceURL( resource );
             putConnection = (HttpURLConnection) url.openConnection();
 
             putConnection.setRequestMethod( "PUT" );
@@ -130,6 +111,23 @@
         }
     }
 
+    private URL resolveResourceURL( Resource resource )
+        throws MalformedURLException
+    {
+        String repositoryUrl = getRepository().getUrl();
+        
+        URL url;
+        if ( repositoryUrl.endsWith( "/" ) )
+        {
+            url = new URL( repositoryUrl + resource.getName() );
+        }
+        else
+        {
+            url = new URL( repositoryUrl + "/" + resource.getName() );
+        }
+        return url;
+    }
+
 
     public void put( File source, String resourceName )
         throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
@@ -153,7 +151,7 @@
                     break;
 
                 case HttpURLConnection.HTTP_FORBIDDEN:
-                    throw new AuthorizationException( "Access denided to: " + url );
+                    throw new AuthorizationException( "Access denied to: " + url );
 
                 case HttpURLConnection.HTTP_NOT_FOUND:
                     throw new ResourceDoesNotExistException( "File: " + url + " does not exist" );
@@ -244,6 +242,68 @@
         {
             System.setProperty( "http.nonProxyHosts", previousProxyExclusions );
         }
+    }
+
+    public List getFileList( String destinationDirectory )
+        throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
+    {
+        InputData inputData = new InputData();
+
+        if ( !destinationDirectory.endsWith( "/" ) )
+        {
+            destinationDirectory += "/";
+        }
+
+        String url = getRepository().getUrl() + "/" + destinationDirectory;
+
+        Resource resource = new Resource( destinationDirectory );
+
+        inputData.setResource( resource );
+
+        fillInputData( inputData );
+
+        InputStream is = inputData.getInputStream();
+
+        if ( is == null )
+        {
+            throw new TransferFailedException( url + " - Could not open input stream for resource: '" + resource + "'" );
+        }
+
+        return HtmlFileListParser.parseFileList( url, is );
+    }
+
+    public boolean resourceExists( String resourceName )
+        throws TransferFailedException, AuthorizationException
+    {
+        HttpURLConnection headConnection;
+        
+        try
+        {
+            URL url = resolveResourceURL( new Resource(resourceName) );
+            headConnection = (HttpURLConnection) url.openConnection();
+    
+            headConnection.setRequestMethod( "HEAD" );
+            headConnection.setDoOutput( true );
+            
+            int statusCode = headConnection.getResponseCode();
+
+            switch ( statusCode )
+            {
+                case HttpURLConnection.HTTP_OK:
+                    return true;
+
+                case HttpURLConnection.HTTP_FORBIDDEN:
+                    throw new AuthorizationException( "Access denided to: " + url );
+
+                case HttpURLConnection.HTTP_NOT_FOUND:
+                    return false;
+            }
+        } catch ( IOException e )
+        {
+            throw new TransferFailedException( "Error transferring file", e );
+        }
+        
+        return false;
     }
 }
 

Modified: maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/test/java/org/apache/maven/wagon/providers/http/LightweightHttpWagonTest.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/test/java/org/apache/maven/wagon/providers/http/LightweightHttpWagonTest.java?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/test/java/org/apache/maven/wagon/providers/http/LightweightHttpWagonTest.java (original)
+++ maven/wagon/trunk/wagon-providers/wagon-http-lightweight/src/test/java/org/apache/maven/wagon/providers/http/LightweightHttpWagonTest.java Fri Aug 11 19:02:20 2006
@@ -1,7 +1,7 @@
 package org.apache.maven.wagon.providers.http;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -65,5 +65,14 @@
         throws Exception
     {
         release( httpd );
+    }
+
+    public void testWagonGetFileList()
+        throws Exception
+    {
+        File f = new File( FileTestUtils.createDir( "http-repository" ), "file-list" );
+        f.mkdirs();
+        
+        super.testWagonGetFileList();
     }
 }

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 11 19:02:20 2006
@@ -0,0 +1,4 @@
+.classpath
+.project
+cobertura.ser
+target

Added: maven/wagon/trunk/wagon-providers/wagon-http-shared/pom.xml
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-shared/pom.xml?rev=430944&view=auto
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-shared/pom.xml (added)
+++ maven/wagon/trunk/wagon-providers/wagon-http-shared/pom.xml Fri Aug 11 19:02:20 2006
@@ -0,0 +1,31 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <artifactId>wagon-providers</artifactId>
+    <groupId>org.apache.maven.wagon</groupId>
+    <version>1.0-beta-2-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>wagon-http-shared</artifactId>
+  <name>Maven Wagon HTTP Shared Library</name>
+  <description>
+    Shared Library for the wagon-http, and wagon-http-lightweight wagon providers.
+  </description>
+
+  <issueManagement>
+    <system>jira</system>
+    <url>http://jira.codehaus.org/browse/WAGONHTTP</url>
+  </issueManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>nekohtml</groupId>
+      <artifactId>nekohtml</artifactId>
+      <version>0.9.5</version>
+    </dependency>
+    <dependency>
+      <groupId>xml-apis</groupId>
+      <artifactId>xml-apis</artifactId>
+      <version>1.0.b2</version>
+    </dependency>
+  </dependencies>
+</project>

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HtmlFileListParser.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HtmlFileListParser.java?rev=430944&view=auto
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HtmlFileListParser.java (added)
+++ maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HtmlFileListParser.java Fri Aug 11 19:02:20 2006
@@ -0,0 +1,184 @@
+package org.apache.maven.wagon.shared.http;
+
+/*
+ * Copyright 2001-2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.regex.Pattern;
+
+import org.apache.maven.wagon.TransferFailedException;
+import org.apache.xerces.parsers.DOMParser;
+import org.codehaus.plexus.util.StringUtils;
+import org.cyberneko.html.HTMLConfiguration;
+import org.w3c.dom.Document;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * Html File List Parser.
+ */
+public class HtmlFileListParser
+{
+    /**
+     * Fetches a raw HTML from a provided InputStream, parses it, and returns the file list.
+     * 
+     * @param is the input stream.
+     * @return the file list.
+     * @throws TransferFailedException if there was a problem fetching the raw html.
+     */
+    public static List parseFileList( String baseurl, InputStream is )
+        throws TransferFailedException
+    {
+        try
+        {
+            DOMParser parser = new DOMParser( new HTMLConfiguration() );
+            parser.setFeature( "http://xml.org/sax/features/namespaces", false );
+
+            parser.parse( new InputSource( is ) );
+
+            Document doc = parser.getDocument();
+
+            List links = new ArrayList();
+            links = findAnchorLinks( links, baseurl, doc );
+
+            return links;
+        }
+        catch ( SAXException e )
+        {
+            throw new TransferFailedException( "Unable to parse HTML.", e );
+        }
+        catch ( IOException e )
+        {
+            throw new TransferFailedException( "Unable to parse HTML.", e );
+        }
+    }
+
+    private static List findAnchorLinks( List links, String baseurl, Node node )
+    {
+        String basepath = baseurl;
+        
+        int colslash = basepath.indexOf( "://" );
+        if ( colslash > 0 )
+        {
+            int pathstart = basepath.indexOf( '/', colslash + 3 );
+            if(pathstart > 0)
+            {
+                // slash starts path
+                // "http://localhost:10007/test/path/" = "/test/path"
+                basepath = baseurl.substring( pathstart );
+            } else
+            {
+                // no path means top level.
+                // "http://localhost:10007" = ""
+                basepath = "";
+            }
+        }
+
+        if ( node.getNodeName().equalsIgnoreCase( "a" ) )
+        {
+            if ( node.hasAttributes() )
+            {
+                String key;
+                String value;
+                NamedNodeMap attributes = node.getAttributes();
+                for ( int i = 0; i < attributes.getLength(); i++ )
+                {
+                    key = attributes.item( i ).getNodeName().toLowerCase();
+                    if ( "href".equals( key ) )
+                    {
+                        value = attributes.item( i ).getNodeValue();
+                        if ( StringUtils.isNotEmpty( value ) )
+                        {
+                            value = StringUtils.trim( value );
+                            if ( validFilename( value ) )
+                            {
+                                // simple filename.
+                                links.add( value );
+                            }
+                            else
+                            {
+                                // Potentially Complex Filename.
+
+                                // Starts with full URL base "http://www.ibiblio.org/maven2/"
+                                if ( value.startsWith( baseurl ) )
+                                {
+                                    String tst = value.substring( baseurl.length() );
+                                    if ( validFilename( tst ) )
+                                    {
+                                        links.add( tst );
+                                        continue;
+                                    }
+                                }
+
+                                // Starts with host relative base url "/maven2/"
+                                if ( value.startsWith( basepath ) )
+                                {
+                                    String tst = value.substring( basepath.length() );
+                                    if ( validFilename( tst ) )
+                                    {
+                                        links.add( tst );
+                                        continue;
+                                    }
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+        }
+
+        if ( node.hasChildNodes() )
+        {
+            NodeList nodes = node.getChildNodes();
+            for ( int nodenum = 0; nodenum < nodes.getLength(); nodenum++ )
+            {
+                findAnchorLinks( links, baseurl, nodes.item( nodenum ) );
+            }
+        }
+
+        return links;
+    }
+
+    private static boolean validFilename( String tst )
+    {
+        final Pattern badFilenames = Pattern.compile( "[:?&@*]" );
+
+        if ( badFilenames.matcher( tst ).find() )
+        {
+            return false;
+        }
+
+        String tstpath = StringUtils.replace( tst, '\\', '/' );
+        int pathparts = StringUtils.countMatches( tstpath, "/" );
+
+        if ( pathparts > 1 )
+        {
+            return false;
+        }
+        else if ( ( pathparts == 1 ) && ( !tstpath.endsWith( "/" ) ) )
+        {
+            return false;
+        }
+
+        return true;
+    }
+}

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HtmlFileListParser.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/main/java/org/apache/maven/wagon/shared/http/HtmlFileListParser.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/http/HtmlFileListParserTest.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/http/HtmlFileListParserTest.java?rev=430944&view=auto
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/http/HtmlFileListParserTest.java (added)
+++ maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/http/HtmlFileListParserTest.java Fri Aug 11 19:02:20 2006
@@ -0,0 +1,103 @@
+package org.apache.maven.wagon.shared.http;
+
+/*
+ * Copyright 2001-2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.io.InputStream;
+import java.util.Iterator;
+import java.util.List;
+
+import junit.framework.TestCase;
+
+import org.apache.maven.wagon.TransferFailedException;
+import org.apache.maven.wagon.shared.http.HtmlFileListParser;
+
+/**
+ * Unit Tests for the HtmlFileListParser
+ */
+public class HtmlFileListParserTest
+    extends TestCase
+{
+    private void assertContains( List files, String string )
+    {
+        if ( !files.contains( string ) )
+        {
+            fail( "File List does not contain expected '" + string + "'." );
+        }
+    }
+
+    private List getFileList( String resourceName )
+        throws TransferFailedException
+    {
+        InputStream is = this.getClass().getResourceAsStream( resourceName );
+        List files = HtmlFileListParser.parseFileList( "http://www.ibiblio.org/maven2/org/apache/maven/wagon/", is );
+
+        assertNotNull( "file list should not be null.", files );
+        assertFalse( "file list should not be empty.", files.isEmpty() );
+
+        /* Debug */
+        if ( false )
+        {
+            Iterator it = files.iterator();
+            while ( it.hasNext() )
+            {
+                System.out.println( "File: '" + it.next() + "'" );
+            }
+        }
+
+        return files;
+    }
+
+    public void testParseIbiblio()
+        throws Exception
+    {
+        List files = getFileList( "/filelistings/ibiblio-wagon.html" );
+
+        assertTrue( "file list should contain at least 50 entries. (actually contains " + files.size() + " entries)",
+                    files.size() > 50 );
+
+        assertContains( files, "wagon-1.0-alpha-3-20050419.043745-5.pom.sha1" );
+        assertContains( files, "wagon-providers/" );
+    }
+
+    public void testParseMirror()
+        throws Exception
+    {
+        List files = getFileList( "/filelistings/mirror-wagon.html" );
+
+        assertTrue( "file list should contain at least 50 entries. (actually contains " + files.size() + " entries)",
+                    files.size() > 50 );
+
+        assertContains( files, "wagon-1.0-alpha-3-20050419.043745-5.pom.sha1" );
+        assertContains( files, "wagon-providers/" );
+    }
+
+    /**
+     * Test of an html which is improperly formatted, and contains full host-specific paths to the resources.
+     * @throws Exception
+     */
+    public void testParseJetty()
+        throws Exception
+    {
+        List files = getFileList( "/filelistings/jetty-wagon.html" );
+
+        assertTrue( "file list should contain at least 50 entries. (actually contains " + files.size() + " entries)",
+                    files.size() > 50 );
+
+        assertContains( files, "wagon-1.0-alpha-3-20050419.043745-5.pom.sha1" );
+        assertContains( files, "wagon-providers/" );
+    }
+}

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/http/HtmlFileListParserTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/java/org/apache/maven/wagon/shared/http/HtmlFileListParserTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/ibiblio-wagon.html
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/ibiblio-wagon.html?rev=430944&view=auto
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/ibiblio-wagon.html (added)
+++ maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/ibiblio-wagon.html Fri Aug 11 19:02:20 2006
@@ -0,0 +1,80 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<HTML>
+ <HEAD>
+  <TITLE>Index of /maven2/org/apache/maven/wagon</TITLE>
+ </HEAD>
+ <BODY>
+<H1>Index of /maven2/org/apache/maven/wagon</H1>
+<PRE><IMG SRC="/icons/blank.gif" ALT="     "> <A HREF="?N=D">Name</A>                                                   <A HREF="?M=A">Last modified</A>       <A HREF="?S=A">Size</A>  <A HREF="?D=A">Description</A>
+
+<HR>
+<IMG SRC="/icons/back.gif" ALT="[DIR]"> <A HREF="/maven2/org/apache/maven/">Parent Directory</A>                                       09-May-2006 10:57      -  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-2.pom">wagon-1.0-alpha-2.pom</A>                                  07-May-2006 18:31     3k  
+<IMG SRC="/icons/text.gif" ALT="[TXT]"> <A HREF="wagon-1.0-alpha-2.pom.asc">wagon-1.0-alpha-2.pom.asc</A>                              07-May-2006 18:31     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-2.pom.md5">wagon-1.0-alpha-2.pom.md5</A>                              07-May-2006 18:31     1k  
+
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-2.pom.sha1">wagon-1.0-alpha-2.pom.sha1</A>                             07-May-2006 18:31     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050413.021234-4.pom">wagon-1.0-alpha-3-20050413.021234-4.pom</A>                08-Nov-2005 17:25     3k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050413.021234-4.pom.md5">wagon-1.0-alpha-3-20050413.021234-4.pom.md5</A>            10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050413.021234-4.pom.sha1">wagon-1.0-alpha-3-20050413.021234-4.pom.sha1</A>           10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050419.043745-5.pom">wagon-1.0-alpha-3-20050419.043745-5.pom</A>                08-Nov-2005 17:25     3k  
+
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050419.043745-5.pom.md5">wagon-1.0-alpha-3-20050419.043745-5.pom.md5</A>            10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050419.043745-5.pom.sha1">wagon-1.0-alpha-3-20050419.043745-5.pom.sha1</A>           10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050419.044035-6.pom">wagon-1.0-alpha-3-20050419.044035-6.pom</A>                08-Nov-2005 17:25     3k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050419.044035-6.pom.md5">wagon-1.0-alpha-3-20050419.044035-6.pom.md5</A>            10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050419.044035-6.pom.sha1">wagon-1.0-alpha-3-20050419.044035-6.pom.sha1</A>           10-May-2006 00:11     1k  
+
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050421.162738-7.pom">wagon-1.0-alpha-3-20050421.162738-7.pom</A>                08-Nov-2005 17:25     3k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050421.162738-7.pom.md5">wagon-1.0-alpha-3-20050421.162738-7.pom.md5</A>            10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050421.162738-7.pom.sha1">wagon-1.0-alpha-3-20050421.162738-7.pom.sha1</A>           10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050422.075233-8.pom">wagon-1.0-alpha-3-20050422.075233-8.pom</A>                08-Nov-2005 17:25     3k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050422.075233-8.pom.md5">wagon-1.0-alpha-3-20050422.075233-8.pom.md5</A>            10-May-2006 00:11     1k  
+
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050422.075233-8.pom.sha1">wagon-1.0-alpha-3-20050422.075233-8.pom.sha1</A>           10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050429.051847-9.pom">wagon-1.0-alpha-3-20050429.051847-9.pom</A>                08-Nov-2005 17:25     3k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050429.051847-9.pom.md5">wagon-1.0-alpha-3-20050429.051847-9.pom.md5</A>            10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-1.0-alpha-3-20050429.051847-9.pom.sha1">wagon-1.0-alpha-3-20050429.051847-9.pom.sha1</A>           10-May-2006 00:11     1k  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-file/">wagon-file/</A>                                            19-Jun-2006 08:27      -  
+
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-ftp/">wagon-ftp/</A>                                             19-Jun-2006 08:28      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-http-lightweight/">wagon-http-lightweight/</A>                                19-Jun-2006 08:30      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-http/">wagon-http/</A>                                            19-Jun-2006 08:32      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-lightweight-http/">wagon-lightweight-http/</A>                                07-May-2006 18:31      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-provider-api/">wagon-provider-api/</A>                                    19-Jun-2006 08:20      -  
+
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-provider-test/">wagon-provider-test/</A>                                   19-Jun-2006 08:25      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-provider/">wagon-provider/</A>                                        13-May-2006 04:11      -  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-2.pom">wagon-providers-1.0-alpha-2.pom</A>                        07-May-2006 18:31     1k  
+<IMG SRC="/icons/text.gif" ALT="[TXT]"> <A HREF="wagon-providers-1.0-alpha-2.pom.asc">wagon-providers-1.0-alpha-2.pom.asc</A>                    07-May-2006 18:31     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-2.pom.md5">wagon-providers-1.0-alpha-2.pom.md5</A>                    07-May-2006 18:31     1k  
+
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-2.pom.sha1">wagon-providers-1.0-alpha-2.pom.sha1</A>                   07-May-2006 18:31     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050407.202848-1.pom">wagon-providers-1.0-alpha-3-20050407.202848-1.pom</A>      08-Nov-2005 17:25     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050407.202848-1.pom.md5">wagon-providers-1.0-alpha-3-20050407.202848-1.pom.md5</A>  10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050407.202848-1.pom.sha1">wagon-providers-1.0-alpha-3-20050407.202848-1.pom.sha1</A> 10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050419.044035-2.pom">wagon-providers-1.0-alpha-3-20050419.044035-2.pom</A>      08-Nov-2005 17:25     1k  
+
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050419.044035-2.pom.md5">wagon-providers-1.0-alpha-3-20050419.044035-2.pom.md5</A>  10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050419.044035-2.pom.sha1">wagon-providers-1.0-alpha-3-20050419.044035-2.pom.sha1</A> 10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050421.162738-3.pom">wagon-providers-1.0-alpha-3-20050421.162738-3.pom</A>      08-Nov-2005 17:25     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050421.162738-3.pom.md5">wagon-providers-1.0-alpha-3-20050421.162738-3.pom.md5</A>  10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050421.162738-3.pom.sha1">wagon-providers-1.0-alpha-3-20050421.162738-3.pom.sha1</A> 10-May-2006 00:11     1k  
+
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050422.075233-4.pom">wagon-providers-1.0-alpha-3-20050422.075233-4.pom</A>      08-Nov-2005 17:25     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050422.075233-4.pom.md5">wagon-providers-1.0-alpha-3-20050422.075233-4.pom.md5</A>  10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050422.075233-4.pom.sha1">wagon-providers-1.0-alpha-3-20050422.075233-4.pom.sha1</A> 10-May-2006 00:11     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050429.051847-5.pom">wagon-providers-1.0-alpha-3-20050429.051847-5.pom</A>      08-Nov-2005 17:25     1k  
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050429.051847-5.pom.md5">wagon-providers-1.0-alpha-3-20050429.051847-5.pom.md5</A>  10-May-2006 00:11     1k  
+
+<IMG SRC="/icons/unknown.gif" ALT="[   ]"> <A HREF="wagon-providers-1.0-alpha-3-20050429.051847-5.pom.sha1">wagon-providers-1.0-alpha-3-20050429.051847-5.pom.sha1</A> 10-May-2006 00:11     1k  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-providers/">wagon-providers/</A>                                       19-Jun-2006 08:26      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-scm/">wagon-scm/</A>                                             07-May-2006 19:40      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-ssh-external/">wagon-ssh-external/</A>                                    19-Jun-2006 08:34      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-ssh/">wagon-ssh/</A>                                             19-Jun-2006 08:35      -  
+
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon-webdav/">wagon-webdav/</A>                                          19-Jun-2006 08:38      -  
+<IMG SRC="/icons/folder.gif" ALT="[DIR]"> <A HREF="wagon/">wagon/</A>                                                 19-Jun-2006 08:17      -  
+</PRE><HR>
+<ADDRESS>Apache/1.3.33 Server at www.ibiblio.org Port 80</ADDRESS>
+</BODY></HTML>

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/ibiblio-wagon.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/ibiblio-wagon.html
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/jetty-wagon.html
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/jetty-wagon.html?rev=430944&view=auto
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/jetty-wagon.html (added)
+++ maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/jetty-wagon.html Fri Aug 11 19:02:20 2006
@@ -0,0 +1,71 @@
+<HTML><HEAD><TITLE>Directory: /maven2/</TITLE></HEAD><BODY>
+<H1>Directory: /maven2/</H1><TABLE BORDER=0><TR><TD><A HREF=/maven2/org/apache/maven/wagon/../>Parent Directory</A></TD><TD></TD><TD></TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-2.pom">wagon-1.0-alpha-2.pom&nbsp;</TD><TD ALIGN=right>3k&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-2.pom.asc">wagon-1.0-alpha-2.pom.asc&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-2.pom.md5">wagon-1.0-alpha-2.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-2.pom.sha1">wagon-1.0-alpha-2.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050413.021234-4.pom">wagon-1.0-alpha-3-20050413.021234-4.pom&nbsp;</TD><TD ALIGN=right>3k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050413.021234-4.pom.md5">wagon-1.0-alpha-3-20050413.021234-4.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050413.021234-4.pom.sha1">wagon-1.0-alpha-3-20050413.021234-4.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050419.043745-5.pom">wagon-1.0-alpha-3-20050419.043745-5.pom&nbsp;</TD><TD ALIGN=right>3k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050419.043745-5.pom.md5">wagon-1.0-alpha-3-20050419.043745-5.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050419.043745-5.pom.sha1">wagon-1.0-alpha-3-20050419.043745-5.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050419.044035-6.pom">wagon-1.0-alpha-3-20050419.044035-6.pom&nbsp;</TD><TD ALIGN=right>3k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050419.044035-6.pom.md5">wagon-1.0-alpha-3-20050419.044035-6.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050419.044035-6.pom.sha1">wagon-1.0-alpha-3-20050419.044035-6.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050421.162738-7.pom">wagon-1.0-alpha-3-20050421.162738-7.pom&nbsp;</TD><TD ALIGN=right>3k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050421.162738-7.pom.md5">wagon-1.0-alpha-3-20050421.162738-7.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050421.162738-7.pom.sha1">wagon-1.0-alpha-3-20050421.162738-7.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050422.075233-8.pom">wagon-1.0-alpha-3-20050422.075233-8.pom&nbsp;</TD><TD ALIGN=right>3k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050422.075233-8.pom.md5">wagon-1.0-alpha-3-20050422.075233-8.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050422.075233-8.pom.sha1">wagon-1.0-alpha-3-20050422.075233-8.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050429.051847-9.pom">wagon-1.0-alpha-3-20050429.051847-9.pom&nbsp;</TD><TD ALIGN=right>3k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050429.051847-9.pom.md5">wagon-1.0-alpha-3-20050429.051847-9.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-1.0-alpha-3-20050429.051847-9.pom.sha1">wagon-1.0-alpha-3-20050429.051847-9.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-file/">wagon-file/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:27</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-ftp/">wagon-ftp/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:28</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-http-lightweight/">wagon-http-lightweight/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:30</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-http/">wagon-http/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:32</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-lightweight-http/">wagon-lightweight-http/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-provider-api/">wagon-provider-api/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:20</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-provider-test/">wagon-provider-test/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-provider/">wagon-provider/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>13-May-2006 04:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-2.pom">wagon-providers-1.0-alpha-2.pom&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-2.pom.asc">wagon-providers-1.0-alpha-2.pom.asc&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-2.pom.md5">wagon-providers-1.0-alpha-2.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-2.pom.sha1">wagon-providers-1.0-alpha-2.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>07-May-2006 18:31</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050407.202848-1.pom">wagon-providers-1.0-alpha-3-20050407.202848-1.pom&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050407.202848-1.pom.md5">wagon-providers-1.0-alpha-3-20050407.202848-1.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050407.202848-1.pom.sha1">wagon-providers-1.0-alpha-3-20050407.202848-1.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050419.044035-2.pom">wagon-providers-1.0-alpha-3-20050419.044035-2.pom&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050419.044035-2.pom.md5">wagon-providers-1.0-alpha-3-20050419.044035-2.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050419.044035-2.pom.sha1">wagon-providers-1.0-alpha-3-20050419.044035-2.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050421.162738-3.pom">wagon-providers-1.0-alpha-3-20050421.162738-3.pom&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050421.162738-3.pom.md5">wagon-providers-1.0-alpha-3-20050421.162738-3.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050421.162738-3.pom.sha1">wagon-providers-1.0-alpha-3-20050421.162738-3.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050422.075233-4.pom">wagon-providers-1.0-alpha-3-20050422.075233-4.pom&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050422.075233-4.pom.md5">wagon-providers-1.0-alpha-3-20050422.075233-4.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050422.075233-4.pom.sha1">wagon-providers-1.0-alpha-3-20050422.075233-4.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050429.051847-5.pom">wagon-providers-1.0-alpha-3-20050429.051847-5.pom&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>08-Nov-2005 17:25</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050429.051847-5.pom.md5">wagon-providers-1.0-alpha-3-20050429.051847-5.pom.md5&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers-1.0-alpha-3-20050429.051847-5.pom.sha1">wagon-providers-1.0-alpha-3-20050429.051847-5.pom.sha1&nbsp;</TD><TD ALIGN=right>1k&nbsp;</TD><TD>10-May-2006 00:11</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-providers/">wagon-providers/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:26</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-scm/">wagon-scm/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>07-May-2006 19:40</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-ssh-external/">wagon-ssh-external/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:34</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-ssh/">wagon-ssh/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:35</TD></TR>
+
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon-webdav/">wagon-webdav/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:38</TD></TR>
+<TR><TD><A HREF="/maven2/org/apache/maven/wagon/wagon/">wagon/&nbsp;</TD><TD ALIGN=right>-&nbsp;</TD><TD>19-Jun-2006 08:17</TD></TR>
+
+
+</TABLE>

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/jetty-wagon.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/jetty-wagon.html
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/mirror-wagon.html
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/mirror-wagon.html?rev=430944&view=auto
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/mirror-wagon.html (added)
+++ maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/mirror-wagon.html Fri Aug 11 19:02:20 2006
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+<title>Index of /maven2/org/apache/maven/wagon/</title>
+<link rel="stylesheet" type="text/css" href="/css/mirror.css" />
+</head>
+<body>
+<h2>Index of /maven2/org/apache/maven/wagon/</h2>
+<div class="list">
+<table cellpadding="0" cellspacing="0">
+<thead><tr><th class="n">Name</th><th class="m">Last Modified</th><th class="s">Size</th><th class="t">Type</th></tr></thead>
+
+<tbody>
+<tr><td class="n"><a href="../">Parent Directory</a>/</td><td class="m">&nbsp;</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon/">wagon</a>/</td><td class="m">2006-Aug-04 20:01:55</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-file/">wagon-file</a>/</td><td class="m">2006-Aug-04 21:01:11</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+
+<tr><td class="n"><a href="wagon-ftp/">wagon-ftp</a>/</td><td class="m">2006-Aug-04 21:01:11</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-http/">wagon-http</a>/</td><td class="m">2006-Aug-04 21:01:11</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-http-lightweight/">wagon-http-lightweight</a>/</td><td class="m">2006-Aug-04 21:01:11</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+
+<tr><td class="n"><a href="wagon-lightweight-http/">wagon-lightweight-http</a>/</td><td class="m">2005-Nov-01 05:17:24</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-provider/">wagon-provider</a>/</td><td class="m">2006-Aug-04 20:01:55</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-provider-api/">wagon-provider-api</a>/</td><td class="m">2006-Aug-04 21:01:11</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+
+<tr><td class="n"><a href="wagon-provider-test/">wagon-provider-test</a>/</td><td class="m">2006-Aug-04 21:01:11</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-providers/">wagon-providers</a>/</td><td class="m">2006-Aug-04 20:01:55</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-scm/">wagon-scm</a>/</td><td class="m">2006-Aug-04 20:01:55</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+
+<tr><td class="n"><a href="wagon-ssh/">wagon-ssh</a>/</td><td class="m">2006-Aug-04 20:01:55</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-ssh-external/">wagon-ssh-external</a>/</td><td class="m">2006-Aug-04 20:01:55</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+<tr><td class="n"><a href="wagon-webdav/">wagon-webdav</a>/</td><td class="m">2006-Aug-04 20:01:55</td><td class="s">- &nbsp;</td><td class="t">Directory</td></tr>
+
+<tr><td class="n"><a href="wagon-1.0-alpha-2.pom">wagon-1.0-alpha-2.pom</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">3.1K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-2.pom.asc">wagon-1.0-alpha-2.pom.asc</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-2.pom.md5">wagon-1.0-alpha-2.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-2.pom.sha1">wagon-1.0-alpha-2.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050413.021234-4.pom">wagon-1.0-alpha-3-20050413.021234-4.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">3.1K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050413.021234-4.pom.md5">wagon-1.0-alpha-3-20050413.021234-4.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050413.021234-4.pom.sha1">wagon-1.0-alpha-3-20050413.021234-4.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050419.043745-5.pom">wagon-1.0-alpha-3-20050419.043745-5.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">3.1K</td><td class="t">text/xml</td></tr>
+
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050419.043745-5.pom.md5">wagon-1.0-alpha-3-20050419.043745-5.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050419.043745-5.pom.sha1">wagon-1.0-alpha-3-20050419.043745-5.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050419.044035-6.pom">wagon-1.0-alpha-3-20050419.044035-6.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">3.1K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050419.044035-6.pom.md5">wagon-1.0-alpha-3-20050419.044035-6.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050419.044035-6.pom.sha1">wagon-1.0-alpha-3-20050419.044035-6.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050421.162738-7.pom">wagon-1.0-alpha-3-20050421.162738-7.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">3.1K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050421.162738-7.pom.md5">wagon-1.0-alpha-3-20050421.162738-7.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050421.162738-7.pom.sha1">wagon-1.0-alpha-3-20050421.162738-7.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050422.075233-8.pom">wagon-1.0-alpha-3-20050422.075233-8.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">3.1K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050422.075233-8.pom.md5">wagon-1.0-alpha-3-20050422.075233-8.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050422.075233-8.pom.sha1">wagon-1.0-alpha-3-20050422.075233-8.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050429.051847-9.pom">wagon-1.0-alpha-3-20050429.051847-9.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">3.1K</td><td class="t">text/xml</td></tr>
+
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050429.051847-9.pom.md5">wagon-1.0-alpha-3-20050429.051847-9.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-1.0-alpha-3-20050429.051847-9.pom.sha1">wagon-1.0-alpha-3-20050429.051847-9.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-2.pom">wagon-providers-1.0-alpha-2.pom</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.9K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-2.pom.asc">wagon-providers-1.0-alpha-2.pom.asc</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-2.pom.md5">wagon-providers-1.0-alpha-2.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-2.pom.sha1">wagon-providers-1.0-alpha-2.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050407.202848-1.pom">wagon-providers-1.0-alpha-3-20050407.202848-1.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">0.9K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050407.202848-1.pom.md5">wagon-providers-1.0-alpha-3-20050407.202848-1.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050407.202848-1.pom.sha1">wagon-providers-1.0-alpha-3-20050407.202848-1.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050419.044035-2.pom">wagon-providers-1.0-alpha-3-20050419.044035-2.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">0.9K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050419.044035-2.pom.md5">wagon-providers-1.0-alpha-3-20050419.044035-2.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050419.044035-2.pom.sha1">wagon-providers-1.0-alpha-3-20050419.044035-2.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050421.162738-3.pom">wagon-providers-1.0-alpha-3-20050421.162738-3.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">0.9K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050421.162738-3.pom.md5">wagon-providers-1.0-alpha-3-20050421.162738-3.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050421.162738-3.pom.sha1">wagon-providers-1.0-alpha-3-20050421.162738-3.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050422.075233-4.pom">wagon-providers-1.0-alpha-3-20050422.075233-4.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">0.9K</td><td class="t">text/xml</td></tr>
+
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050422.075233-4.pom.md5">wagon-providers-1.0-alpha-3-20050422.075233-4.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050422.075233-4.pom.sha1">wagon-providers-1.0-alpha-3-20050422.075233-4.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050429.051847-5.pom">wagon-providers-1.0-alpha-3-20050429.051847-5.pom</a></td><td class="m">2005-Nov-08 22:25:32</td><td class="s">1.0K</td><td class="t">text/xml</td></tr>
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050429.051847-5.pom.md5">wagon-providers-1.0-alpha-3-20050429.051847-5.pom.md5</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+
+<tr><td class="n"><a href="wagon-providers-1.0-alpha-3-20050429.051847-5.pom.sha1">wagon-providers-1.0-alpha-3-20050429.051847-5.pom.sha1</a></td><td class="m">2006-Aug-04 21:01:11</td><td class="s">0.1K</td><td class="t">text/plain</td></tr>
+</tbody>
+</table>
+</div>
+<div class="foot"><br />ibiblio.org - Mirror Site<br />
+<a href="mailto:mirror.admin@mirror.com">Mirror Admin</a></div>
+
+</body>
+</html>

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/mirror-wagon.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/wagon/trunk/wagon-providers/wagon-http-shared/src/test/resources/filelistings/mirror-wagon.html
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/wagon/trunk/wagon-providers/wagon-http/pom.xml
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-http/pom.xml?rev=430944&r1=430943&r2=430944&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-http/pom.xml (original)
+++ maven/wagon/trunk/wagon-providers/wagon-http/pom.xml Fri Aug 11 19:02:20 2006
@@ -1,4 +1,8 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<?xml version="1.0" encoding="UTF-8"?>
+<project 
+  xmlns="http://maven.apache.org/POM/4.0.0" 
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <parent>
     <artifactId>wagon-providers</artifactId>
     <groupId>org.apache.maven.wagon</groupId>
@@ -18,6 +22,11 @@
 
   <dependencies>
     <dependency>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>wagon-http-shared</artifactId>
+      <version>${pom.version}</version>
+    </dependency>
+    <dependency>
       <groupId>plexus</groupId>
       <artifactId>plexus-jetty-httpd</artifactId>
       <version>1.0-beta-1</version>
@@ -41,4 +50,4 @@
       <version>2.0.2</version>
     </dependency>
   </dependencies>
-</project>
\ No newline at end of file
+</project>



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


Mime
View raw message