return record;
}
public static void main(String args[]) {
- EmblFile myfile = EmblFile.getEmblFile(new File("C:\\Documents and Settings\\JimP\\workspace-3.2\\Jalview Release\\schemas\\embleRecordV1.1.xml"));
+ File mf = null;
+ if (args.length==1)
+ {
+ mf = new File(args[0]);
+ }
+ if (!mf.exists())
+ {
+ mf = new File("C:\\Documents and Settings\\JimP\\workspace-3.2\\Jalview Release\\schemas\\embleRecordV1.1.xml");
+ }
+ EmblFile myfile = EmblFile.getEmblFile(mf);
if (myfile!=null && myfile.entries!=null && myfile.entries.size()>0)
- System.out.println(myfile.entries.size()+" Records read.");
+ System.out.println(myfile.entries.size()+" Records read. ("+mf+")");
}
}