If you just need to use a native Java library, you can import it like so and no
network communications is needed:
import java:guava.ImmutableList;
If you do something like this instead:
import imop:code.google.com/guava.ImmutableList;
It means that the ImmutableList is actually hosted at google, and therefore no
instances of that will be created in your computer. You can only use them
remotely. Note that Meso does not download source code over the network. It
only acquires an abstract definition of the imported resource for type checking.
On Nov 21, 2011, at 1:43 PM, Reinier Zwitserloot wrote:
> Let's say I don't need any runtime web interaction, i.e. I'm not building a
> twitter client but I just want, say, google Guava to use in my app, so I do
> something like:
>
> import imop:code.google.com/guava/guava.ImmutableList;
>
> does this mean that the compiler will make a call to the web to resolve this?
> Will it do so every time, or does it create some sort of cache? What about
> runtime? Will it still need a web connection to run this app or will it run
> without making any net requests?
>
> What about versioning of guava.ImmutableList?
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.