hudson.Util.removeTrailingSlash()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(239)

本文整理了Java中hudson.Util.removeTrailingSlash()方法的一些代码示例,展示了Util.removeTrailingSlash()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.removeTrailingSlash()方法的具体详情如下:
包路径:hudson.Util
类名称:Util
方法名:removeTrailingSlash

Util.removeTrailingSlash介绍

暂无

代码示例

代码示例来源:origin: org.jvnet.hudson.plugins/subversion

  1. @DataBoundConstructor
  2. public ListSubversionTagsParameterDefinition(String name, String tagsDir, String uuid) {
  3. super(name, ResourceBundleHolder.get(ListSubversionTagsParameterDefinition.class).format("TagDescription"));
  4. this.tagsDir = Util.removeTrailingSlash(tagsDir);
  5. if(uuid == null || uuid.length() == 0) {
  6. this.uuid = UUID.randomUUID();
  7. }
  8. else {
  9. this.uuid = UUID.fromString(uuid);
  10. }
  11. }

代码示例来源:origin: org.hudsonci.plugins/subversion

  1. @DataBoundConstructor
  2. public ListSubversionTagsParameterDefinition(String name, String tagsDir, String uuid) {
  3. super(name, ResourceBundleHolder.get(ListSubversionTagsParameterDefinition.class).format("TagDescription"));
  4. this.tagsDir = Util.removeTrailingSlash(tagsDir);
  5. if (uuid == null || uuid.length() == 0) {
  6. this.uuid = UUID.randomUUID();
  7. } else {
  8. this.uuid = UUID.fromString(uuid);
  9. }
  10. }

代码示例来源:origin: org.jvnet.hudson.plugins/subversion

  1. @Override
  2. public void handleDirEntry(SVNDirEntry dirEntry) throws SVNException {
  3. dirs.add(Util.removeTrailingSlash(dirEntry.getName()));
  4. }

代码示例来源:origin: jenkinsci/subversion-plugin

  1. @DataBoundConstructor
  2. public ListSubversionTagsParameterDefinition(String name, String tagsDir, String credentialsId, String tagsFilter, String defaultValue, String maxTags, boolean reverseByDate, boolean reverseByName) {
  3. super(name, ResourceBundleHolder.get(ListSubversionTagsParameterDefinition.class).format("TagDescription"));
  4. this.tagsDir = Util.removeTrailingSlash(tagsDir);
  5. this.tagsFilter = tagsFilter;
  6. this.reverseByDate = reverseByDate;
  7. this.reverseByName = reverseByName;
  8. this.defaultValue = defaultValue;
  9. this.maxTags = maxTags;
  10. this.credentialsId = credentialsId;
  11. }

代码示例来源:origin: org.hudsonci.plugins/subversion

  1. @Override
  2. public void handleDirEntry(SVNDirEntry dirEntry) throws SVNException {
  3. if (!dirEntry.getKind().equals(SVNNodeKind.DIR)) {
  4. return;
  5. }
  6. dirs.add(Util.removeTrailingSlash(dirEntry.getName()));
  7. }
  8. }

代码示例来源:origin: org.hudsonci.plugins/subversion

  1. @Override
  2. public void handleDirEntry(final SVNDirEntry dirEntry) throws SVNException {
  3. if (!dirEntry.getKind().equals(SVNNodeKind.DIR)) {
  4. return;
  5. }
  6. String directoryName = Util.removeTrailingSlash(dirEntry.getName());
  7. dirs.put(Long.valueOf(dirEntry.getRevision()), directoryName);
  8. }
  9. }

代码示例来源:origin: jenkinsci/subversion-plugin

  1. @DataBoundConstructor
  2. public ModuleLocation(String remote, String credentialsId, String local, String depthOption, boolean ignoreExternalsOption,
  3. boolean cancelProcessOnExternalsFail) {
  4. this.remote = Util.removeTrailingSlash(Util.fixNull(remote).trim());
  5. this.credentialsId = credentialsId;
  6. this.local = fixEmptyAndTrim(local);
  7. this.depthOption = StringUtils.isEmpty(depthOption) ? SVNDepth.INFINITY.getName() : depthOption;
  8. this.ignoreExternalsOption = ignoreExternalsOption;
  9. this.cancelProcessOnExternalsFail = cancelProcessOnExternalsFail;
  10. }

代码示例来源:origin: org.hudsonci.plugins/subversion

  1. @DataBoundConstructor
  2. public ModuleLocation(String remote, String local, String depthOption, boolean ignoreExternalsOption) {
  3. this.remote = Util.removeTrailingSlash(Util.fixNull(remote).trim());
  4. this.local = Util.fixEmptyAndTrim(local);
  5. this.depthOption = StringUtils.isEmpty(depthOption) ? SVNDepth.INFINITY.getName()
  6. : depthOption;
  7. this.ignoreExternalsOption = ignoreExternalsOption;
  8. }

