Examples of addRelease()


Examples of com.agilebooster.data.entity.Project.addRelease()

            em.persist(release);
            em.flush();

            //Update Project.
            Project project = release.getProject();
            project.addRelease(release);
            em.merge(project);

            //Commit.
            em.getTransaction().commit();
        } catch (Exception ex) {
View Full Code Here

Examples of com.k42b3.kadabra.record.Project.addRelease()

      // write log
      this.writeLog(project);

      // add release
      project.addRelease();

      project.close();

      console.printf("Project release successful%n");
    }
View Full Code Here

Examples of org.evolizer.versioncontrol.cvs.model.entities.Revision.addRelease()

            if (fAllocatedReleases.containsKey(relName) && hashedRevisions.containsKey(revNumber)) {
                Release release = fAllocatedReleases.get(relName);
                Revision revision = hashedRevisions.get(revNumber);
                release.addRevision(revision);
                revision.addRelease(release);
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.evolizer.versioncontrol.svn.model.entities.SVNRevision.addRelease()

            if (f != null) {
                rel.addRevision(f);
                // I check that the file version doesn't refer to a deleted file
                if (f.getState() == null) {
                    while (f != null) {
                        f.addRelease(rel);
                        f = (SVNRevision) f.getPreviousRevision();
                    }
                }
            } else {
                rel.addRevision(tmp);
View Full Code Here

Examples of org.sonar.updatecenter.common.Plugin.addRelease()

  @Test
  public void download_from_url() throws Exception {
    Plugin test = new Plugin("test");
    Release test10 = new Release(test, "1.0").setDownloadUrl("http://server/test-1.0.jar");
    test.addRelease(test10);

    when(updateCenter.findInstallablePlugins("foo", Version.create("1.0"))).thenReturn(newArrayList(test10));

    pluginDownloader.start();
    pluginDownloader.download("foo", Version.create("1.0"));
View Full Code Here

Examples of org.sonar.updatecenter.common.Plugin.addRelease()

   */
  @Test
  public void download_from_redirect_url() throws Exception {
    Plugin test = new Plugin("plugin-test");
    Release test10 = new Release(test, "1.0").setDownloadUrl("http://server/redirect?r=release&g=test&a=test&v=1.0&e=jar");
    test.addRelease(test10);

    when(updateCenter.findInstallablePlugins("foo", Version.create("1.0"))).thenReturn(newArrayList(test10));

    pluginDownloader.start();
    pluginDownloader.download("foo", Version.create("1.0"));
View Full Code Here

Examples of org.sonar.updatecenter.common.Plugin.addRelease()

  public void download_from_file() throws Exception {
    Plugin test = new Plugin("test");
    File file = testFolder.newFile("test-1.0.jar");
    file.createNewFile();
    Release test10 = new Release(test, "1.0").setDownloadUrl("file://" + FilenameUtils.separatorsToUnix(file.getCanonicalPath()));
    test.addRelease(test10);

    when(updateCenter.findInstallablePlugins("foo", Version.create("1.0"))).thenReturn(newArrayList(test10));

    pluginDownloader.start();
    pluginDownloader.download("foo", Version.create("1.0"));
View Full Code Here

Examples of org.sonar.updatecenter.common.Plugin.addRelease()

  @Test
  public void throw_exception_if_could_not_download() throws Exception {
    Plugin test = new Plugin("test");
    Release test10 = new Release(test, "1.0").setDownloadUrl("file://not_found");
    test.addRelease(test10);

    when(updateCenter.findInstallablePlugins("foo", Version.create("1.0"))).thenReturn(newArrayList(test10));

    pluginDownloader.start();
    try {
View Full Code Here

Examples of org.sonar.updatecenter.common.Plugin.addRelease()

  @Test
  public void throw_exception_if_download_fail() throws Exception {
    Plugin test = new Plugin("test");
    Release test10 = new Release(test, "1.0").setDownloadUrl("http://server/test-1.0.jar");
    test.addRelease(test10);
    when(updateCenter.findInstallablePlugins("foo", Version.create("1.0"))).thenReturn(newArrayList(test10));

    doThrow(new RuntimeException()).when(httpDownloader).download(any(URI.class), any(File.class));

    pluginDownloader.start();
View Full Code Here

Examples of org.sonar.updatecenter.common.Plugin.addRelease()

  // SONAR-5011
  @Test
  public void download_common_transitive_dependency() throws Exception {
    Plugin test1 = new Plugin("test1");
    Release test1R = new Release(test1, "1.0").setDownloadUrl("http://server/test1-1.0.jar");
    test1.addRelease(test1R);

    Plugin test2 = new Plugin("test2");
    Release test2R = new Release(test2, "1.0").setDownloadUrl("http://server/test2-1.0.jar");
    test2.addRelease(test2R);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.