pantsbuild / jarjar

An export of https://code.google.com/p/jarjar/ @ svn:r142 for pants tool use and further development.
Apache License 2.0
37 stars 27 forks source link

[DO NOT MERGE] Script to demonstrate the error where jarjar fails but returns 0. #4

Closed gmalmquist closed 9 years ago

gmalmquist commented 9 years ago

Demonstrates the bug described in issue #2.

Output:

~/Src/jarjar gmalmquist/jarjar-returncode-lies ./lies.sh
Buildfile: /Users/gmalmquist/Src/jarjar/build.xml

init:
     [echo] bootclasspath

compile:
    [javac] Compiling 1 source file to /Users/gmalmquist/Src/jarjar/build/main
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings

jar:
   [jarjar] Building jar: /Users/gmalmquist/Src/jarjar/dist/jarjar-1.5.jar

BUILD SUCCESSFUL
Total time: 1 second
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3028k  100 3028k    0     0  2884k      0  0:00:01  0:00:01 --:--:-- 2887k

Running JarJar:
Syntax error: Duplicate jar entries: com/sun/codemodel/CodeWriter.class

Exit code: 0