From 39eb581134984a7c7ebc132c8a403b5b12edb970 Mon Sep 17 00:00:00 2001 From: Juan Pablo Civile Date: Fri, 5 Jun 2015 18:51:20 -0300 Subject: [PATCH] Fix run.sh for paths with spaces When redirecting arguments, "$@" must be used. cherry-picked: 429e1a91a160c609c9b3bd4094ce2718b42793a1 cherry-picked: 59f5c8639277a572ae39128837e891ab1f178e0b --- pmd-dist/src/main/scripts/run.sh | 2 +- src/site/markdown/overview/changelog.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pmd-dist/src/main/scripts/run.sh b/pmd-dist/src/main/scripts/run.sh index 5b7106ffa0..5da12d1a84 100755 --- a/pmd-dist/src/main/scripts/run.sh +++ b/pmd-dist/src/main/scripts/run.sh @@ -123,4 +123,4 @@ cygwin_paths java_heapsize_settings -java ${HEAPSIZE} -cp "${classpath}" "${CLASSNAME}" ${@} +java ${HEAPSIZE} -cp "${classpath}" "${CLASSNAME}" "$@" diff --git a/src/site/markdown/overview/changelog.md b/src/site/markdown/overview/changelog.md index 26e68a2eec..959de654dc 100644 --- a/src/site/markdown/overview/changelog.md +++ b/src/site/markdown/overview/changelog.md @@ -10,6 +10,8 @@ **Pull Requests:** +* [#55](https://github.com/pmd/pmd/pull/55): Fix run.sh for paths with spaces + **Bugfixes:** * [#1364](https://sourceforge.net/p/pmd/bugs/1364/): FieldDeclarationsShouldBeAtStartOfClass false positive using multiple annotations