merged -r1102210 from 1.3.x branch (MRM-1469)

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1102235 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2011-05-12 10:30:23 +00:00
parent 65aec72c4d
commit a5ec5dddc6
1 changed files with 2 additions and 6 deletions

View File

@ -28,6 +28,7 @@ import org.apache.archiva.checksum.ChecksummedFile;
import org.apache.archiva.scheduler.ArchivaTaskScheduler; import org.apache.archiva.scheduler.ArchivaTaskScheduler;
import org.apache.archiva.scheduler.repository.RepositoryTask; import org.apache.archiva.scheduler.repository.RepositoryTask;
import org.apache.commons.io.FilenameUtils; import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.maven.archiva.common.utils.VersionComparator; import org.apache.maven.archiva.common.utils.VersionComparator;
import org.apache.maven.archiva.common.utils.VersionUtil; import org.apache.maven.archiva.common.utils.VersionUtil;
@ -457,12 +458,7 @@ public class UploadAction
try try
{ {
int i; IOUtils.copy( input, out );
while ( ( i = input.read() ) != -1 )
{
out.write( i );
}
out.flush();
} }
finally finally
{ {