From 64f3651fa726d59e507862f7570a1181104ed06e Mon Sep 17 00:00:00 2001 From: Evgeny Goldin Date: Sat, 28 Jan 2012 02:43:10 +0200 Subject: [PATCH] Ant task - "testlib" JUnit tests run --- .../buildtools/ant/BytecodeCompilerTask.java | 5 +- build-tools/build.xml | 151 +++++++++++++++--- 2 files changed, 133 insertions(+), 23 deletions(-) diff --git a/build-tools/ant/src/org/jetbrains/jet/buildtools/ant/BytecodeCompilerTask.java b/build-tools/ant/src/org/jetbrains/jet/buildtools/ant/BytecodeCompilerTask.java index 9f0bfb6f964..e0c4ad04e91 100644 --- a/build-tools/ant/src/org/jetbrains/jet/buildtools/ant/BytecodeCompilerTask.java +++ b/build-tools/ant/src/org/jetbrains/jet/buildtools/ant/BytecodeCompilerTask.java @@ -79,7 +79,7 @@ public class BytecodeCompilerTask extends Task { String source = getPath( this.src ); String destination = getPath( this.output != null ? this.output : this.jar ); - log( String.format( "[%s] => [%s]", source, destination )); + log( String.format( "Compiling [%s] => [%s]", source, destination )); if ( this.output != null ) { compiler.sourcesToDir( source, destination, stdlibPath, classpath ); @@ -97,6 +97,9 @@ public class BytecodeCompilerTask extends Task { String modulePath = getPath( this.module ); String jarPath = ( this.jar != null ? getPath( this.jar ) : null ); + log( jarPath != null ? String.format( "Compiling [%s] => [%s]", modulePath, jarPath ) : + String.format( "Compiling [%s]", modulePath )); + compiler.moduleToJar( modulePath, jarPath, this.includeRuntime, stdlibPath, classpath ); } else { diff --git a/build-tools/build.xml b/build-tools/build.xml index 5ca0a186b4e..be2a96fa142 100644 --- a/build-tools/build.xml +++ b/build-tools/build.xml @@ -14,6 +14,11 @@ + + + + + @@ -79,7 +84,7 @@ - + @@ -90,6 +95,7 @@ + @@ -97,10 +103,16 @@ - + + + + + + + - + @@ -112,20 +124,21 @@ - - + + + - Running [@{classname}], classpath = "${tests-jar}" + Running [@{classname}], classpath = "@{jar}" - + @@ -220,27 +233,121 @@ - - - + + - - - + + + - - - - + + + + - - + + + + - - + + + + + + + + + + + + + + + + Running JUnit: classpath = "@{classpath}" (Jar) + + + + + + + + + + + + + Running JUnit: classpath = "@{classpath}" (Dir) + + + + + + + + + + + + + + + Running JUnit: test = "@{test}", classpath = "@{classpath}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -318,7 +425,7 @@ - +