- Timestamp:
- 13/08/10 16:34:17 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/NXconvert.java
r1501 r1504 5 5 import java.util.logging.Level; 6 6 import java.util.logging.Logger; 7 import org.nexusformat.nxvalidate.exceptions.NXConvertpyException; 7 8 8 9 public class NXconvert { … … 41 42 } 42 43 43 public File convert() throws IOException, InterruptedException {44 public File convert() throws IOException, InterruptedException, NXConvertpyException { 44 45 45 46 Logger.getLogger(NXconvert.class.getName()).log( 46 47 Level.INFO, "Creating " + redfile.getAbsolutePath()); 47 48 // the command to run49 //String command = props.getProperty(NXCONVERT) +50 // " -d " + this.rawfile + " " + redfile;51 48 52 49 String command = ""; … … 54 51 command = convertFile.getAbsolutePath() + 55 52 " -d " + this.rawfile + " " + redfile;; 56 System.out.println(command);57 53 } 58 54 else{ … … 78 74 buffer.append("\" failed. Returned "); 79 75 buffer.append(exitValue); 80 throw new IOException(buffer.toString());76 throw new NXConvertpyException(buffer.toString()); 81 77 } 82 78 return redfile;
Note: See TracChangeset
for help on using the changeset viewer.
