On 2013-03-20 23:17:30, Kannan wrote:
> Eric,
> I tried it, but it doesn't seem like the environment variable is getting
> picked up when running JUnit %. For e.g., I am setting a path like this ...
>
> org.eclim.java.junit.envvars=["ENV_A=/a/b/c/d", "ENV_B=e/f/g"]
>
> Any way to troubleshoot?
I tested the functionality by creating a simple test that printed out
the env vars I was passing in:
System.out.println("ENV_A=" + System.getenv("ENV_A"));
System.out.println("ENV_B=" + System.getenv("ENV_B"));
and ran that via :JUnit. Can you replicate the lack of env var
accessibility with a small test case?
> On Friday, March 8, 2013 8:17:18 PM UTC-8, Kannan wrote:
> >
> > In Eclipse, we need to add environment variables to Run configuration so
> > that it gets picked up while running or debugging tests. How do we do that
> > in eclim? When I run a test using :JUnit, it fails because it can't find an
> > environment variable. I have them defined in shell (by exporting them), so
> > Eclipse does not get them.
--
eric