Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-10-18 23:36:42 +0000
committerspingel2010-10-18 23:36:42 +0000
commitccd62723c12920f4cef0a12d9a673fd7383b623b (patch)
treefe4730b093b094db65fabed1185354a9bf839930 /org.eclipse.mylyn.tasks.core
parent2a781f966d4a4803783f87dc1eb799574b8d363f (diff)
downloadorg.eclipse.mylyn.tasks-ccd62723c12920f4cef0a12d9a673fd7383b623b.tar.gz
org.eclipse.mylyn.tasks-ccd62723c12920f4cef0a12d9a673fd7383b623b.tar.xz
org.eclipse.mylyn.tasks-ccd62723c12920f4cef0a12d9a673fd7383b623b.zip
NEW - bug 316835: [api] add a flag to TaskRepository to track if it was added automatically
https://bugs.eclipse.org/bugs/show_bug.cgi?id=316835
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTemplate.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTemplate.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTemplate.java
index 412834ba1..6aab29b2c 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTemplate.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/RepositoryTemplate.java
@@ -15,6 +15,8 @@ package org.eclipse.mylyn.tasks.core;
import java.util.LinkedHashMap;
import java.util.Map;
+import org.eclipse.mylyn.internal.tasks.core.TaskRepositoryManager;
+
/**
* Specifies attributes for a task repository.
*
@@ -50,7 +52,7 @@ public final class RepositoryTemplate {
String newTaskUrl, String taskPrefix, String taskQuery, String newAccountUrl, boolean anonymous,
boolean addAutomatically) {
this.label = label;
- this.repositoryUrl = repositoryUrl;
+ this.repositoryUrl = TaskRepositoryManager.stripSlashes(repositoryUrl);
this.newTaskUrl = newTaskUrl;
this.taskPrefixUrl = taskPrefix;
this.taskQueryUrl = taskQuery;

Back to the top