X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=engine%2Fcompbio%2Fengine%2Farchive%2FArchive.java;fp=engine%2Fcompbio%2Fengine%2Farchive%2FArchive.java;h=8aad2aa22417d9014be1038e671579ff5f73f005;hb=006363dc999cef4e9c49dd6a38ea0d78cbb62472;hp=392a7376d856b10ec7882702d64687bc3a16571f;hpb=6823d2f36ff55b7ab11d674e3fe4d04dc57d6bbf;p=proteocache.git diff --git a/engine/compbio/engine/archive/Archive.java b/engine/compbio/engine/archive/Archive.java index 392a737..8aad2aa 100644 --- a/engine/compbio/engine/archive/Archive.java +++ b/engine/compbio/engine/archive/Archive.java @@ -20,7 +20,7 @@ public class Archive { String path = ph.getProperty("archive.path"); assert (null != path); - if (isAbsolutePath (path)) { + if (isAbsolutePath(path)) { archivepath = path; } else { String abspath = ProteoCachePropertyHelperManager.getLocalPath(); @@ -31,20 +31,19 @@ public class Archive { } } - private boolean isAbsolutePath (String path) { - return (new File(path).isAbsolute()); + private boolean isAbsolutePath(String path) { + return (new File(path).isAbsolute()); } - - private boolean isDirExists (String path) throws IOException { + + private boolean isDirExists(String path) throws IOException { archive = new File(path); return archive.getCanonicalFile().isDirectory(); } - - public boolean addArchivedJob (ArchivedJob job) { + public boolean addArchivedJob(ArchivedJob job) { return true; } - + public String createJob(String jobid) { return archivepath + "/" + jobid + ".tar.gz"; }