Author: bodewig Date: Thu Jul 21 14:32:59 2011 New Revision: 1149192 URL: http://svn.apache.org/viewvc?rev=1149192&view=rev Log: ArArchiveInputStream already supports reading the GNU format. COMPRESS-141
Added: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ar/ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStreamTest.java (with props) Added: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStreamTest.java URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStreamTest.java?rev=1149192&view=auto ============================================================================== --- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStreamTest.java (added) +++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStreamTest.java Thu Jul 21 14:32:59 2011 @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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. + * + */ + +package org.apache.commons.compress.archivers.ar; + +import java.util.ArrayList; +import org.apache.commons.compress.AbstractTestCase; + +public class ArArchiveInputStreamTest extends AbstractTestCase { + + public void testReadLongNamesGNU() throws Exception { + ArrayList l = new ArrayList(); + l.add("this_is_a_long_file_name.txt"); + checkArchiveContent(getFile("longfile_gnu.ar"), l); + } + +} Propchange: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStreamTest.java ------------------------------------------------------------------------------ svn:eol-style = native