Skip to content

Commit

Permalink
Merge pull request #161 from common-workflow-language/lobstr-update
Browse files Browse the repository at this point in the history
Update lobstr example on index
stain authored Aug 22, 2017
2 parents 23fc5b2 + bf0556d commit 72d39b9
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions src/main/java/org/commonwl/view/git/GitService.java
Original file line number Diff line number Diff line change
@@ -19,16 +19,6 @@

package org.commonwl.view.git;

import static org.apache.jena.ext.com.google.common.io.Files.createTempDir;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.Set;

import org.apache.commons.codec.digest.DigestUtils;
import org.commonwl.view.researchobject.HashableAgent;
import org.eclipse.jgit.api.Git;
@@ -43,6 +33,16 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.Set;

import static org.apache.jena.ext.com.google.common.io.Files.createTempDir;

/**
* Handles Git related functionality
*/
@@ -82,6 +82,7 @@ public Git getRepository(GitDetails gitDetails, boolean reuseDir)
// Check if folder already exists
Path repoDir = gitStorage.resolve(baseName);
if (Files.isReadable(repoDir) && Files.isDirectory(repoDir)) {
repo = Git.open(repoDir.toFile());
repo.fetch().call();
} else {
// Create a folder and clone repository into it
2 changes: 1 addition & 1 deletion src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ <h2>Workflow URL</h2>
<strong>Don't know what to view?</strong> Try these from <i>common-workflow-language/workflows</i>:
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/compile/compile1.cwl">compile</a>,
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/make-to-cwl/dna.cwl">make-to-cwl</a>,
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/master/workflows/lobSTR/lobSTR-workflow.cwl">lobSTR</a>
<a class="example" href="https://github.com/common-workflow-language/workflows/tree/lobstr-v1/workflows/lobSTR/lobSTR-workflow.cwl">lobSTR</a>
or <a href="/workflows">explore the collection</a>
</div>
<form id="add" action="#" th:action="@{/workflows}" th:object="${workflowForm}" method="POST">

0 comments on commit 72d39b9

Please sign in to comment.