Skip to content

Commit

Permalink
fix refactoring gone bad
Browse files Browse the repository at this point in the history
  • Loading branch information
bamboo committed Feb 1, 2013
1 parent 64072aa commit c7d50e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NuGetDependencyResolverFactory {

static DependencyResolver newNuGetDependencyResolver(NuGetPackageCache packageCache = new DefaultNuGetPackageCache()) {
def repository = new NuGetRepository(packageCache)
def resolver = new RepositoryResolver(name: 'kaizen.plugins.nuget', repository: repository)
def resolver = new RepositoryResolver(name: 'nuget', repository: repository)
resolver.addIvyPattern("[organisation]:[module]:[revision]:[type]:[artifact]:[ext]")
resolver.addArtifactPattern("[organisation]:[module]:[revision]:[type]:[artifact]:[ext]")
resolver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class NuGetRepository extends AbstractRepository {
}

NuGetPackage downloadNuGetPackageFor(String packageId, String revision) {
def packageUrl = new URL("https://kaizen.plugins.nuget.org/api/v2/package/$packageId/$revision")
def packageUrl = new URL("https://nuget.org/api/v2/package/$packageId/$revision")
def tmpPackageFile = File.createTempFile(packageId, "-revision.nupkg")
transferResource(new URLResource(packageUrl), packageUrl, tmpPackageFile)
cacheNuGetPackage(packageId, revision, tmpPackageFile)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package kaizen.plugins.nuget.cache

class DefaultNuGetPackageCache implements NuGetPackageCache {

final File cacheDir = new File(System.properties['user.home'], '.kaizen/kaizen.plugins.nuget/packages')
final File cacheDir = new File(System.properties['user.home'], '.kaizen/nuget/packages')

NuGetPackage queryPackage(String packageName, String revision) {
def packageCache = cacheDirectoryFor(packageName, revision)
Expand Down

0 comments on commit c7d50e6

Please sign in to comment.