Permalink
Browse files

Fix bug in ZK program.

  • Loading branch information...
1 parent e0e6418 commit 58d90554fd578be386f05bc8695311d96eb0bd6a @tomwhite committed Feb 6, 2012
@@ -28,6 +28,7 @@ public void write(String path, String value) throws InterruptedException,
} else {
zk.setData(path, value.getBytes(CHARSET), stat.getVersion());
}
+ return;
} catch (KeeperException.SessionExpiredException e) {
throw e;
} catch (KeeperException e) {
@@ -5,7 +5,8 @@ bin=`cd "$bin"; pwd`
actual="$bin"/../actual
-for ch in ch02 ch04 ch05 ch07 ch08 ch11 ch12
+# Should add remaining chapters: ch03 ch04 ch14
+for ch in ch02 ch05 ch07 ch08 ch11 ch12
do
# remove any id attributes from program listings
sed '/<programlisting/s/ id=".*"//' ~/book-workspace/htdg3/$ch.xml > /tmp/$ch.xml
@@ -15,3 +15,4 @@ perl $bin/phragmite_db.pl $actual/ch05/ $bin/../../ch05/src/main/resources/max-t
perl $bin/phragmite_db.pl $actual/ch07/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch07)
perl $bin/phragmite_db.pl $actual/common/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../common)
perl $bin/phragmite_db.pl $actual/ch08/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch08)
+perl $bin/phragmite_db.pl $actual/ch14/ $(grep -ElR '(// ?cc|// ?==)' --include '*.java' $bin/../../ch14)

0 comments on commit 58d9055

Please sign in to comment.