From fe5a49b44178c42348e7cd1ebc20adcdbf66a720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 5 Mar 2013 15:17:52 +0100 Subject: Algorithms-I : 1-Percolation: update run.sh --- Algorithms/Part-I/1-Percolation/run.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Algorithms/Part-I/1-Percolation/run.sh b/Algorithms/Part-I/1-Percolation/run.sh index 5987222..c762d4e 100755 --- a/Algorithms/Part-I/1-Percolation/run.sh +++ b/Algorithms/Part-I/1-Percolation/run.sh @@ -1,18 +1,21 @@ #! /bin/bash -export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar" +export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar" CLASSES="Percolation PercolationStats" -rm *.class +rm *.class *.zip 2>/dev/null + for kls in $CLASSES; do ~/algs4/bin/checkstyle ${kls}.java javac ${kls}.java - # ~/algs4/bin/findbugs ${kls}.class done +~/algs4/bin/findbugs *.class +echo "RUN..." java PercolationStats 200 100 java PercolationStats 200 100 -java PercolationStats 2000 100 java PercolationStats 2 10000 java PercolationStats 2 1000000 + +zip percolation.zip Percolation.java PercolationStats.java -- cgit v1.1-2-g2b99