THRIFT-1073 fix javadoc target
Patch: Diwaker Gupta


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1074173 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/build.xml b/lib/java/build.xml
index 7c66438..f0b09b4 100644
--- a/lib/java/build.xml
+++ b/lib/java/build.xml
@@ -137,7 +137,7 @@
     <javac srcdir="${src}" destdir="${build}" source="1.5" target="1.5" debug="true" classpathref="compile.classpath" />
   </target>
 
-  <target name="javadoc" depends="init">
+  <target name="javadoc" depends="init,resolve,resolve-offline">
     <javadoc sourcepath="${src}"
       destdir="${javadoc}"
       version="true"