diff --git a/pmd-dcpd/etc/go.bat b/pmd-dcpd/etc/go.bat index d4ef86dff9..68c0c051c4 100755 --- a/pmd-dcpd/etc/go.bat +++ b/pmd-dcpd/etc/go.bat @@ -3,13 +3,12 @@ set CLASSPATH= set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\lib\runtimeonly\outrigger-dl.jar set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\lib\runtimeonly\reggie.jar set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\build -set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\lib\pmd-1.0rc1.jar +set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\lib\pmd-1.0rc2.jar -set MAIN=net.sourceforge.pmd.dcpd.%1 set MEMORY_ARG=-Xms128M -Xmx384M set POLICY_ARG=-Djava.security.policy=policy.all set SPACENAME_ARG=-Dcom.sun.jini.outrigger.spacename=JavaSpaces set GROUP_ARG=-Dcom.sun.jini.lookup.groups=public set CODEBASE=-Djava.rmi.server.codebase=http://mordor:8081/dcpd.jar -java %MEMORY_ARG% %POLICY_ARG% %SPACENAME_ARG% %GROUP_ARG% -cp %CLASSPATH% %CODEBASE% %MAIN% %2 +java %MEMORY_ARG% %POLICY_ARG% %SPACENAME_ARG% %GROUP_ARG% -cp %CLASSPATH% %CODEBASE% net.sourceforge.pmd.dcpd.DCPDManager %1 %2 diff --git a/pmd-dcpd/etc/readme.txt b/pmd-dcpd/etc/readme.txt index e3681b483b..8a681f7903 100644 --- a/pmd-dcpd/etc/readme.txt +++ b/pmd-dcpd/etc/readme.txt @@ -2,15 +2,20 @@ PMD-DCPD Contents: Overview -How to run it - +How to run it on one machine +How to run it on several machines OVERVIEW PMD-DCPD is a distributed duplicate code detector. It is loosely based on Michael Wise's Greedy String Tiling Algorithm. -HOW TO RUN IT +HOW TO RUN IT ON ONE MACHINE Download the latest release Start a JavaSpace Change the JavaSpace server name in Util.java and recompile the source code -Start a DCPD manager by running +Change the source code directory that you want to check in DCPDManager.java +Start a DCPD manager by running etc\go DCPDManager +Start a DCPD worker by running etc\go DCPDWorker + + + diff --git a/pmd-dcpd/etc/util_go.bat b/pmd-dcpd/etc/util_go.bat new file mode 100755 index 0000000000..a00f7697fd --- /dev/null +++ b/pmd-dcpd/etc/util_go.bat @@ -0,0 +1,14 @@ +@echo off +set CLASSPATH= +set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\lib\runtimeonly\outrigger-dl.jar +set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\lib\runtimeonly\reggie.jar +set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\build +set CLASSPATH=%CLASSPATH%;c:\data\pmd\pmd-dcpd\lib\pmd-1.0rc2.jar + +set MEMORY_ARG=-Xms128M -Xmx384M +set POLICY_ARG=-Djava.security.policy=policy.all +set SPACENAME_ARG=-Dcom.sun.jini.outrigger.spacename=JavaSpaces +set GROUP_ARG=-Dcom.sun.jini.lookup.groups=public +set CODEBASE=-Djava.rmi.server.codebase=http://mordor:8081/dcpd.jar + +java %MEMORY_ARG% %POLICY_ARG% %SPACENAME_ARG% %GROUP_ARG% -cp %CLASSPATH% %CODEBASE% net.sourceforge.pmd.dcpd.Util %1 diff --git a/pmd-dcpd/lib/pmd-1.0rc2.jar b/pmd-dcpd/lib/pmd-1.0rc2.jar new file mode 100644 index 0000000000..6adcde3c04 Binary files /dev/null and b/pmd-dcpd/lib/pmd-1.0rc2.jar differ