Property autocapitalization in maven

前端 未结 2 1594
萌比男神i
萌比男神i 2021-01-13 20:47

I have a maven project that requires a property to be set at the command line(-Dmy.property=val). What I need to do is to convert that string into all caps since that proper

2条回答
  •  走了就别回头了
    2021-01-13 21:13

    With following code, MY_PROPERTIES equals to uppercased value of my.properties:

    
      org.codehaus.mojo
      build-helper-maven-plugin
      1.12
      
        
          properties-to-uppercase
          
            regex-property
          
          
            MY_PROPERTY
            .*
            ${my.property}
            $0
            false
            true
          
        
      
          
    

提交回复
热议问题