Examples of updateProject()


Examples of org.apache.archiva.metadata.repository.MetadataRepository.updateProject()

            if ( createVersionMetadata )
            {
                metadataRepository.updateProjectVersion( repoId, project.getNamespace(), project.getId(),
                                                         versionMetadata );
            }
            metadataRepository.updateProject( repoId, project );
            repositorySession.save();
        }
        catch ( MetadataRepositoryException e )
        {
            log.warn( "Error occurred persisting metadata for artifact:{} (repository:{}); message: {}" + e.getMessage(), new Object[] { path, repoId, e.getMessage() }, e );
View Full Code Here

Examples of org.apache.archiva.metadata.repository.MetadataRepository.updateProject()

            if ( createVersionMetadata )
            {
                metadataRepository.updateProjectVersion( repoId, project.getNamespace(), project.getId(),
                                                         versionMetadata );
            }
            metadataRepository.updateProject( repoId, project );
            repositorySession.save();
        }
        catch ( MetadataRepositoryException e )
        {
            log.warn(
View Full Code Here

Examples of org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportClient.updateProject()

    {
        try
        {
            MasterBuildAgentTransportClient client = new MasterBuildAgentTransportClient( new URL(
                buildAgentConfigurationService.getContinuumServerUrl() ) );
            client.updateProject( project );
        }
        catch ( MalformedURLException e )
        {
            log.error(
                "Invalid continuum server URL '" + buildAgentConfigurationService.getContinuumServerUrl() + "'" );
View Full Code Here

Examples of org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportClient.updateProject()

    {
        try
        {
            MasterBuildAgentTransportClient client = new MasterBuildAgentTransportClient(
                new URL( buildAgentConfigurationService.getContinuumServerUrl() ) );
            client.updateProject( project );
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid continuum server URL '" + buildAgentConfigurationService.getContinuumServerUrl() + "'" );
            throw new ContinuumException( "Invalid continuum server URL '" + buildAgentConfigurationService.getContinuumServerUrl() + "'" );
View Full Code Here

Examples of org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportClient.updateProject()

        try
        {
            MasterBuildAgentTransportClient client =
                new MasterBuildAgentTransportClient( new URL( buildAgentConfigurationService.getContinuumServerUrl() ) )
                ;
            client.updateProject( project );
        }
        catch ( MalformedURLException e )
        {
            log.error(
                "Invalid continuum server URL '" + buildAgentConfigurationService.getContinuumServerUrl() + "'" );
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.updateProject()

    if (info instanceof UserInfo) {
      store.updateUser((UserInfo) info);
    } else if (info instanceof WorkspaceInfo) {
      store.updateWorkspace((WorkspaceInfo) info);
    } else if (info instanceof ProjectInfo) {
      store.updateProject((ProjectInfo) info);
    }
  }

  private boolean removeMatchingProperties(MetadataInfo info, String prefix) {
    final Map<String, String> properties = info.getProperties();
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.updateProject()

        source.move(projectInfo.getProjectStore(), EFS.OVERWRITE, null);
        created = true;
      } else {
        //a project move is simply a rename
        projectInfo.setFullName(destinationName);
        metaStore.updateProject(projectInfo);
      }

      //location doesn't change on move project
      URI baseLocation = getURI(request);
      JSONObject result = ProjectInfoResourceHandler.toJSON(workspace, projectInfo, baseLocation);
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.updateProject()

    // move the project by renaming the project by changing the projectName
    String movedProjectName = "Moved Orion Project";
    projectInfo.setFullName(movedProjectName);

    // update the project
    metaStore.updateProject(projectInfo);

    // read the project back again
    ProjectInfo readProjectInfo = metaStore.readProject(workspaceInfo.getUniqueId(), projectInfo.getFullName());
    assertNotNull(readProjectInfo);
    assertTrue(readProjectInfo.getFullName().equals(movedProjectName));
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.updateProject()

    // move the project by renaming the project by changing the projectName
    String movedProjectName = "anthony | Moved Orion Project";
    projectInfo.setFullName(movedProjectName);

    // update the project
    metaStore.updateProject(projectInfo);

    // read the project back again
    ProjectInfo readProjectInfo = metaStore.readProject(workspaceInfo.getUniqueId(), projectInfo.getFullName());
    assertNotNull(readProjectInfo);
    assertTrue(readProjectInfo.getFullName().equals(movedProjectName));
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.updateProject()

    }
    assertTrue("the file in the project folder should exist.", file.fetchInfo().exists());

    // update the project with the content location
    projectInfo.setContentLocation(projectFolder.toLocalFile(EFS.NONE, null).toURI());
    metaStore.updateProject(projectInfo);

    // move the project by renaming the project by changing the projectName
    String movedProjectName = "Moved Orion Project";
    projectInfo.setFullName(movedProjectName);
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.