From 90d42eb9e08e5e0fe540de670c2c5daa1f9f3dc8 Mon Sep 17 00:00:00 2001 From: Steffen Pingel Date: Fri, 15 Jul 2011 19:55:42 +0200 Subject: bug 352240: support reading credentials.properties from home directory https://bugs.eclipse.org/bugs/show_bug.cgi?id=352240 --- .../src/org/eclipse/mylyn/tests/util/TestUtil.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'org.eclipse.mylyn.tests.util/src/org/eclipse') diff --git a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java index 1fa5698bf..c896ad013 100644 --- a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java +++ b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java @@ -69,10 +69,7 @@ public class TestUtil { throw new AssertionFailedError(); } } catch (AssertionFailedError e) { - file = getFile(TestUtil.class, "../org.eclipse.mylyn.context.tests/credentials.properties"); - // lookup may have reverted to this plug-in, try to lookup file in org.eclipse.context.tests plug-in - //File path = new File(file.getParentFile().getParentFile(), "org.eclipse.mylyn.context.tests"); - //file = new File(path, file.getName()); + file = new File(new File(System.getProperty("user.home"), ".mylyn"), "credentials.properties"); } } else { file = new File(filename); @@ -80,7 +77,7 @@ public class TestUtil { properties.load(new FileInputStream(file)); } catch (Exception e) { AssertionFailedError error = new AssertionFailedError( - "must define credentials in /credentials.properties"); + "must define credentials in $HOME/.mylyn/credentials.properties"); error.initCause(e); throw error; } -- cgit v1.2.3