I am bringing this back here so as not to inter-le...
# announce
l
I am bringing this back here so as not to inter-leave with the aurora folks. I reloaded the resource jars in the repl, but instead of using
scala -cp $jar
, I used
:require
within the repl. Pants 1.1.0rc0:
Copy code
mateo$ scala
scala> :require libs/src.resources.resources-0.jar
Added '/Users/mateo/dev/foursquare.web/.pants.d/bundle/jvm/f7708621b991/src.jvm.com.foursquare.app.bin.foursquare-bundle/c70af053ecb4/src.jvm.com.foursquare.app.bin.foursquare-bundle/libs/src.resources.resources-0.jar' to classpath.
scala> val url = getClass.getResource("/resource-dir")
url: java.net.URL = jar:file:/Users/mateo/dev/foursquare.web/.pants.d/bundle/jvm/f7708621b991/src.jvm.com.foursquare.app.bin.foursquare-bundle/c70af053ecb4/src.jvm.com.foursquare.app.bin.foursquare-bundle/libs/src.resources.resources-0.jar!/resource-dir
Pants 1.0.1
Copy code
mateo$ scala
scala> :require libs/src.resources.resources-0.jar
Added '/Users/mateo/dev/1/dist/foursquare-bundle/libs/src.resources.resources-0.jar' to classpath.
scala> val url = getClass.getResource("/resource-dir")
url: java.net.URL = jar:file:/Users/mateo/dev/1/dist/foursquare-bundle/libs/src.resources.resources-0.jar!/resource-dir
It doesn't seem weird to that the jar is actual a symlink under pants.d, but the resource itself pointing to pants.d