/** * Resolves a tag to a repository url. * Will not use the {@link SvnScmProviderRepository#getTagBase()} during resolution. * * @param repositoryUrl string url for the repository * @param tag tag name * @return * @see #resolveUrl(String,String,String,ScmBranch) */ public static String resolveTagUrl( String repositoryUrl, ScmTag tag ) { return resolveUrl( repositoryUrl, null, SVN_TAGS, tag ); }
/** * Resolves a tag to a repository url. * Will not use the {@link SvnScmProviderRepository#getTagBase()} during resolution. * * @param repositoryUrl string url for the repository * @param tag tag name * @return * @see #resolveUrl(String,String,String,ScmBranch) */ public static String resolveTagUrl( String repositoryUrl, ScmTag tag ) { return resolveUrl( repositoryUrl, null, SVN_TAGS, tag ); }
/** * {@inheritDoc} */ @Override public String translateTagUrl( String url, String tag, String tagBase ) { return SvnTagBranchUtils.resolveUrl( url, tagBase, SvnTagBranchUtils.SVN_TAGS, new ScmTag( tag ) ); }
/** * {@inheritDoc} */ @Override public String translateBranchUrl( String url, String branchName, String branchBase ) { return SvnTagBranchUtils.resolveUrl( url, branchBase, SvnTagBranchUtils.SVN_BRANCHES, new ScmBranch( branchName ) ); }
/** * Resolves a branch name to a repository url. * Will not use the {@link SvnScmProviderRepository#getTagBase()} during resolution. * * @param repositoryUrl string url for the repository * @param branch branch name * @return * @see #resolveUrl(String,String,String,ScmBranch) */ public static String resolveBranchUrl( String repositoryUrl, ScmBranch branch ) { return resolveUrl( repositoryUrl, resolveBranchBase( repositoryUrl ), SVN_BRANCHES, branch ); }
/** * Resolves a branch name to a repository url. * Will not use the {@link SvnScmProviderRepository#getTagBase()} during resolution. * * @param repositoryUrl string url for the repository * @param branch branch name * @return * @see #resolveUrl(String,String,String,ScmBranch) */ public static String resolveBranchUrl( String repositoryUrl, ScmBranch branch ) { return resolveUrl( repositoryUrl, resolveBranchBase( repositoryUrl ), SVN_BRANCHES, branch ); }
/** * Resolves a tag to a repository url. * By supplying the repository to this function (rather than calling {@link #resolveTagUrl(String,ScmTag)} * the resolution can use the repository's tagBase to override the default tag location. * * @param repository the repository to use as a base for tag resolution * @param tag tag name * @return * @see #resolveUrl(String,String,String,ScmBranch) */ public static String resolveTagUrl( SvnScmProviderRepository repository, ScmTag tag ) { return resolveUrl( repository.getUrl(), repository.getTagBase(), SVN_TAGS, tag ); }
/** * Resolves a branch name to a repository url. * By supplying the repository to this function (rather than calling {@link #resolveBranchUrl(String,ScmBranch)} * the resolution can use the repository's tagBase to override the default tag location. * * @param repository the repository to use as a base for tag resolution * @param branch tag name * @return * @see #resolveUrl(String,String,String,ScmBranch) */ public static String resolveBranchUrl( SvnScmProviderRepository repository, ScmBranch branch ) { return resolveUrl( repository.getUrl(), repository.getBranchBase(), SVN_BRANCHES, branch ); }
/** * Resolves a tag to a repository url. * By supplying the repository to this function (rather than calling {@link #resolveTagUrl(String,ScmTag)} * the resolution can use the repository's tagBase to override the default tag location. * * @param repository the repository to use as a base for tag resolution * @param tag tag name * @return * @see #resolveUrl(String,String,String,ScmBranch) */ public static String resolveTagUrl( SvnScmProviderRepository repository, ScmTag tag ) { return resolveUrl( repository.getUrl(), repository.getTagBase(), SVN_TAGS, tag ); }
/** * Resolves a branch name to a repository url. * By supplying the repository to this function (rather than calling {@link #resolveBranchUrl(String,ScmBranch)} * the resolution can use the repository's tagBase to override the default tag location. * * @param repository the repository to use as a base for tag resolution * @param branch tag name * @return * @see #resolveUrl(String,String,String,ScmBranch) */ public static String resolveBranchUrl( SvnScmProviderRepository repository, ScmBranch branch ) { return resolveUrl( repository.getUrl(), repository.getBranchBase(), SVN_BRANCHES, branch ); }