[ https://issues.apache.org/jira/browse/GROOVY-7548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721470#comment-14721470 ]
Paul King commented on GROOVY-7548: ----------------------------------- I have put in a conservative patch to enable this feature. The system properties are only set if grapes are enabled. Also, the system properties are set within the context of the script or class containing the @Grab, so if there is a security manager in play, the same rules apply as if the system properties were set explicitly in the script. The consequence of these decisions is that at least for now, if using a proxy or tweaking SSL networking properties, you have to set them in both the script and on the command line. If this proves to be too restrictive we can explore removing this restriction in the future. > @Grab should provide a way to set system properties > --------------------------------------------------- > > Key: GROOVY-7548 > URL: https://issues.apache.org/jira/browse/GROOVY-7548 > Project: Groovy > Issue Type: Bug > Reporter: Paul King > > @Grab provides no mechanism for setting system properties which might be > required for downloading dependencies via SSL or a proxy. With an increasing > number of services moving to the cloud, this greatly reduces the usefulness > of scripts to enterprise organizations. Such a mechanism could easily be > added by adding an extra attribute, e.g. {{systemProperties}} to @GrabConfig > and supplying a constant list of property name, property value pairs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)