static {
try {
jarFileTime = new File("fleet.jar").lastModified();
- bitFileTime = new File("build/fpga/main.bit").lastModified();
+ bitFileTime = new File("./main.bit").lastModified();
} catch (Exception e) { throw new RuntimeException(e); }
}
public static void main(String[] args) throws Exception {
System.err.println("programming...");
Process proc = Runtime.getRuntime().exec(new String[] {
- "misc/program.sh",
- "build/fpga/main.bit"
+ "./program.sh",
+ "./main.bit"
});
BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
String str = null;
System.err.println("jarfile modified; exiting...");
System.exit(0);
}
- if (bitFileTime != new File("build/fpga/main.bit").lastModified()) {
+ if (bitFileTime != new File("./main.bit").lastModified()) {
System.err.println("bitfile modified; exiting...");
System.exit(0);
}