Update script debug_transpile.sh due to changes in J2CL rules.
java_dir="third_party/java_src/j2cl/transpiler/javatests"
examples_dir="$java_dir/com/google/j2cl/transpiler/readable/"
-transpiler_bin="blaze-bin/third_party/java_src/j2cl/transpiler/java/com/google/j2cl/transpiler/J2clTranspiler"
+transpiler_bin="blaze-bin/third_party/java_src/j2cl/transpiler/java/com/google/j2cl/transpiler/BazelJ2clBuilder"
jre_jar="blaze-bin/third_party/java_src/j2cl/transpiler/javatests/com/google/j2cl/transpiler/integration/jre_bundle_deploy.jar"
jsinterop_jar="blaze-bin/third_party/java_src/gwt/svn/trunk/user/libgwt-jsinterop-annotations.jar"
java_annotations_jar="/google/src/head/depot/google3/third_party/java/jsr305_annotations/v0_r47/jsr305.jar"
@@ -38,7 +38,7 @@ blaze build third_party/java_src/j2cl/transpiler/javatests/com/google/j2cl/trans
&> /dev/null
# Build the transpiler
-blaze build third_party/java_src/j2cl/transpiler/java/com/google/j2cl/transpiler:J2clTranspiler
+blaze build third_party/java_src/j2cl/transpiler/java/com/google/j2cl/transpiler:BazelJ2clBuilder
# Figure out where the referenced example lives
@@ -51,4 +51,4 @@ for java_file in $(find $example_dir -name '*.java' -or -name "*.srcjar") ; do
done
# Transpile and debug it
-$transpiler_bin --debug --jvm_flag=-ea -d /tmp/gen/$example_name -cp $jre_jar:$jsinterop_jar:$java_annotations_jar $example_files
+$transpiler_bin --debug --jvm_flag=-ea -output /tmp/$example_name.zip -classpath $jre_jar:$jsinterop_jar:$java_annotations_jar $example_files
