X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=engine%2Fcompbio%2Fengine%2Farchive%2FArchive.java;fp=engine%2Fcompbio%2Fengine%2Farchive%2FArchive.java;h=8aad2aa22417d9014be1038e671579ff5f73f005;hb=9bb6ee99ca7f738fac1087190b5481b8fe6e8d9f;hp=392a7376d856b10ec7882702d64687bc3a16571f;hpb=2e3f6b76be585306f1003d849831840c0adb3360;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"; }