Skip to content

SI-9396 Runner computes path only once #4627

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

Merged
merged 1 commit into from
Jul 16, 2015
Merged

Conversation

som-snytt
Copy link
Contributor

Change the classpath URL list in the runner settings to a lazy val.

Also clean up PathResolver's use of settings.classpath so
that the default is defined in one place, namely in settings,
where it can also be overridden.

The previous definition in both places was the same, namely,
sys.env.getOrElse("CLASSPATH", "."), but the history of the
code path is fraught.

Change the classpath URL list in the runner settings to a lazy val.

Also clean up PathResolver's use of settings.classpath so
that the default is defined in one place, namely in settings,
where it can also be overridden.

The previous definition in both places was the same, namely,
`sys.env.getOrElse("CLASSPATH", ".")`, but the history of the
code path is fraught.
@scala-jenkins scala-jenkins added this to the 2.12.0-M3 milestone Jul 13, 2015
@retronym
Copy link
Member

LGTM. I tracked the genesis of def classpathURLs back to 455ee61, and it doesn't seem to need to be a method from the context of that commit.

lrytz added a commit that referenced this pull request Jul 16, 2015
SI-9396 Runner computes path only once
@lrytz lrytz merged commit 743e8ba into scala:2.12.x Jul 16, 2015
@som-snytt som-snytt deleted the issue/9396 branch October 25, 2015 08:01
@adriaanm adriaanm added 2.12 and removed 2.12 labels Oct 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants