diff --git a/build.bash b/build.bash
index ce793f9..8a7f6bf 100755
--- a/build.bash
+++ b/build.bash
@@ -15,11 +15,11 @@ fetch() {
   if ! [ -f "${2}/.svn/entries" ]; then
     mkdir "${2}"
     cd "${2}"
-    svn co --non-interactive --trust-server-cert "${1}" "."
+    svn co --non-interactive --trust-server-cert "${1}" -r "${3}" "."
   else
     cd "${2}"
     svn cleanup
-    svn up
+    svn up -r "${3}"
   fi
 )
 }
@@ -37,11 +37,11 @@ gitfetch() {
 }
 
 fetchall() {
-  gitfetch "git://github.com/rtreffer/smack.git" "smack"
-  fetch "http://svn.apache.org/repos/asf/qpid/trunk/qpid/java/management/common/src/main/" "qpid"
-  fetch "http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/auth/src/main/java/common/" "harmony"
-  fetch "https://dnsjava.svn.sourceforge.net/svnroot/dnsjava/trunk" "dnsjava"
-  fetch "https://kenai.com/svn/jbosh~main/trunk/jbosh/src/main/java" "jbosh"
+  fetch "http://svn.igniterealtime.org/svn/repos/smack/trunk" "smack" "11644"
+  fetch "http://svn.apache.org/repos/asf/qpid/trunk/qpid/java/management/common/src/main/" "qpid" "HEAD"
+  fetch "http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/auth/src/main/java/common/" "harmony" "HEAD"
+  fetch "https://dnsjava.svn.sourceforge.net/svnroot/dnsjava/trunk" "dnsjava" "HEAD"
+  gitfetch "git://kenai.com/jbosh~origin" "jbosh"
 }
 
 copyfolder() {
@@ -67,7 +67,7 @@ buildsrc() {
   copyfolder "src/dnsjava"  "build/src/trunk" "org"
   copyfolder "src/harmony" "build/src/trunk" "."
   copyfolder "src/custom" "build/src/trunk" "."
-  copyfolder "src/jbosh" "build/src/trunk" "."
+  copyfolder "src/jbosh/src/main/java" "build/src/trunk" "."
 }
 
 patchsrc() {