代码示例来源:origin: org.jvnet.hudson.plugins/subversion

  1. @DataBoundConstructor
  2. public ModuleLocation(String remote, String local, String depthOption, boolean ignoreExternalsOption) {
  3. this.remote = Util.removeTrailingSlash(Util.fixNull(remote).trim());
  4. this.local = Util.fixEmptyAndTrim(local);
  5. this.depthOption = StringUtils.isEmpty(depthOption) ? SVNDepth.INFINITY.getName()
  6. : depthOption;
  7. this.ignoreExternalsOption = ignoreExternalsOption;
  8. }

代码示例来源:origin: org.hudsonci.plugins/subversion

  1. String remoteLoc = Util.removeTrailingSlash(tokens.nextToken());

代码示例来源:origin: org.hudsonci.plugins/subversion

  1. public static List<ModuleLocation> parse(String[] remoteLocations, String[] localLocations,
  2. String[] depthOptions, boolean[] isIgnoreExternals) {
  3. List<ModuleLocation> modules = new ArrayList<ModuleLocation>();
  4. if (remoteLocations != null && localLocations != null) {
  5. int entries = Math.min(remoteLocations.length, localLocations.length);
  6. for (int i = 0; i < entries; i++) {
  7. // the remote (repository) location
  8. String remoteLoc = Util.nullify(remoteLocations[i]);
  9. if (remoteLoc != null) {// null if skipped
  10. remoteLoc = Util.removeTrailingSlash(remoteLoc.trim());
  11. modules.add(new ModuleLocation(remoteLoc, Util.nullify(localLocations[i]),
  12. depthOptions != null ? depthOptions[i] : null,
  13. isIgnoreExternals != null && isIgnoreExternals[i]));
  14. }
  15. }
  16. }
  17. return modules;
  18. }

代码示例来源:origin: org.jvnet.hudson.plugins/subversion

  1. String remoteLoc = Util.removeTrailingSlash(tokens.nextToken());

代码示例来源:origin: org.jvnet.hudson.plugins/subversion

  1. public static List<ModuleLocation> parse(String[] remoteLocations, String[] localLocations,
  2. String[] depthOptions, boolean[] isIgnoreExternals) {
  3. List<ModuleLocation> modules = new ArrayList<ModuleLocation>();
  4. if (remoteLocations != null && localLocations != null) {
  5. int entries = Math.min(remoteLocations.length, localLocations.length);
  6. for (int i = 0; i < entries; i++) {
  7. // the remote (repository) location
  8. String remoteLoc = Util.nullify(remoteLocations[i]);
  9. if (remoteLoc != null) {// null if skipped
  10. remoteLoc = Util.removeTrailingSlash(remoteLoc.trim());
  11. modules.add(new ModuleLocation(remoteLoc, Util.nullify(localLocations[i]),
  12. depthOptions != null ? depthOptions[i] : null,
  13. isIgnoreExternals != null && isIgnoreExternals[i]));
  14. }
  15. }
  16. }
  17. return modules;
  18. }
  19. }

代码示例来源:origin: jenkinsci/subversion-plugin

  1. public static List<ModuleLocation> parse(String[] remoteLocations, String[] credentialIds,
  2. String[] localLocations, String[] depthOptions,
  3. boolean[] isIgnoreExternals, boolean[] cancelProcessOnExternalsFails) {
  4. List<ModuleLocation> modules = new ArrayList<ModuleLocation>();
  5. if (remoteLocations != null && localLocations != null) {
  6. int entries = Math.min(remoteLocations.length, localLocations.length);
  7. for (int i = 0; i < entries; i++) {
  8. // the remote (repository) location
  9. String remoteLoc = Util.nullify(remoteLocations[i]);
  10. if (remoteLoc != null) {// null if skipped
  11. remoteLoc = Util.removeTrailingSlash(remoteLoc.trim());
  12. modules.add(new ModuleLocation(remoteLoc,
  13. credentialIds != null && credentialIds.length > i ? credentialIds[i] : null,
  14. Util.nullify(localLocations[i]),
  15. depthOptions != null ? depthOptions[i] : null,
  16. isIgnoreExternals != null && isIgnoreExternals[i],
  17. cancelProcessOnExternalsFails != null && cancelProcessOnExternalsFails[i]));
  18. }
  19. }
  20. }
  21. return modules;
  22. }

代码示例来源:origin: jenkinsci/subversion-plugin

  1. String remoteLoc = Util.removeTrailingSlash(tokens.nextToken());

相关文章