Examples of SVNURL


Examples of org.tigris.subversion.svnclientadapter.SVNUrl

      ISVNClientAdapter client = location.getSVNClient();

      // TODO follow svn:externals property
      // ISVNProperty[] properties = client.getProperties(folderUrl);

      SVNUrl folderUrl = new SVNUrl(svnUrl);
      SVNUrl pomUrl = folderUrl.appendPath("/" + IMavenConstants.POM_FILE_NAME);

      return client.getContent(pomUrl, SVNRevision.getRevision(revision));
     
    } catch(SVNException ex) {
      throw new CoreException(new Status(IStatus.ERROR, IMavenConstants.PLUGIN_ID, 0, ex.getMessage(), ex));
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNUrl

    if(!scmUrl.startsWith(SubclipseHandler.SCM_SVN_PREFIX)) {
      return false;
    }
   
    try {
      new SVNUrl(getSvnUrl(scmUrl));
      return true;
    } catch(MalformedURLException ex) {
      return false;
    }
  }
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNUrl

 
  @SuppressWarnings("rawtypes")
  public Object getAdapter(Object adaptable, Class adapterType) {
    if(ScmUrl.class.equals(adapterType)) {
      if(adaptable instanceof ISVNRemoteFolder) {
        SVNUrl svnUrl = ((ISVNRemoteFolder) adaptable).getUrl();

        return adapt(svnUrl);
      } else if(adaptable instanceof ISVNRepositoryLocation) {
        SVNUrl svnUrl = ((ISVNRepositoryLocation) adaptable).getUrl();

        return adapt(svnUrl);
      }
    }
    return null;
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNUrl

  }

  private ScmUrl adapt(SVNUrl svnUrl) {
    String scmUrl = SubclipseHandler.SCM_SVN_PREFIX + svnUrl.toString();

    SVNUrl parent = svnUrl.getParent();
    String scmParentUrl = null;
    if(parent != null) {
      scmParentUrl = SubclipseHandler.SCM_SVN_PREFIX + parent.toString();
    }

    return new ScmUrl(scmUrl, scmParentUrl);
  }
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNUrl

                    File tempDiffFile = IOUtils.generateTmpFile( FOLDER_TMP_DIFF, DIFF_SUFFIX);
                    monitor.worked(100);
                    String[] baseSVNUrl = RbSVNUrlUtils.getBaseSVNUrlForDiffUpload(resourceTmp, false);
                    String stopUrl = baseSVNUrl[2];
                    String startUrl = baseSVNUrl[2];
                    SVNUrl fromUrl = new SVNUrl(stopUrl);
                    SVNUrl toUrl = new SVNUrl(startUrl);
                    try {
                        SVNRevision[] fromAndToRevision = RbSVNUrlUtils.formateSVNRevisionUnify(start, stop);
                        SVNRevision startVersion = fromAndToRevision[0];
                        SVNRevision stopVersion = fromAndToRevision[1];
                        //修复版本号
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNUrl

           
            try {
                monitor.worked(100);
               
                //生成diff
                SVNUrl fromUrl = new SVNUrl(stopUrl);
                SVNUrl toUrl = new SVNUrl(startUrl);
                SVNRevision[] fromAndToRevision = RbSVNUrlUtils.formateSVNRevisionUnify(start, stop);
                ISVNLocalResource localResource = null;
                if( null != resource ){
                    localResource = SVNWorkspaceRoot.getSVNResourceFor(resource);
                }
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNUrl

            }
            return svnMaxRevisionNumber;
        }
        try {
            String svnUrlString = getSVNUrlForResouce( resource );
            SVNUrl svnUrl = new SVNUrl(svnUrlString);
            ISVNLogMessage[] svnLogMessages = getPriorSVNRevision( svnUrl, svnMinRevisionNumber, svnMaxRevisionNumber );
           
            if( null != svnLogMessages && svnLogMessages.length > 0 ){
                for( ISVNLogMessage svnLogMessage : svnLogMessages ){
                    SVNRevision.Number svnRevisionNumber = svnLogMessage.getRevision();
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNUrl

        try {
            VCSResourceInfo info = fileList.getProjectInfo();
            loc = SVNRepositoryLocation
                .fromString(fileList.getRepositoryRoot());
            SVNUrl url = new SVNUrl(info.url);

            ISVNRemoteFolder remote[] = { new RemoteFolder(loc, url,
                SVNRevision.HEAD) };
            IProject[] local = { SVNWorkspaceRoot.getProject(newProjectName) };
            // FIXME ndh: Use a CheckoutCommand instead. We should not depend on
View Full Code Here

Examples of org.tigris.subversion.svnclientadapter.SVNUrl

            return;
        SVNWorkspaceRoot root;
        SVNTeamProvider provider = (SVNTeamProvider) RepositoryProvider
            .getProvider(resource.getProject());
        root = provider.getSVNWorkspaceRoot();
        SVNUrl svnURL;
        try {
            svnURL = new SVNUrl(url);
        } catch (MalformedURLException e) {
            log.debug("URL malformed", e);
            return;
        }
        SwitchToUrlCommand cmd = new SwitchToUrlCommand(root, resource, svnURL,
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNURL

     * @return SVNURL
     */
    public static SVNURL createSVNURL( String url,
                                       String sourceName ) {

        SVNURL theUrl;
        try {
            theUrl = SVNURL.parseURIDecoded(url);
        } catch (SVNException e) {
            // protocol not supported by this connector
            throw new RepositorySourceException(sourceName,
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.