Skip to content

Commit dc90696

Browse files
committed
Test line matcher in CASE filter
1 parent 6ee6fa1 commit dc90696

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
application {
2+
this.mainClassName = mainVerticleName
3+
}
4+
5+
6+
named<JavaExec>("run") {
7+
doFirst {
8+
args = listOf(
9+
"run",
10+
mainVerticleName,
11+
"--launcher-class=${application.mainClassName}",
12+
"--on-redeploy=$doOnChange"
13+
)
14+
}
15+
}

tests/corpus/update.identifier.case-filter/chat.xml

+10
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,15 @@ REPLACE BODY WITH CASE
3737
r'''self\.(_make_source_table)'''
3838
r'''\1'''
3939
END;
40+
41+
UPDATE FILE "1.kts"
42+
REPLACE WHOLE WITH CASE
43+
WHEN LINE 'this.mainClassName = mainVerticleName' THEN SUB
44+
r'''this\.mainClassName = mainVerticleName'''
45+
'mainClass.set(mainVerticleName)'
46+
WHEN LINE '"--launcher-class=${application.mainClassName}",' THEN SUB
47+
r'''application\.mainClassName'''
48+
'application.mainClass.get()'
49+
END;
4050
```
4151
</no-train>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
application {
2+
mainClass.set(mainVerticleName)
3+
}
4+
5+
6+
named<JavaExec>("run") {
7+
doFirst {
8+
args = listOf(
9+
"run",
10+
mainVerticleName,
11+
"--launcher-class=${application.mainClass.get()}",
12+
"--on-redeploy=$doOnChange"
13+
)
14+
}
15+
}

0 commit comments

Comments
 (0)