it works, yay!

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@875 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-09-09 18:48:14 +00:00
parent 0043b2837e
commit 62c1b812b2
3 changed files with 10 additions and 5 deletions

View File

@ -5,7 +5,7 @@
<property name="src" value="src\"/>
<property name="build" value="build\"/>
<property name="jar" value="dcpd.jar"/>
<property name="clientzipfile" value="client.zip"/>
<property name="workerzipfile" value="worker.zip"/>
<property name="build.compiler" value="jikes"/>
<target name="delete">
@ -46,7 +46,7 @@
</target>
<target name="buildworker" depends="clean,jar">
<delete dir="${clientzipfile}"/>
<delete dir="${workerzipfile}"/>
<delete dir="staging"/>
<mkdir dir="staging"/>
<copy file="${lib}/dcpd.jar" toDir="staging"/>
@ -55,7 +55,7 @@
<copy file="${lib}/runtimeonly/reggie.jar" toDir="staging"/>
<copy file="c:\jini-1_2_1\policy\policy.all" toDir="staging"/>
<copy file="etc/linuxclient_go.sh" toDir="staging"/>
<zip zipfile="${clientzipfile}" basedir="staging"/>
<zip zipfile="${workerzipfile}" basedir="staging"/>
</target>

View File

@ -30,19 +30,23 @@ public class DCPD {
public DCPD(String javaSpaceURL) {
try {
long start = System.currentTimeMillis();
System.out.println("Connecting to JavaSpace");
space = Util.findSpace(javaSpaceURL);
System.out.println("Tokenizing");
job = new Job("java_lang", new Integer(1));
tokenSetWrapper = new TokenSetsWrapper(loadTokens("C:\\j2sdk1.4.0_01\\src\\java\\lang\\ref\\", true), job.id);
tokenSetWrapper = new TokenSetsWrapper(loadTokens("C:\\j2sdk1.4.0_01\\src\\java\\lang\\", true), job.id);
System.out.println("Tokenizing complete, " + (System.currentTimeMillis()-start) + " elapsed ms");
System.out.println("Writing the TokenSetsWrapper to the space");
space.write(tokenSetWrapper, null, Lease.FOREVER);
System.out.println("Writing complete, " + (System.currentTimeMillis()-start) + " elapsed ms");
System.out.println("Crunching");
DGST dgst = new DGST(space, job, tokenSetWrapper.tokenSets, 30);
Results results = dgst.crunch(new CPDListenerImpl());
System.out.println("Crunching complete, " + (System.currentTimeMillis()-start) + " elapsed ms");
System.out.println("Cleaning up");
space.take(tokenSetWrapper, null, 200);

View File

@ -39,7 +39,8 @@ public class TilePlanter {
null, null);
space.write(tw, null, Lease.FOREVER);
//System.out.println("Scattering " + tw.tile.getImage() + "->" + tw.occurrences.size());
if (tilesSoFar++ % 25 == 0) {
tilesSoFar++;
if (tilesSoFar % 100 == 0) {
System.out.println("Written " + tilesSoFar + " tiles so far");
}
}