takari / takari-lifecycle

Takari Maven Lifecycle
http://takari.io/book/40-lifecycle.html
Eclipse Public License 1.0
66 stars 35 forks source link

path escape backslash #99

Closed tonycody closed 2 years ago

tonycody commented 3 years ago

properties file

log=${project.build.directory}${file.separator}logs
applog=${project.build.directory}

mvn clean package target file

log=C:\Users\XS\IdeaProjects\sample\target\logs
applog=C:\Users\XS\IdeaProjects\sample\target

Why isn't the output this? There are no configuration parameters to control.

log=C:\\Users\\XS\\IdeaProjects\\sample\\target\\logs
applog=C:\\Users\\XS\\IdeaProjects\\sample\\target

image sample.zip

mosabua commented 3 years ago

Your screenshot shows you are using the resources plugin .. not takari lifecycle

tonycody commented 3 years ago

Your screenshot shows you are using the resources plugin .. not takari lifecycle

you try.

tonycody commented 3 years ago

Your screenshot shows you are using the resources plugin .. not takari lifecycle

I tried the official Demo and it's the same thing

tonycody commented 3 years ago

@mosabua i check source code,Only some variables support conversion to '/' The built-in variables are displayed as file instead of String