Package de.taimos.maven_redmine_plugin.model

Examples of de.taimos.maven_redmine_plugin.model.RedmineException


      final HTTPRequest req = this.createRequest("/versions/" + version.getId() + ".json");
      req.header(WSConstants.HEADER_CONTENT_TYPE, Redmine.APPLICATION_JSON);
      final HttpResponse put = req.body(body).put();
      if (!WS.isStatusOK(put)) {
        this.log.error(WS.getResponseAsString(put));
        throw new RedmineException(Redmine.STATUS_CHANGE_FAILED);
      }
    } catch (final Exception e) {
      this.log.error(e);
      throw new RedmineException(Redmine.STATUS_CHANGE_FAILED, e);
    }
  }
View Full Code Here


      final HTTPRequest req = this.createRequest("/versions/" + version.getId() + ".json");
      req.header(WSConstants.HEADER_CONTENT_TYPE, Redmine.APPLICATION_JSON);
      final HttpResponse put = req.body(body).put();
      if (!WS.isStatusOK(put)) {
        this.log.error(WS.getResponseAsString(put));
        throw new RedmineException(Redmine.STATUS_CHANGE_FAILED);
      }
    } catch (final Exception e) {
      this.log.error(e);
      throw new RedmineException(Redmine.STATUS_CHANGE_FAILED, e);
    }
  }
View Full Code Here

      final HTTPRequest req = this.createRequest("/projects/" + project + "/versions.json");
      req.header(WSConstants.HEADER_CONTENT_TYPE, Redmine.APPLICATION_JSON);
      final HttpResponse put = req.body(body).post();
      if (!WS.isStatusOK(put)) {
        this.log.error(WS.getResponseAsString(put));
        throw new RedmineException(Redmine.STATUS_CHANGE_FAILED);
      }
    } catch (final Exception e) {
      e.printStackTrace();
      throw new RedmineException(Redmine.STATUS_CHANGE_FAILED, e);
    }
  }
View Full Code Here

TOP

Related Classes of de.taimos.maven_redmine_plugin.model.RedmineException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.