Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-08-17 19:33:36 +0000
committerfbecker2010-08-17 19:33:36 +0000
commit2fc00cfbda7e986d5cba23e352d14ddc47a5202d (patch)
treebd505cc2b21beb2449db9dbb1d44f160d2cab6ed /org.eclipse.mylyn.bugzilla.core
parenta924f210562d9be46be72a32efb91e0ab4527c3c (diff)
downloadorg.eclipse.mylyn.tasks-2fc00cfbda7e986d5cba23e352d14ddc47a5202d.tar.gz
org.eclipse.mylyn.tasks-2fc00cfbda7e986d5cba23e352d14ddc47a5202d.tar.xz
org.eclipse.mylyn.tasks-2fc00cfbda7e986d5cba23e352d14ddc47a5202d.zip
ASSIGNED - bug 314744: support defaultmilestone from Product.get XMLRPC
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314744
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
index 6be626b5e..ffbc2c82d 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
@@ -224,9 +224,11 @@ public class BugzillaClient {
CustomTransitionManager validTransitions = new CustomTransitionManager();
String transitionsFileName = configParameters.get(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE);
- if (!validTransitions.parse(transitionsFileName)) {
- throw new CoreException(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN,
- "Invalide Transition File Content")); //$NON-NLS-1$
+ if (transitionsFileName != null && !transitionsFileName.equals("")) {
+ if (!validTransitions.parse(transitionsFileName)) {
+ throw new CoreException(new Status(IStatus.WARNING, BugzillaCorePlugin.ID_PLUGIN,
+ "Invalide Transition File Content")); //$NON-NLS-1$
+ }
}
}
@@ -711,9 +713,6 @@ public class BugzillaClient {
xmlRpcClient = new BugzillaXmlRpcClient(webLocation);
}
- if (!repositoryConfiguration.getProducts().isEmpty()) {
- repositoryConfiguration.setRepositoryUrl(repositoryUrl.toString());
- }
if (xmlRpcClient != null) {
xmlRpcClient.updateConfiguration(monitor, repositoryConfiguration,
configParameters.get(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE));
@@ -721,6 +720,9 @@ public class BugzillaClient {
repositoryConfiguration.setValidTransitions(monitor,
configParameters.get(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE), null);
}
+ if (!repositoryConfiguration.getProducts().isEmpty()) {
+ repositoryConfiguration.setRepositoryUrl(repositoryUrl.toString());
+ }
if (!repositoryConfiguration.getProducts().isEmpty()) {
return repositoryConfiguration;

Back to the top