Skip to content

Allow script files to be executed as filenames as well as URLs #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
keeganwitt opened this issue Mar 11, 2015 · 1 comment
Closed
Assignees
Milestone

Comments

@keeganwitt
Copy link
Member

This feature lets you use this style

<script>${project.basedir}/src/main/resources/groovyScripts/helloWorld.groovy</script>

In addition to the URL style

<script>file:///${project.basedir}/src/main/resources/groovyScripts/helloWorld.groovy</script>
@keeganwitt keeganwitt self-assigned this Mar 11, 2015
@keeganwitt keeganwitt added this to the 1.6 milestone Mar 11, 2015
@keeganwitt keeganwitt changed the title Allow script files to be executed as filenames instead of URLs Allow script files to be executed as filenames as well as URLs Jun 5, 2015
@keeganwitt
Copy link
Member Author

I implemented this by trying

  1. as URL
  2. as File
  3. as script string
    In that order. However, at some point in the future, I may reverse the order of 1 and 2 if 2 becomes the more common usage. The current order was chosen to preserve current performance with existing usages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant