Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2011-07-15 13:55:42 -0400
committerSteffen Pingel2011-07-15 13:58:27 -0400
commit90d42eb9e08e5e0fe540de670c2c5daa1f9f3dc8 (patch)
tree9956a863a78de42ae84f8feca762cc947cfe3b95
parent45e0c789dfa93d2b20065131aaf57a0a93d213d6 (diff)
downloadorg.eclipse.mylyn.tasks-90d42eb9e08e5e0fe540de670c2c5daa1f9f3dc8.tar.gz
org.eclipse.mylyn.tasks-90d42eb9e08e5e0fe540de670c2c5daa1f9f3dc8.tar.xz
org.eclipse.mylyn.tasks-90d42eb9e08e5e0fe540de670c2c5daa1f9f3dc8.zip
bug 352240: support reading credentials.properties from home directory
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352240
-rw-r--r--org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestUtil.java7
1 files changed, 2 insertions, 5 deletions
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 <plug-in dir>/credentials.properties");
+ "must define credentials in $HOME/.mylyn/credentials.properties");
error.initCause(e);
throw error;
}

Back to the top