Author: mbrohl
Date: Tue Sep 20 07:27:22 2016
New Revision: 1761533

URL: http://svn.apache.org/viewvc?rev=1761533&view=rev
Log:
Improved: Cleanup task for the git/svn footer files.

No functional changes but some code cleanup. The file checks are not needed 
when using delete from the Gradle DSL.

Modified:
    ofbiz/trunk/build.gradle

Modified: ofbiz/trunk/build.gradle
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/build.gradle?rev=1761533&r1=1761532&r2=1761533&view=diff
==============================================================================
--- ofbiz/trunk/build.gradle (original)
+++ ofbiz/trunk/build.gradle Tue Sep 20 07:27:22 2016
@@ -733,12 +733,8 @@ task cleanGradle(group: cleanupGroup, de
     delete file("${rootDir}/.gradle")
 }
 task cleanFooterFiles(group: cleanupGroup, description: 'clean generated 
footer files') << {
-    if(gitFooterFile.exists()) {
-        gitFooterFile.delete()
-    }
-    if(svnFooterFile.exists()) {
-        svnFooterFile.delete()
-    }
+    delete gitFooterFile
+    delete svnFooterFile
 }
 task cleanAnt(group: cleanupGroup, type: Delete, description: "clean old 
artifacts generated by Ant") << {
     /* TODO this task is temporary and should be deleted after some


Reply via email to