]> Dogcows Code - chaz/vimcoder/commitdiff
do not overwrite makefiles while opening a problem
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 23 Jun 2011 19:25:35 +0000 (13:25 -0600)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 23 Jun 2011 19:25:35 +0000 (13:25 -0600)
closes #32

src/com/dogcows/Editor.java

index ff38a0ff4df175efde211fe7dd050fa3be86cd91..eca84208ad675a66706995396744d2d821845537 100644 (file)
@@ -164,6 +164,7 @@ public class Editor
 
                // Finally, expand the Makefile template and write it.
                File makeFile = new File(directory, "Makefile");
+               if (!makeFile.canRead())
                {
                        String text = Util.expandTemplate(readTemplate(lang + "Makefile"),
                                                                                          terms);
This page took 0.027977 seconds and 4 git commands to generate.