We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add support for loading Source from classpath. I use this feature a lot in Spring. Here is Spring Version:
http://static.springsource.org/spring/docs/3.2.x/javadoc-api/org/springframework/core/io/ClassPathResource.html
i propose to add function scala.io.Source.fromClassPath()
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-7514?orig=1 Reporter: Radim Kolar (hsn) Affected Versions: 2.10.1
Sorry, something went wrong.
Stephen Compall (s11001001) said: How would this improve matters over the existing Source.fromURL?
Radim Kolar (hsn) said: fromURL supports spring like "classpath:package.resource" ?
@retronym said: Nope, it doesn't. I agree that this is a useful enhancement.
Radim Kolar (hsn) said: My most used way to use that is with ClassPathResource(String path, Class<?> clazz)
It creates classpathresource with name relative to supplied class
@SethTisue said: scala/scala#4538 was submitted by Eugene Dzhurinsky, but against 2.11. a new PR could be submitted against 2.12
@adriaanm said: scala/scala#4561
jdevelop
No branches or pull requests
Add support for loading Source from classpath. I use this feature a lot in Spring. Here is Spring Version:
http://static.springsource.org/spring/docs/3.2.x/javadoc-api/org/springframework/core/io/ClassPathResource.html
i propose to add function scala.io.Source.fromClassPath()
The text was updated successfully, but these errors were encountered: