Changeset 1022


Ignore:
Timestamp:
Apr 6, 2009, 7:16:11 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #184. Progress bar is updated in the abstract class only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/base2/net.sf.basedb.pluginutilities/trunk/src/net/sf/basedb/plugins/AbstractRunBinaryPlugin.java

    r1006 r1022  
    152152  {
    153153    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."));
    156156    cmd[0]=getBinaryPath(this.getClass(),cmd[0]);
    157157    Process p = Runtime.getRuntime().exec(cmd, null, getExecDirectory());
     
    307307      if (sourceBAS==null)
    308308        sourceBAS = getSourceBioAssaySet(dc);
     309      if (progress != null) progress.display(0, about.getName());
    309310      runBinary();
     311      if (progress != null) progress.display(90, "Storing result");
    310312      storeResult(dc);
    311313      if (debug_output)
     
    327329      if (!debug_output) {
    328330        // clean up
     331        if (progress != null) progress.display(100, "Clean up");
    329332        java.io.File[] files=getExecDirectory().listFiles();
    330333        for (java.io.File f : files)
     
    396399  private RequestInformation configureJob = null;
    397400  private java.io.File execDirectory;
    398   private int percentDone=0;
    399401  private ProgressReporter progress=null;
    400402
Note: See TracChangeset for help on using the changeset viewer.