~ubuntu-branches/debian/sid/wagon2/sid

« back to all changes in this revision

Viewing changes to wagon-tcks/wagon-tck-http/src/main/java/org/apache/maven/wagon/tck/http/util/TestUtil.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2015-09-02 23:46:43 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20150902234643-byu832r11djlzjbs
Tags: 2.9-1
* Team upload.
* New upstream release
  - Refreshed the patches
* Removed the build dependency on libmaven-enforcer-plugin-java
* No longer build and install the unused wagon-scm and wagon-ssh modules
  to reduce the dependencies of libwagon2-java.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
import org.apache.log4j.Logger;
36
36
import org.codehaus.plexus.util.IOUtil;
37
37
 
 
38
/**
 
39
 * 
 
40
 */
38
41
public final class TestUtil
39
42
{
40
 
    private static Logger logger = Logger.getLogger( TestUtil.class );
 
43
    private static final Logger LOGGER = Logger.getLogger( TestUtil.class );
41
44
 
42
 
    private static final Map<String, File> bases = new HashMap<String, File>();
 
45
    private static final Map<String, File> BASES = new HashMap<String, File>();
43
46
 
44
47
    private TestUtil()
45
48
    {
64
67
            int endIdx = url.indexOf( "!" );
65
68
            url = url.substring( startIdx, endIdx );
66
69
 
67
 
            File base = bases.get( url );
 
70
            File base = BASES.get( url );
68
71
            if ( base == null )
69
72
            {
70
73
                File urlFile = new File( url );
72
75
                base = new File( "target/tck-resources/" + urlFile.getName() );
73
76
                base.getParentFile().mkdirs();
74
77
 
75
 
                logger.info( "unpacking test resources in jar: " + url );
 
78
                LOGGER.info( "unpacking test resources in jar: " + url );
76
79
                JarFile jf = null;
77
80
                try
78
81
                {
108
111
                        }
109
112
                    }
110
113
 
111
 
                    bases.put( url, base );
 
114
                    BASES.put( url, base );
112
115
                }
113
116
                finally
114
117
                {
120
123
                        }
121
124
                        catch ( Exception e )
122
125
                        {
 
126
                            // ignore
123
127
                        }
124
128
                    }
125
129
                }