diff --git a/apps/desktopgui/build.xml b/apps/desktopgui/build.xml
index b85975d8bd..176570f316 100644
--- a/apps/desktopgui/build.xml
+++ b/apps/desktopgui/build.xml
@@ -9,6 +9,7 @@
+
@@ -39,10 +40,10 @@
-
+
-
+
@@ -109,15 +110,15 @@
-
+
-
+
-
+
diff --git a/apps/desktopgui/bundle-messages.sh b/apps/desktopgui/bundle-messages.sh
index 420fb59457..ce73e038dd 100644
--- a/apps/desktopgui/bundle-messages.sh
+++ b/apps/desktopgui/bundle-messages.sh
@@ -13,6 +13,7 @@
CLASS=net.i2p.desktopgui.messages
TMPFILE=build/javafiles.txt
export TZ=UTC
+RC=0
if [ "$1" = "-p" ]
then
@@ -76,15 +77,17 @@ do
-o ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - xgettext failed, not updating translations'
+ echo "ERROR - xgettext failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
msgmerge -U --backup=none $i ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - msgmerge failed, not updating translations'
+ echo "ERROR - msgmerge failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
rm -f ${i}t
@@ -101,11 +104,13 @@ do
msgfmt --java --statistics -r $CLASS -l $LG -d build $i
if [ $? -ne 0 ]
then
- echo 'Warning - msgfmt failed, not updating translations'
+ echo "ERROR - msgfmt failed on ${i}, not updating translations"
+ # msgfmt leaves the class file there so the build would work the next time
+ find build -name messages_${LG}.class -exec rm -f {} \;
+ RC=1
break
fi
fi
done
rm -f $TMPFILE
-# todo: return failure
-exit 0
+exit $RC
diff --git a/apps/i2psnark/java/build.xml b/apps/i2psnark/java/build.xml
index f5906e3bf8..edc92ed5b1 100644
--- a/apps/i2psnark/java/build.xml
+++ b/apps/i2psnark/java/build.xml
@@ -22,7 +22,10 @@
+
+
+
@@ -111,10 +114,10 @@
-
+
-
+
@@ -125,15 +128,15 @@
-
+
-
+
-
+
diff --git a/apps/i2psnark/java/bundle-messages.sh b/apps/i2psnark/java/bundle-messages.sh
index 64fc69f838..079103f31b 100755
--- a/apps/i2psnark/java/bundle-messages.sh
+++ b/apps/i2psnark/java/bundle-messages.sh
@@ -12,6 +12,7 @@
CLASS=org.klomp.snark.web.messages
TMPFILE=build/javafiles.txt
export TZ=UTC
+RC=0
if [ "$1" = "-p" ]
then
@@ -67,15 +68,17 @@ do
-o ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - xgettext failed, not updating translations'
+ echo "ERROR - xgettext failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
msgmerge -U --backup=none $i ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - msgmerge failed, not updating translations'
+ echo "ERROR - msgmerge failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
rm -f ${i}t
@@ -92,11 +95,13 @@ do
msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
if [ $? -ne 0 ]
then
- echo 'Warning - msgfmt failed, not updating translations'
+ echo "ERROR - msgfmt failed on ${i}, not updating translations"
+ # msgfmt leaves the class file there so the build would work the next time
+ find build/obj -name messages_${LG}.class -exec rm -f {} \;
+ RC=1
break
fi
fi
done
rm -f $TMPFILE
-# todo: return failure
-exit 0
+exit $RC
diff --git a/apps/i2ptunnel/java/build.xml b/apps/i2ptunnel/java/build.xml
index b7fe4e9083..1778ffb872 100644
--- a/apps/i2ptunnel/java/build.xml
+++ b/apps/i2ptunnel/java/build.xml
@@ -20,7 +20,10 @@
+
+
+
@@ -83,10 +86,10 @@
-
+
-
+
@@ -97,15 +100,15 @@
-
+
-
+
-
+
diff --git a/apps/i2ptunnel/java/bundle-messages.sh b/apps/i2ptunnel/java/bundle-messages.sh
index 74bbc573e1..d51cffc173 100755
--- a/apps/i2ptunnel/java/bundle-messages.sh
+++ b/apps/i2ptunnel/java/bundle-messages.sh
@@ -12,6 +12,7 @@
CLASS=net.i2p.i2ptunnel.web.messages
TMPFILE=build/javafiles.txt
export TZ=UTC
+RC=0
if [ "$1" = "-p" ]
then
@@ -69,15 +70,17 @@ do
-o ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - xgettext failed, not updating translations'
+ echo "ERROR - xgettext failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
msgmerge -U --backup=none $i ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - msgmerge failed, not updating translations'
+ echo "ERROR - msgmerge failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
rm -f ${i}t
@@ -94,11 +97,13 @@ do
msgfmt --java --statistics -r $CLASS -l $LG -d ../jsp/WEB-INF/classes $i
if [ $? -ne 0 ]
then
- echo 'Warning - msgfmt failed, not updating translations'
+ echo "ERROR - msgfmt failed on ${i}, not updating translations"
+ # msgfmt leaves the class file there so the build would work the next time
+ find src/WEB-INF/classes -name messages_${LG}.class -exec rm -f {} \;
+ RC=1
break
fi
fi
done
rm -f $TMPFILE
-# todo: return failure
-exit 0
+exit $RC
diff --git a/apps/routerconsole/java/build.xml b/apps/routerconsole/java/build.xml
index 7de6836ccd..f49153486c 100644
--- a/apps/routerconsole/java/build.xml
+++ b/apps/routerconsole/java/build.xml
@@ -101,10 +101,10 @@
-
+
-
+
@@ -133,15 +133,15 @@
-
+
-
+
-
+
diff --git a/apps/routerconsole/java/bundle-messages.sh b/apps/routerconsole/java/bundle-messages.sh
index 01f4d05a63..e75e0d8976 100755
--- a/apps/routerconsole/java/bundle-messages.sh
+++ b/apps/routerconsole/java/bundle-messages.sh
@@ -12,6 +12,7 @@
CLASS=net.i2p.router.web.messages
TMPFILE=build/javafiles.txt
export TZ=UTC
+RC=0
if [ "$1" = "-p" ]
then
@@ -106,15 +107,17 @@ do
-o ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - xgettext failed, not updating translations'
+ echo "ERROR - xgettext failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
msgmerge -U --backup=none $i ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - msgmerge failed, not updating translations'
+ echo "ERROR - msgmerge failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
rm -f ${i}t
@@ -131,11 +134,13 @@ do
msgfmt --java --statistics -r $CLASS -l $LG -d build/obj $i
if [ $? -ne 0 ]
then
- echo 'Warning - msgfmt failed, not updating translations'
+ echo "ERROR - msgfmt failed on ${i}, not updating translations"
+ # msgfmt leaves the class file there so the build would work the next time
+ find build/obj -name messages_${LG}.class -exec rm -f {} \;
+ RC=1
break
fi
fi
done
rm -f $TMPFILE
-# todo: return failure
-exit 0
+exit $RC
diff --git a/apps/susidns/src/build.xml b/apps/susidns/src/build.xml
index 9fe4f3497d..d287e5a4d0 100644
--- a/apps/susidns/src/build.xml
+++ b/apps/susidns/src/build.xml
@@ -23,6 +23,7 @@
+
@@ -120,10 +121,10 @@
-
+
-
+
@@ -134,15 +135,15 @@
-
+
-
+
-
+
diff --git a/apps/susidns/src/bundle-messages.sh b/apps/susidns/src/bundle-messages.sh
index 349eb3f1db..0a3f4e5bcf 100755
--- a/apps/susidns/src/bundle-messages.sh
+++ b/apps/susidns/src/bundle-messages.sh
@@ -12,6 +12,7 @@
CLASS=i2p.susi.dns.messages
TMPFILE=tmp/javafiles.txt
export TZ=UTC
+RC=0
if [ "$1" = "-p" ]
then
@@ -69,15 +70,17 @@ do
-o ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - xgettext failed, not updating translations'
+ echo "ERROR - xgettext failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
msgmerge -U --backup=none $i ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - msgmerge failed, not updating translations'
+ echo "ERROR - msgmerge failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
rm -f ${i}t
@@ -94,11 +97,13 @@ do
msgfmt --java --statistics -r $CLASS -l $LG -d WEB-INF/classes $i
if [ $? -ne 0 ]
then
- echo 'Warning - msgfmt failed, not updating translations'
+ echo "ERROR - msgfmt failed on ${i}, not updating translations"
+ # msgfmt leaves the class file there so the build would work the next time
+ find WEB-INF/classes -name messages_${LG}.class -exec rm -f {} \;
+ RC=1
break
fi
fi
done
rm -f $TMPFILE
-# todo: return failure
-exit 0
+exit $RC
diff --git a/apps/susimail/build.xml b/apps/susimail/build.xml
index 7c40f0e973..8a8d33c4ad 100644
--- a/apps/susimail/build.xml
+++ b/apps/susimail/build.xml
@@ -5,7 +5,10 @@
+
+
+
-
+
-
+
@@ -80,15 +83,15 @@
-
+
-
+
-
+
diff --git a/apps/susimail/bundle-messages.sh b/apps/susimail/bundle-messages.sh
index 10b6f150ab..0cfe996f5d 100644
--- a/apps/susimail/bundle-messages.sh
+++ b/apps/susimail/bundle-messages.sh
@@ -12,6 +12,7 @@
CLASS=i2p.susi.webmail.messages
TMPFILE=javafiles.txt
export TZ=UTC
+RC=0
if [ "$1" = "-p" ]
then
@@ -67,15 +68,17 @@ do
-o ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - xgettext failed, not updating translations'
+ echo "ERROR - xgettext failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
msgmerge -U --backup=none $i ${i}t
if [ $? -ne 0 ]
then
- echo 'Warning - msgmerge failed, not updating translations'
+ echo "ERROR - msgmerge failed on ${i}, not updating translations"
rm -f ${i}t
+ RC=1
break
fi
rm -f ${i}t
@@ -92,11 +95,14 @@ do
msgfmt --java --statistics -r $CLASS -l $LG -d src/WEB-INF/classes $i
if [ $? -ne 0 ]
then
- echo 'Warning - msgfmt failed, not updating translations'
+ echo "ERROR - msgfmt failed on ${i}, not updating translations"
+ # msgfmt leaves the class file there so the build would work the next time
+ find src/WEB-INF/classes -name messages_${LG}.class -exec rm -f {} \;
+ RC=1
break
fi
fi
done
rm -f $TMPFILE
# todo: return failure
-exit 0
+exit $RC
diff --git a/build.xml b/build.xml
index 42e31f0381..de85b68d63 100644
--- a/build.xml
+++ b/build.xml
@@ -13,6 +13,9 @@
-->
+
+
+
diff --git a/history.txt b/history.txt
index 9df07486f2..a05713b61d 100644
--- a/history.txt
+++ b/history.txt
@@ -1,9 +1,14 @@
+2011-06-13 zzz
+ * To ensure we don't release bad packages, fail the build
+ if gettext fails. Change property at top of build.xml if
+ you don't have gettext and want the build to continue.
+
2011-06-12 kytv
* Add jcpuid files (32 & 64bit) for Intel Macs
* Compile jbigi-osx-none for Intel Macs. libjbigi-osx-none.jnilib
is now a fat binary combining the already existing PPC
compile and my new x86 build.
-
+
2011-06-11 zzz
* i2psnark Polish translation, thanks polacco
diff --git a/router/java/src/net/i2p/router/RouterVersion.java b/router/java/src/net/i2p/router/RouterVersion.java
index b7509f1d34..5f540c84e1 100644
--- a/router/java/src/net/i2p/router/RouterVersion.java
+++ b/router/java/src/net/i2p/router/RouterVersion.java
@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
- public final static long BUILD = 25;
+ public final static long BUILD = 26;
/** for example "-test" */
public final static String EXTRA = "";