Ignore:
Timestamp:
13/08/10 16:34:17 (22 months ago)
Author:
Stephen Rankin
Message:

Bulk Load working but not really tested. Fixed various bugs fixed, but single file validation is not working now! Close all files function added. Check for NEXUS/HDF files added. Added threads for file loading actions. Some refactoring of code. refs #236.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/NXconvert.java

    r1501 r1504  
    55import java.util.logging.Level; 
    66import java.util.logging.Logger; 
     7import org.nexusformat.nxvalidate.exceptions.NXConvertpyException; 
    78 
    89public class NXconvert { 
     
    4142    } 
    4243 
    43     public File convert() throws IOException, InterruptedException { 
     44    public File convert() throws IOException, InterruptedException, NXConvertpyException { 
    4445 
    4546        Logger.getLogger(NXconvert.class.getName()).log( 
    4647                Level.INFO, "Creating " + redfile.getAbsolutePath()); 
    47  
    48         // the command to run 
    49         //String command = props.getProperty(NXCONVERT) + 
    50          //       " -d " + this.rawfile + " " + redfile; 
    5148 
    5249        String command = ""; 
     
    5451            command = convertFile.getAbsolutePath() + 
    5552                " -d " + this.rawfile + " " + redfile;; 
    56             System.out.println(command); 
    5753        } 
    5854        else{ 
     
    7874            buffer.append("\" failed. Returned "); 
    7975            buffer.append(exitValue); 
    80             throw new IOException(buffer.toString()); 
     76            throw new NXConvertpyException(buffer.toString()); 
    8177        } 
    8278        return redfile; 
Note: See TracChangeset for help on using the changeset viewer.