[
https://issues.apache.org/jira/browse/GROOVY-9478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066997#comment-17066997
]
Eric Milles commented on GROOVY-9478:
-------------------------------------
Not sure if this is covered in Groovy's Ant documentation, but you can run
scripts using the built-in script tag with the help of the groovy-jsr223 module.
{code:xml}
<script language="groovy">
<classpath>
<fileset dir="${dir.libraries}" includes="**/groovy*.jar" />
</classpath>
System.setProperty('foobar', 'true')
</script>
{code}
It supports source, encoding, etc.
https://ant.apache.org/manual/Tasks/script.html
> Groovy Ant task could support Ant resources
> -------------------------------------------
>
> Key: GROOVY-9478
> URL: https://issues.apache.org/jira/browse/GROOVY-9478
> Project: Groovy
> Issue Type: Improvement
> Components: Ant integration
> Reporter: Paul King
> Assignee: Paul King
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)