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