diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2013-10-16 19:07:30 +0200 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2013-10-17 07:07:49 +0200 |
commit | 9fdd14bd5cf0ad765135c8466dcaa9921c72c74b (patch) | |
tree | 3d41422ce296b46c7db0684a98111e91c17bb570 /jacoco-maven-plugin.test/it | |
parent | bd886f0a891bf68489bfa81a8fc3164fe7e1486f (diff) | |
download | platform_external_jacoco-9fdd14bd5cf0ad765135c8466dcaa9921c72c74b.tar.gz platform_external_jacoco-9fdd14bd5cf0ad765135c8466dcaa9921c72c74b.tar.bz2 platform_external_jacoco-9fdd14bd5cf0ad765135c8466dcaa9921c72c74b.zip |
Also consider quotes in command line arguments correctly.
For this move command line utilities into core.
Diffstat (limited to 'jacoco-maven-plugin.test/it')
-rw-r--r-- | jacoco-maven-plugin.test/it/it-multiple-executions/pom.xml | 3 | ||||
-rw-r--r-- | jacoco-maven-plugin.test/it/it-multiple-executions/verify.bsh | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/jacoco-maven-plugin.test/it/it-multiple-executions/pom.xml b/jacoco-maven-plugin.test/it/it-multiple-executions/pom.xml index 10fc263f..2728435b 100644 --- a/jacoco-maven-plugin.test/it/it-multiple-executions/pom.xml +++ b/jacoco-maven-plugin.test/it/it-multiple-executions/pom.xml @@ -23,7 +23,7 @@ <properties> <!-- Make sure we actually prepend existing args--> - <argLine>-Da=1 -Da=2</argLine> + <argLine>"-Da=\"1\"" -Db=2</argLine> </properties> <build> @@ -48,6 +48,7 @@ </goals> <configuration> <destFile>${project.build.directory}/with space.exec</destFile> + <sessionId>"my" session</sessionId> </configuration> </execution> <execution> diff --git a/jacoco-maven-plugin.test/it/it-multiple-executions/verify.bsh b/jacoco-maven-plugin.test/it/it-multiple-executions/verify.bsh index 263ce022..f8eb1d27 100644 --- a/jacoco-maven-plugin.test/it/it-multiple-executions/verify.bsh +++ b/jacoco-maven-plugin.test/it/it-multiple-executions/verify.bsh @@ -30,7 +30,7 @@ if ( !file.isFile() ) throw new FileNotFoundException( "Could not find generated dump: " + file ); } -String argLine = "-Da=1 -Da=2"; +String argLine = "\"-Da=\\\"1\\\"\" -Db=2"; String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) ); if ( buildLog.indexOf( argLine ) < 0 ) { throw new RuntimeException( "Original argLine was overwritten" ); |