I need to pass a directory using Windows format as an argument to exec on maven, here is an excerpt from pom.xml
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <id>export</id> <phase>deploy</phase> <goals> <goal>exec</goal> </goals> <configuration> <escape>true</escape> <executable>${cmdl.exec}</executable> <workingDirectory>${cmdl.location}</workingDirectory> <arguments> <argument>${project.basedir}\\target\\classes\\publishRoute</argument> </arguments> </configuration> </execution> </executions> </plugin>
The problem I ran into is that the solution $ {project.basedir} resolves one slash:
cmd /c script_cmdline.bat C:\Talend_CI\talend\release\Routes\SimpleRoute\\target\\classes\\publishRoute
and I need to pass it a double backslash. How can I achieve this using $ {project.basedir}?
source share