forked from phoedos/pmd
bin scripts: cygwin-run.sh removed, only cpd, designer and pmd scripts should be in binary release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@5996 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
parent
e659268f29
commit
1593b8037d
@ -1,17 +0,0 @@
|
||||
#! /bin/sh
|
||||
cygwin=false;
|
||||
case "`uname`" in
|
||||
CYGWIN*) cygwin=true ;;
|
||||
esac
|
||||
FILE=$1
|
||||
FORMAT=$2
|
||||
RULESETFILES=$3
|
||||
VERSION=4.2
|
||||
PMD_CLASSPATH=../lib/pmd-$VERSION.jar:../lib/jaxen-1.1.1.jar:../lib/asm-3.1.jar
|
||||
if $cygwin; then
|
||||
FILE=`cygpath --windows "$FILE"`
|
||||
PMD_CLASSPATH=`cygpath --path --windows "$PMD_CLASSPATH"`
|
||||
echo since they are comma delimited the RULESETFILES "$RULESETFILES"
|
||||
echo will need an iteration loop to convert properly
|
||||
fi
|
||||
java -cp ${PMD_CLASSPATH} net.sourceforge.pmd.PMD $FILE $FORMAT $RULESETFILES
|
@ -10,7 +10,7 @@ run version update script at the top level:
|
||||
./etc/update_version.sh <version>
|
||||
|
||||
tasks implemented by script:
|
||||
update pmd.bat, designer.bat, bgastviewer.*, cygwin-run.sh, cpd.jnlp, cpdgui.bat, build.xml to point to pmd-<version>.jar
|
||||
update pmd.bat, designer.bat, bgastviewer.*, cpd.jnlp, cpdgui.bat, build.xml to point to pmd-<version>.jar
|
||||
update PMD.java, xdocs/running.xml, compiling.xml, integrations.xml, installing.xml to reflect pmd-<version>
|
||||
update the release date in the changelog
|
||||
update release number and tag name in project.xml
|
||||
|
4
pmd/etc/generate_release.sh
Executable file → Normal file
4
pmd/etc/generate_release.sh
Executable file → Normal file
@ -35,10 +35,10 @@ mkdir -p $pmd_bin_dir/java14/lib
|
||||
mkdir $pmd_bin_dir/java14/bin
|
||||
cp ../LICENSE.txt changelog.txt $pmd_bin_dir/etc
|
||||
cd ../bin/
|
||||
cp pmd.* cygwin-run.sh build.xml cpd.sh cpdgui.bat designer.* $pmd_bin_dir/bin
|
||||
cp pmd.* build.xml cpd.sh cpdgui.bat designer.* $pmd_bin_dir/bin
|
||||
cd ../etc/
|
||||
cp ../java14/lib/*.jar $pmd_bin_dir/java14/lib/
|
||||
cp ../java14/bin/*.bat ../java14/bin/*.sh $pmd_bin_dir/java14/bin/
|
||||
cp ../java14/bin/cpd* ../java14/bin/pmd.* ../java14/bin/designer.* $pmd_bin_dir/java14/bin/
|
||||
chmod 755 $pmd_bin_dir/java14/bin/*
|
||||
cp ../lib/pmd-$version.jar ../lib/asm-3.1.jar ../lib/jaxen-1.1.1.jar ../lib/junit-4.4.jar $pmd_bin_dir/lib/
|
||||
mkdir $pmd_bin_dir/etc/xslt
|
||||
|
2
pmd/etc/update_version.sh
Executable file → Normal file
2
pmd/etc/update_version.sh
Executable file → Normal file
@ -24,13 +24,11 @@ update_VERSION_var $1 bin/bgastviewer.sh
|
||||
update_VERSION_var $1 bin/designer.bat
|
||||
update_VERSION_var $1 bin/bgastviewer.bat
|
||||
update_VERSION_var $1 bin/cpdgui.bat
|
||||
update_VERSION_var $1 bin/cygwin-run.sh
|
||||
update_VERSION_var $1 bin/pmd.bat
|
||||
update_VERSION_var $1 java14/bin/bgastviewer.sh
|
||||
update_VERSION_var $1 java14/bin/designer.bat
|
||||
update_VERSION_var $1 java14/bin/bgastviewer.bat
|
||||
update_VERSION_var $1 java14/bin/cpdgui.bat
|
||||
update_VERSION_var $1 java14/bin/cygwin-run.sh
|
||||
update_VERSION_var $1 java14/bin/pmd.bat
|
||||
|
||||
update_regexp "property name=\\\"version\\\" value=\".*\"" "property name=\\\"version\\\" value=\\\"$1\\\"" bin/build.xml
|
||||
|
@ -1,21 +0,0 @@
|
||||
#! /bin/sh
|
||||
cygwin=false;
|
||||
case "`uname`" in
|
||||
CYGWIN*) cygwin=true ;;
|
||||
esac
|
||||
FILE=$1
|
||||
FORMAT=$2
|
||||
RULESETFILES=$3
|
||||
TOPDIR=../..
|
||||
VERSION=4.2
|
||||
PMDJAR=$TOPDIR/java14/lib/pmd14-$VERSION.jar
|
||||
JARPATH=$TOPDIR/lib/asm-3.1.jar:$TOPDIR/lib/jaxen-1.1.1.jar
|
||||
RWPATH=$TOPDIR/java14/lib/retroweaver-rt-2.0.5.jar:$TOPDIR/java14/lib/backport-util-concurrent.jar
|
||||
PMD_CLASSPATH=$JARPATH:$RWPATH
|
||||
if $cygwin; then
|
||||
FILE=`cygpath --windows "$FILE"`
|
||||
PMD_CLASSPATH=`cygpath --path --windows "$PMD_CLASSPATH"`
|
||||
echo since they are comma delimited the RULESETFILES "$RULESETFILES"
|
||||
echo will need an iteration loop to convert properly
|
||||
fi
|
||||
java -cp ${PMD_CLASSPATH} net.sourceforge.pmd.PMD $FILE $FORMAT $RULESETFILES
|
Loading…
x
Reference in New Issue
Block a user