groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [1/2] incubator-groovy git commit: Update GrapeIvy.groovy: set ivyInstance to IvyContext, for speed up
Date Fri, 16 Oct 2015 12:14:55 GMT
Repository: incubator-groovy
Updated Branches:
  refs/heads/master 0e7f67b87 -> 7802fb0e0


Update GrapeIvy.groovy: set ivyInstance to IvyContext, for speed up

When custom grape.config is present(-Dgrape.config=...), there are no need load default ivysettings!

if you want see the diff,run with -Dgrape.config=... and -Divy.message.logger.level=4


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/de9c3404
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/de9c3404
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/de9c3404

Branch: refs/heads/master
Commit: de9c3404e5506e962ea3641872937877bed7c328
Parents: 0e7f67b
Author: qxo <qxodream@gmail.com>
Authored: Sun Jul 19 01:52:39 2015 +0800
Committer: paulk <paulk@asert.com.au>
Committed: Fri Oct 16 22:14:15 2015 +1000

----------------------------------------------------------------------
 src/main/groovy/grape/GrapeIvy.groovy | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/de9c3404/src/main/groovy/grape/GrapeIvy.groovy
----------------------------------------------------------------------
diff --git a/src/main/groovy/grape/GrapeIvy.groovy b/src/main/groovy/grape/GrapeIvy.groovy
index ef12154..0aaab39 100644
--- a/src/main/groovy/grape/GrapeIvy.groovy
+++ b/src/main/groovy/grape/GrapeIvy.groovy
@@ -109,6 +109,7 @@ class GrapeIvy implements GrapeEngine {
 
         settings.setVariable("ivy.default.configuration.m2compatible", "true")
         ivyInstance = Ivy.newInstance(settings)
+        org.apache.ivy.core.IvyContext.getContext().setIvy(ivyInstance);
         resolvedDependencies = []
         downloadedArtifacts = []
 


Mime
View raw message