Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

THRIFT-1133 Java and JavaScript tutorial is broken since we have Java…

… maven deployment

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1090454 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 5fc6973bdf5afed28c6889b91b84a11ecc39fbb0 1 parent c65e397
Roger Meier bufferoverflow authored
5 tutorial/java/JavaClient
View
@@ -18,8 +18,5 @@
# specific language governing permissions and limitations
# under the License.
#
-THIS_DIR=$(dirname $0)
-LIB_DIR=$THIS_DIR/../../lib/java/
-IVY_DIR=$LIB_DIR/build/ivy/lib/
-java -cp $IVY_DIR/*:$LIB_DIR/libthrift.jar:tutorial.jar JavaClient $1
+java -cp ../../lib/java/build/lib/*:../../lib/java/build/*:tutorial.jar JavaClient $1
5 tutorial/java/JavaServer
View
@@ -18,9 +18,6 @@
# specific language governing permissions and limitations
# under the License.
#
-THIS_DIR=$(dirname $0)
-LIB_DIR=$THIS_DIR/../../lib/java/
-IVY_DIR=$LIB_DIR/build/ivy/lib/
# Optionally the following properties could be set for SSL instead
# of configuring it in the code
@@ -29,4 +26,4 @@ IVY_DIR=$LIB_DIR/build/ivy/lib/
# -Djavax.net.ssl.keyStore=../../lib/java/test/.keystore
# -Djavax.net.ssl.keyStorePassword=thrift
-java -cp $IVY_DIR/*:$LIB_DIR/libthrift.jar:tutorial.jar JavaServer
+java -cp ../../lib/java/build/lib/*:../../lib/java/build/*:tutorial.jar JavaServer
7 tutorial/java/build.xml
View
@@ -25,8 +25,11 @@
<property name="build" location="build" />
<path id="libs.classpath">
- <pathelement path="../../lib/java/libthrift.jar" />
- <fileset dir="../../lib/java/build/ivy/lib">
+ <fileset dir="../../lib/java/build">
+ <include name="*.jar" />
+ <exclude name="-test.jar" />
+ </fileset>
+ <fileset dir="../../lib/java/build/lib">
<include name="*.jar" />
</fileset>
</path>
7 tutorial/js/build.xml
View
@@ -30,8 +30,11 @@
<property name="thrift.java.dir" location="${thrift.dir}/lib/java" />
<path id="libs.classpath">
- <pathelement path="${thrift.java.dir}/libthrift.jar" />
- <fileset dir="${thrift.java.dir}/build/ivy/lib">
+ <fileset dir="../../lib/java/build">
+ <include name="*.jar" />
+ <exclude name="-test.jar" />
+ </fileset>
+ <fileset dir="../../lib/java/build/lib">
<include name="*.jar" />
</fileset>
</path>
Please sign in to comment.
Something went wrong with that request. Please try again.