From 599a426c25615089dd46ed0f502e80200ee3236b Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Mon, 9 Mar 2020 16:22:22 +0100 Subject: [PATCH] [bugfix] Don't introduce quotes into parts of command line args Regression that was introduced as part of b472009 --- .../mojo/appassembler/booter/AppassemblerBooter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/appassembler-booter/src/main/java/org/codehaus/mojo/appassembler/booter/AppassemblerBooter.java b/appassembler-booter/src/main/java/org/codehaus/mojo/appassembler/booter/AppassemblerBooter.java index 97455b0e..256b5e11 100644 --- a/appassembler-booter/src/main/java/org/codehaus/mojo/appassembler/booter/AppassemblerBooter.java +++ b/appassembler-booter/src/main/java/org/codehaus/mojo/appassembler/booter/AppassemblerBooter.java @@ -277,12 +277,12 @@ private static String interpolateBaseDirAndRepo( String content ) final String baseDir = System.getProperty( "basedir", System.getProperty( "app.home" ) ); if ( baseDir != null && baseDir.length() > 0) { - context.put( "BASEDIR", StringUtils.quoteAndEscape(baseDir, '"') ); + context.put( "BASEDIR", baseDir ); } final String repo = System.getProperty( "app.repo" ); if ( repo != null && repo.length() > 0 ) { - context.put("REPO", StringUtils.quoteAndEscape(repo, '"')); + context.put("REPO", repo); } InterpolationFilterReader interpolationFilterReader = new InterpolationFilterReader( sr, context, "@", "@" ); @@ -294,6 +294,7 @@ private static String interpolateBaseDirAndRepo( String content ) { // shouldn't happen... } + return result.toString(); }