changeset 173:50db7a832af5

add subproject name when generating properties
author smith@nwoca.org
date Fri, 05 Sep 2014 22:59:30 +0100
parents cea461dbc8fd
children e949e86b570e
files init.gradle
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/init.gradle	Fri Aug 22 15:53:15 2014 +0100
+++ b/init.gradle	Fri Sep 05 22:59:30 2014 +0100
@@ -230,7 +230,9 @@
                 inputs.files "../environment${e}.groovy", "../private${e}.groovy", '../private.properties'               
                 doLast {
                     t.mkdirs()
-                    gradle."environment${e}".toProperties().store(propertyFile.newOutputStream(), "by $taskName of $this")
+                    def ps = gradle."environment${e}".toProperties()
+					ps['ssdt.project'] = project.name
+					ps.store(propertyFile.newOutputStream(), "by $taskName of $this")
 					def l = propertyFile.readLines().sort()
 					propertyFile.text = l.join('\n')
                 }