geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r505903 - /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/Template.groovy
Date Sun, 11 Feb 2007 11:53:54 GMT
Author: jdillon
Date: Sun Feb 11 03:53:54 2007
New Revision: 505903

URL: http://svn.apache.org/viewvc?view=rev&rev=505903
Log:
Drop hacks/debug muck when rendering templates, we should *never* try to overwrite something

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/Template.groovy

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/Template.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/Template.groovy?view=diff&rev=505903&r1=505902&r2=505903
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/Template.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/system/template/Template.groovy
Sun Feb 11 03:53:54 2007
@@ -59,28 +59,12 @@
     
     void render(File file) {
         assert file
-        
-        //
-        // NOTE: Not using ant here to avoid evil log message
-        //
-        
-        file.parentFile.mkdirs()
-        assert file.parentFile.exists() : "Failed to create directory: ${file.parentFile}"
-        
-        /*
-        FIXME: Need to see why this is happening...
+        assert file.parentFile.exists()
         
         // Fail if we are overriting something
         assert !file.exists() : "Attempting to overwrite: $file"
-        */
-        if (file.exists()) {
-            log.error "Overwriting: $file; backing up orig for debugging"
-            def ts = System.currentTimeMillis()
-            new AntBuilder().copy(file: file, tofile: "${file}.$ts")
-        }
         
         log.debug "Rendering to: $file"
-        
         
         def writer = file.newWriter()
         try {



Mime
View raw message