Пример #1
0
 public boolean addVersion(
     final Project project, final RedmineRepositoryConfig config, final String version)
     throws IOException, SAXException {
   LOGGER.info("Redmine add Version: " + version);
   Version ver = new Version(_redmineProject, version);
   try {
     _mgr.createVersion(ver);
     return true;
   } catch (RedmineException e) {
     e.printStackTrace();
     return false;
   }
 }
Пример #2
0
  public boolean addProject(final Project project, final RedmineRepositoryConfig config)
      throws IOException, SAXException {
    LOGGER.info("Redmine add Project: " + project.getName());
    _redmineProject = new com.taskadapter.redmineapi.bean.Project();
    _redmineProject.setName(project.getName());
    _redmineProject.setIdentifier(getRedmineId(project));
    _redmineProject.setDescription(project.getDescription());

    try {
      _redmineProject = _mgr.createProject(_redmineProject);
      return true;
    } catch (RedmineException e) {
      e.printStackTrace();
      return false;
    }
  }