abreslav wrote:
What went wrong with “ant build -f build.xml”?
Hi Andrey, I tried building the master branch using the versions of Java and Ant I had originally attempted to build Kotlin with:
$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
$ ant -version
Apache Ant(TM) version 1.9.3 compiled on December 23 2013
STR what went wrong:
$ ant -f update_dependencies.xml
...full ant output omited for brevities sake...
BUILD SUCCESSFUL
Total time: 3 minutes 46 seconds
$ ant -f build.xml
...again full ant output omited for brevity...
BUILD FAILED
D:GitHubkotlinbuild.xml:242: java.lang.NoSuchMethodError: com.google.common.io.ByteStreams.limit(Ljava/io/InputStream;J)Ljava/io/InputStream;
at com.google.javascript.jscomp.CommandLineRunner.getDefaultExterns(CommandLineRunner.java:939)
at com.google.javascript.jscomp.ant.CompileTask.getDefaultExterns(CompileTask.java:532)
at com.google.javascript.jscomp.ant.CompileTask.findExternFiles(CompileTask.java:470)
at com.google.javascript.jscomp.ant.CompileTask.execute(CompileTask.java:285)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 1 minute 56 seconds
I attached the failure output snippet as a log file as well.
It seems that Ant 1.9.3 was the issue. When I used 1.9.2, Kotlin built successfully:
$ ant -version
Apache Ant(TM) version 1.9.2 compiled on July 8 2013
$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
$ ant -f build.xml
... b/c brevity...
BUILD SUCCESSFUL
Total time: 2 minutes 3 seconds
Message was edited by: Peter Colapietro. renamed attachment from 1.7.0_55.log to ant_1_9_3.log to avoid confusion as Java 7 seems to have nothing to do with the issue.
ant_1_9_3.log.zip (733 Bytes)