Changeset 526
- Timestamp:
- May 7, 2010, 6:05:50 PM (15 years ago)
- Location:
- trunk/scripts
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/_Events.groovy
r522 r526 1 includeTargets << grailsScript("UpdateRev") 1 2 includeTargets << new File("${basedir}/scripts/_UpdateRev.groovy") 2 3 3 4 eventCompileStart = { msg -> 5 println "Compile started, checking VCS Revision." 4 6 updateVcsRevision() 5 7 } -
trunk/scripts/_UpdateRev.groovy
r525 r526 13 13 def fail = { Map m -> 14 14 result.error = [ code: m.code, args: m.args ] 15 println "Error: UpdateRev script -" + result.error15 println "Error: UpdateRev script: " + result.error 16 16 return result 17 17 } … … 34 34 if(appRevision.revision != svnRevision.revision) { 35 35 36 println "app.vcsRevision : "+appRevision.revision +', SVN Revision:'+svnRevision.revision36 println "app.vcsRevision = "+appRevision.revision +', SVN Revision = '+svnRevision.revision 37 37 38 38 // Update metadata if already loaded. … … 49 49 50 50 } // if(rev != rev) 51 else { 52 println "VCS Revisions match: app.vcsRevision = "+appRevision.revision +', SVN Revision = '+svnRevision.revision +'.' 53 } 51 54 52 55 // Success. … … 128 131 129 132 def revisionString = 'app.vcsRevision=\\$Rev: '+revision+' \\$' 130 println "Updating application.properties with ${revisionString}"133 println "Updating application.properties with: ${revisionString}" 131 134 132 135 def processFileInplace = { file, Closure processText -> … … 143 146 144 147 } // writeVcsRevision() 145 146 setDefaultTarget(updateVcsRevision)
Note: See TracChangeset
for help on using the changeset viewer.