[GitHub] [groovy] eric-milles commented on issue #597: GROOVY-8305: Fix default Ivy settings file for local m2 path

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [groovy] eric-milles commented on issue #597: GROOVY-8305: Fix default Ivy settings file for local m2 path

GitBox
eric-milles commented on issue #597: GROOVY-8305: Fix default Ivy settings file for local m2 path
URL: https://github.com/apache/groovy/pull/597#issuecomment-551064285
 
 
   Last line below is proposed addition to `GrapeIvy.groovy` that would allow you to use "${user.home.url}" in the default settings xml.
   ```groovy
       GrapeIvy() {
           // if we are already initialized, quit
           if (enableGrapes) return
   
           // start ivy
           Message.defaultLogger = new DefaultMessageLogger(System.getProperty('ivy.message.logger.level', '-1') as int)
           settings = new IvySettings()
           settings.setVariable('user.home.url', new File(System.getProperty('user.home')).toURI().toURL() as String)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services