@Test void testExtractRepoName() { String somerepoName = step.extractRepoName("https: assertEquals("somerepo" + PROCESS_INSTANCE_ID, somerepoName); String otherrepoName = step.extractRepoName("https: assertEquals("otherrepo" + PROCESS_INSTANCE_ID, otherrepoName); }
protected String extractRepoName(String gitUri, String processId) { if (!gitUri.endsWith(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)) { return gitUri.substring(gitUri.lastIndexOf(PATH_SEPARATOR) + 1) + processId; } String repoLocation = gitUri.substring(0, gitUri.lastIndexOf(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)); return repoLocation.substring(repoLocation.lastIndexOf(PATH_SEPARATOR) + 1) + processId; }
ProcessGitSourceStep extends SyncFlowableStep { protected String extractRepoName(String gitUri, String processId) { if (!gitUri.endsWith(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)) { return gitUri.substring(gitUri.lastIndexOf(PATH_SEPARATOR) + 1) + processId; } String repoLocation = gitUri.substring(0, gitUri.lastIndexOf(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)); return repoLocation.substring(repoLocation.lastIndexOf(PATH_SEPARATOR) + 1) + processId; } }
ProcessGitSourceStep extends SyncFlowableStep { protected String extractRepoName(String gitUri, String processId) { if (!gitUri.endsWith(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)) { return gitUri.substring(gitUri.lastIndexOf(PATH_SEPARATOR) + 1) + processId; } String repoLocation = gitUri.substring(0, gitUri.lastIndexOf(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)); return repoLocation.substring(repoLocation.lastIndexOf(PATH_SEPARATOR) + 1) + processId; }  }
ProcessGitSourceStep extends SyncFlowableStep { protected String extractRepoName(String gitUri, String processId) { if (!gitUri.endsWith(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)) { return gitUri.substring(gitUri.lastIndexOf(PATH_SEPARATOR) + 1) + processId; } String repoLocation = gitUri.substring(0, gitUri.lastIndexOf(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)); return repoLocation.substring(repoLocation.lastIndexOf(PATH_SEPARATOR) + 1) + processId; }   }
ProcessGitSourceStep extends SyncFlowableStep { protected String extractRepoName(String gitUri, String processId) { if (!gitUri.endsWith(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)) { return gitUri.substring(gitUri.lastIndexOf(PATH_SEPARATOR) + 1) + processId; } String repoLocation = gitUri.substring(0, gitUri.lastIndexOf(PATH_SEPARATOR + org.eclipse.jgit.lib.Constants.DOT_GIT)); return repoLocation.substring(repoLocation.lastIndexOf(PATH_SEPARATOR) + 1) + processId; }   static final String META_INF_PATH; }