File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
src/main/groovy/com/marklogic/gradle/task/roxy Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 11group =com.marklogic
2- version =3.2.1
2+ version =3.2.2
33mlAppDeployerDependency =com.marklogic:ml-app-deployer:3.2.0
44mlcpUtilDependency =com.marklogic:mlcp-util:0.3.0
55
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import org.gradle.api.tasks.TaskAction
44
55class RoxyMigratePropertiesTask extends RoxyTask {
66
7- Set<String > allRoxyProperties = new LinkedHashSet<> ()
87 def roxyPropertyFiles = [" default.properties" , " build.properties" ]
98 def roxyGradleMapping = [
109 " app-name" : " mlAppName" ,
@@ -91,19 +90,8 @@ class RoxyMigratePropertiesTask extends RoxyTask {
9190 if (file. exists()) {
9291 new File (" backup-" + filename). write(file. text)
9392 }
94- file. withWriter { writer ->
95- roxyGradleMapping. each { k , v ->
96- def val = roxyProperties. get(k)
97- if (val) writer. append(v). append(" =" ). append(val). append(" \n " )
98- }
99- allRoxyProperties. removeAll(roxyGradleMapping. keySet())
100- allRoxyProperties. each{ prop ->
101- writer. append(prop). append(" =" ). append(" unmapped" ). append(" \n " )
102- }
103- }
93+ println " Writing: " + filename
94+ file. write(text)
10495 }
10596
106- String getRoxyHome (){
107- project. hasProperty(" mlRoxyHome" ) ? project. property(" mlRoxyHome" ) : " "
108- }
10997}
You can’t perform that action at this time.
0 commit comments