Skip to content

Commit

Permalink
fixed a bug in the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
uwx committed Dec 22, 2015
1 parent 2540bc1 commit add0901
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/src/br/com/chrishansen/aimgames/builder/Build.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public static void main(String[] args) throws IOException, InterruptedException
String lineTo = line.substring(0, line.indexOf(" ")).replace("\"", ""); //get only argument 1
System.out.println("lineto " + lineTo);
File fTo = new File("./" + lineTo);
if (!fTo.exists())
fTo.createNewFile();
FileInputStream fis = new FileInputStream(fTo);
BufferedReader br = new BufferedReader(new InputStreamReader(fis));
String result = "";
Expand Down Expand Up @@ -84,6 +86,7 @@ public static void main(String[] args) throws IOException, InterruptedException
fos.write(("Build number: #" + (buildnum + 1) + "\r\nBuild date: " + dateFormat.format(date)).getBytes());
fos.close();
} else {
buildFile.createNewFile();
// just write
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
//get current date time with Date()
Expand Down

0 comments on commit add0901

Please sign in to comment.