Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[maven-release-plugin] copy for tag nexus-1.0.2
git-svn-id: file:///opt/svn/repositories/sonatype.org/nexus/tags/nexus-1.0.2@1630 2aa8b3fc-8ebb-4439-a84f-95066eaea8ab
  • Loading branch information
mpowers committed Sep 24, 2008
2 parents 2c786cb + abc0cf0 commit a0fce46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Expand Up @@ -26,7 +26,6 @@
import java.io.FileInputStream;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.security.DigestInputStream;
import java.security.MessageDigest;
Expand Down Expand Up @@ -375,15 +374,10 @@ protected File getRepositoryLocalStorageAsFile( Repository repository )

repoRoot = new File( url.toURI() );
}
catch ( URISyntaxException e )
catch ( Throwable t )
{
repoRoot = new File( url.getPath() );
}
catch ( MalformedURLException e )
{
// Try just a regular file
repoRoot = new File( repository.getLocalUrl() );
}
}

return repoRoot;
Expand Down
Expand Up @@ -27,7 +27,6 @@
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
Expand Down Expand Up @@ -95,7 +94,7 @@ public File getBaseDir( Repository repository )
{
file = new File( url.toURI() );
}
catch ( URISyntaxException e )
catch ( Throwable t )
{
file = new File( url.getPath() );
}
Expand Down

0 comments on commit a0fce46

Please sign in to comment.