Changeset 1022
- Timestamp:
- Apr 6, 2009, 7:16:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base2/net.sf.basedb.pluginutilities/trunk/src/net/sf/basedb/plugins/AbstractRunBinaryPlugin.java
r1006 r1022 152 152 { 153 153 if (debug_output) System.err.println("execute"); 154 percentDone+=1;155 progress.display(percentDone,"Running " + about.getName());154 if (progress != null) progress.display(5, (about.getName() + 155 " waiting for external binary.")); 156 156 cmd[0]=getBinaryPath(this.getClass(),cmd[0]); 157 157 Process p = Runtime.getRuntime().exec(cmd, null, getExecDirectory()); … … 307 307 if (sourceBAS==null) 308 308 sourceBAS = getSourceBioAssaySet(dc); 309 if (progress != null) progress.display(0, about.getName()); 309 310 runBinary(); 311 if (progress != null) progress.display(90, "Storing result"); 310 312 storeResult(dc); 311 313 if (debug_output) … … 327 329 if (!debug_output) { 328 330 // clean up 331 if (progress != null) progress.display(100, "Clean up"); 329 332 java.io.File[] files=getExecDirectory().listFiles(); 330 333 for (java.io.File f : files) … … 396 399 private RequestInformation configureJob = null; 397 400 private java.io.File execDirectory; 398 private int percentDone=0;399 401 private ProgressReporter progress=null; 400 402
Note: See TracChangeset
for help on using the changeset viewer.