<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
</dependencies>
<build>
<plugins>
import org.apache.maven.archiva.configuration.io.xpp3.ConfigurationXpp3Reader;
import org.apache.maven.archiva.configuration.io.xpp3.ConfigurationXpp3Writer;
import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.util.IOUtil;
+import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
}
finally
{
- IOUtil.close( fileReader );
+ IOUtils.closeQuietly( fileReader );
}
}
return configuration;
}
finally
{
- IOUtil.close( fileWriter );
+ IOUtils.closeQuietly( fileWriter );
}
}
<artifactId>plexus-i18n</artifactId>
<version>1.0-beta-6</version>
</dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
</dependencies>
</project>
import org.codehaus.plexus.digest.DigesterException;
import org.codehaus.plexus.i18n.I18N;
import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.IOUtil;
+import org.apache.commons.io.IOUtils;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import java.io.File;
}
finally
{
- IOUtil.close( writer );
+ IOUtils.closeQuietly( writer );
}
}
}
}
finally
{
- IOUtil.close( fileReader );
+ IOUtils.closeQuietly( fileReader );
}
return metadata;
}
}
finally
{
- IOUtil.close( writer );
+ IOUtils.closeQuietly( writer );
}
}
}
<version>1.2_Java1.3</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
</dependencies>
</project>
import org.codehaus.plexus.digest.DigesterException;
import org.codehaus.plexus.logging.AbstractLogEnabled;
import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.IOUtil;
+import org.apache.commons.io.IOUtils;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import java.io.File;
}
finally
{
- IOUtil.close( fileReader );
+ IOUtils.closeQuietly( fileReader );
}
}
}
finally
{
- IOUtil.close( fileReader );
+ IOUtils.closeQuietly( fileReader );
}
if ( changed )
}
finally
{
- IOUtil.close( fileWriter );
+ IOUtils.closeQuietly( fileWriter );
}
}
}
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
</dependencies>
<build>
<plugins>
import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
import org.apache.maven.archiva.reporting.processor.ArtifactReportProcessor;
import org.apache.maven.archiva.reporting.database.ReportingDatabase;
-import org.codehaus.plexus.util.IOUtil;
+import org.apache.commons.io.IOUtils;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import java.io.File;
}
finally
{
- IOUtil.close( reader );
+ IOUtils.closeQuietly( reader );
}
}
}
import org.apache.maven.project.MavenProjectBuilder;
import org.apache.maven.archiva.reporting.processor.ArtifactReportProcessor;
import org.apache.maven.archiva.reporting.database.ReportingDatabase;
-import org.codehaus.plexus.util.IOUtil;
+import org.apache.commons.io.IOUtils;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import java.io.File;
}
finally
{
- IOUtil.close( isReader );
+ IOUtils.closeQuietly( isReader );
}
return model;
}
import org.apache.maven.archiva.reporting.database.ReportingDatabase;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.codehaus.plexus.logging.AbstractLogEnabled;
-import org.codehaus.plexus.util.IOUtil;
+import org.apache.commons.io.IOUtils;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import java.io.File;
}
finally
{
- IOUtil.close( fileReader );
+ IOUtils.closeQuietly( fileReader );
}
}
}
finally
{
- IOUtil.close( fileWriter );
+ IOUtils.closeQuietly( fileWriter );
}
}
}
import org.codehaus.plexus.digest.Digester;
import org.codehaus.plexus.digest.DigesterException;
import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.IOUtil;
+import org.apache.commons.io.IOUtils;
import org.apache.maven.archiva.reporting.AbstractRepositoryReportsTestCase;
import java.io.BufferedOutputStream;
BufferedReader in = new BufferedReader( new FileReader( filename1 ) );
out.putNextEntry( new JarEntry( filename1 ) );
- IOUtil.copy( in, out );
+ IOUtils.copy( in, out );
in.close();
out.close();
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
</dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ </dependency>
</dependencies>
</project>
import org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter;
import org.codehaus.plexus.logging.AbstractLogEnabled;
import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.IOUtil;
+import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.FileWriter;
}
finally
{
- IOUtil.close( writer );
+ IOUtils.closeQuietly( writer );
}
try
<artifactId>commons-lang</artifactId>
<version>2.2</version>
</dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.2</version>
+ </dependency>
</dependencies>
</dependencyManagement>
<reporting>