diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-04-02 00:03:52 +0200 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-04-04 19:26:42 +0200 |
commit | c2ce998f28b9d8126b2050747e83e635d4a26ffb (patch) | |
tree | f46cdf48c129011287cdabb7cb511d14e7ddda2f /tmwcon | |
parent | aca3bbdb0bc35b79d8604b6db6a5d9d5b05c5fdc (diff) | |
download | tools-c2ce998f28b9d8126b2050747e83e635d4a26ffb.tar.gz tools-c2ce998f28b9d8126b2050747e83e635d4a26ffb.tar.bz2 tools-c2ce998f28b9d8126b2050747e83e635d4a26ffb.tar.xz tools-c2ce998f28b9d8126b2050747e83e635d4a26ffb.zip |
Converter adds a warning in all autogenerated files
Diffstat (limited to 'tmwcon')
-rw-r--r-- | tmwcon/src/converter/Process.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tmwcon/src/converter/Process.java b/tmwcon/src/converter/Process.java index 088cee5..8b01d0d 100644 --- a/tmwcon/src/converter/Process.java +++ b/tmwcon/src/converter/Process.java @@ -136,7 +136,7 @@ public class Process { List<String> output_elements = new ArrayList<String>(); processFiles(folder, output_elements); PrintWriter importOut = Main.getWriter(_import); - importOut.printf("map: %s.gat\n", name); + importOut.printf("// This file is generated automatically. All manually changes will be removed when running the Converter.\nmap: %s.gat\n", name); Collections.sort(output_elements); for (String s : output_elements) importOut.println(s); @@ -158,7 +158,7 @@ public class Process { } else { title = name; } - + File folder = new File(baseFolder + folderName); folder.mkdirs(); @@ -183,8 +183,8 @@ public class Process { PrintWriter warpOut = Main.getWriter(new File(folder, warpFile)); PrintWriter mobOut = Main.getWriter(new File(folder, mobFile)); - warpOut.printf("// %s warps\n\n", title); - mobOut.printf("// %s mobs\n\n", title); + warpOut.printf("// This file is generated automatically. All manually changes will be removed when running the Converter.\n// %s warps\n\n", title); + mobOut.printf("// This file is generated automatically. All manually changes will be removed when running the Converter.\n// %s mobs\n\n", title); TreeSet<Integer> mobs = new TreeSet<Integer>(); processObjects(map.getObjects(), name, warpOut, mobOut, mobs); @@ -208,7 +208,7 @@ public class Process { mobOut.flush(); mobOut.close(); - + makeInclude(name, folder); return folderName; @@ -221,6 +221,7 @@ public class Process { List<String> output_elements = new ArrayList<String>(); + output_elements.add("// This file is generated automatically. All manually changes will be removed when running the Converter.\n"); for (String folder : folders) { if (folder == null) continue; output_elements.add("import: " + folder + "/_import.txt"); |