From e4fa5f88fee54c1393853e866befdff7d276f4c7 Mon Sep 17 00:00:00 2001 From: Xavier Le Vourch Date: Tue, 8 Apr 2008 23:44:19 +0000 Subject: [PATCH] support for extra languages in cpd.sh git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5994 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/bin/cpd.sh | 4 ++-- pmd/etc/changelog.txt | 4 +++- pmd/java14/bin/cpd.sh | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) mode change 100755 => 100644 pmd/bin/cpd.sh diff --git a/pmd/bin/cpd.sh b/pmd/bin/cpd.sh old mode 100755 new mode 100644 index e35be901d6..8e78e93d7b --- a/pmd/bin/cpd.sh +++ b/pmd/bin/cpd.sh @@ -55,8 +55,8 @@ case "$HEAPSIZE" in esac case "$LANGUAGE" in -cpp|c) ;; -*) echo "Language '$LANGUAGE' unknown (try: cpp, c)" +c|cpp|fortran|java|jsp|php|ruby) ;; +*) echo "Language '$LANGUAGE' unknown (try: c, cpp, fortran, java, jsp, php, ruby)" exit 1 esac diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index bc408784de..56bb4912e4 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -5,7 +5,9 @@ Fixed bug 1928009 - Error using migration ruleset in PMD 4.2 Fixed bug 1932242 - EmptyMethodInAbstractClassShouldBeAbstract false + ruleset.dtd and ruleset_xml_schema.xsd added to jar file in rulesets directory Update RuleSetWriter to handle non-Apache TRAX implementations, add an option to not use XML Namespaces -retroweaver version was not correct in java14/bin scripts +bin and java14/bin scripts: + retroweaver version was not correct in java14/bin scripts + support for extra languages in cpd.sh March 25, 2008 - 4.2: diff --git a/pmd/java14/bin/cpd.sh b/pmd/java14/bin/cpd.sh index d0e489f98e..1ee8a28833 100644 --- a/pmd/java14/bin/cpd.sh +++ b/pmd/java14/bin/cpd.sh @@ -63,8 +63,8 @@ case "$HEAPSIZE" in esac case "$LANGUAGE" in -cpp|c) ;; -*) echo "Language '$LANGUAGE' unknown (try: cpp, c)" +c|cpp|fortran|java|jsp|php|ruby) ;; +*) echo "Language '$LANGUAGE' unknown (try: c, cpp, fortran, java, jsp, php, ruby)" exit 1 esac