File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed 
tests/corpus/update.identifier.case-filter Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -37,5 +37,15 @@ REPLACE BODY WITH CASE
3737    r'''self\.(_make_source_table)'''
3838    r'''\1'''
3939END;
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 number Diff line number Diff line change 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+ }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments