diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-15 01:10:47 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-15 01:10:47 +0300 |
commit | ee7efdb3ac68829f3f7489097b8264d480421b0a (patch) | |
tree | 5f237a4e9ec76bb4db108a40abb7c730ed0bf67a /build/build.xml | |
parent | 474b25d4cf52f43ee086dabd405937ef62520d06 (diff) | |
download | vaadin-framework-ee7efdb3ac68829f3f7489097b8264d480421b0a.tar.gz vaadin-framework-ee7efdb3ac68829f3f7489097b8264d480421b0a.zip |
Made tests compile again (#9299)
Diffstat (limited to 'build/build.xml')
-rw-r--r-- | build/build.xml | 51 |
1 files changed, 22 insertions, 29 deletions
diff --git a/build/build.xml b/build/build.xml index 0bfa4fbebe..8b22d6f750 100644 --- a/build/build.xml +++ b/build/build.xml @@ -26,12 +26,12 @@ <target name="init-deps" depends="common.init-deps" > <property name="ivy.resolved" value="1" /> - <ivy:resolve file="build/ivy/ivy.xml" resolveid="common" conf="ss.compile, cs.compile, ss.test.compile"/> - <ivy:cachepath pathid="ivy.compile.classpath.server" conf="ss.compile"/> - <ivy:cachepath pathid="ivy.compile.classpath.shared" conf="ss.compile"/> - <ivy:cachepath pathid="ivy.compile.classpath.client" conf="cs.compile"/> - <ivy:cachepath pathid="ivy.compile.classpath.client-compiler" conf="cs.compile"/> - <ivy:cachepath pathid="ivy.compile.classpath.server-tests" conf="ss.test.compile"/> + <ivy:resolve file="build/ivy/ivy.xml" resolveid="common" conf="server.extdep, shared.extdep, client.extdep, client-compiler.extdep, server.tests.extdep,client-compiler.extdep"/> + <ivy:cachepath pathid="ivy.compile.classpath.server" conf="server.extdep"/> + <ivy:cachepath pathid="ivy.compile.classpath.shared" conf="shared.extdep"/> + <ivy:cachepath pathid="ivy.compile.classpath.client" conf="client.extdep"/> + <ivy:cachepath pathid="ivy.compile.classpath.client-compiler" conf="client-compiler.extdep"/> + <ivy:cachepath pathid="ivy.compile.classpath.server-tests" conf="server.tests.extdep"/> <ivy:cachepath pathid="buildhelpers.dependencies" resolveId="buildhelpers" conf="compile" file="build/ivy/buildhelpers-ivy.xml"/> @@ -59,6 +59,11 @@ <property name="jarjar-jar" value="${gwt.tools.lib}/tonicsystems/jarjar-1.0rc8.jar"/> + <!-- GWT --> + <path id="gwt.dev.user.jars"> + <pathelement location="${gwt.user.jar}" /> + <pathelement location="${gwt.dev.jar}" /> + </path> <path id="compile.classpath.server"> <path refid="additional.jar.path" /> <path refid="ivy.compile.classpath.server" /> @@ -69,45 +74,28 @@ </path> <path id="compile.classpath.client"> <path refid="additional.jar.path" /> - <!-- GWT --> - <pathelement location="${gwt.user.jar}" /> - <pathelement location="${gwt.dev.jar}" /> - + <path refid="gwt.dev.user.jars"/> <path refid="ivy.compile.classpath.client" /> </path> <path id="compile.classpath.client-compiler"> <path refid="additional.jar.path" /> - <!-- GWT --> - <pathelement location="${gwt.user.jar}" /> - <pathelement location="${gwt.dev.jar}" /> - + <path refid="gwt.dev.user.jars"/> <path refid="ivy.compile.classpath.client-compiler" /> </path> <path id="compile.classpath.sass"> <path refid="additional.jar.path" /> <path refid="ivy.compile.classpath.server" /> - <!-- GWT --> - <pathelement location="${gwt.user.jar}" /> - <pathelement location="${gwt.dev.jar}" /> + <path refid="gwt.dev.user.jars"/> </path> <path id="compile.classpath.server-tests"> <path refid="additional.jar.path" /> - - <!-- GWT --> - <pathelement location="${gwt.user.jar}" /> - <!-- needed at least for Apache Commons --> - <pathelement location="${gwt.dev.jar}" /> - + <path refid="gwt.dev.user.jars"/> <path refid="ivy.compile.classpath.server-tests" /> </path> <path id="compile.classpath.buildhelpers"> <path refid="additional.jar.path" /> - - <!-- GWT --> - <pathelement location="${gwt.user.jar}" /> - <pathelement location="${gwt.dev.jar}" /> - + <path refid="gwt.dev.user.jars"/> <path refid="buildhelpers.dependencies" /> </path> </target> @@ -633,12 +621,14 @@ </javac> </target> - <target name="compile-tests" depends="compile-server,compile-client"> + <target name="compile-tests" depends="compile-server,compile-client,compile-sass"> <echo>Compiling src (Server and client side JUnit tests)</echo> <!-- Compile server and client side JUnit tests --> <mkdir dir="${result-classes-junit}" /> <javac source="${required.java.version}" target="${required.java.version}" classpathref="compile.classpath.server-tests" destdir="${result-classes-junit}" debug="true" encoding="UTF-8" includeantruntime="false"> + <classpath path="${result-classes-shared}"></classpath> <classpath path="${result-classes-server}"></classpath> + <classpath path="${result-classes-client}"></classpath> <src path="${result-src-junit}"/> </javac> @@ -656,6 +646,9 @@ <javac source="${required.java.version}" target="${required.java.version}" classpathref="compile.classpath.server" destdir="${result-classes-testbench}" debug="true" encoding="UTF-8" includeantruntime="false"> <classpath path="${result-classes-junit}"></classpath> <classpath path="${result-classes-server}"></classpath> + <classpath path="${result-classes-shared}"></classpath> + <classpath path="${result-classes-client}"></classpath> + <classpath refid="gwt.dev.user.jars"/> <src path="${result-src-testbench}"/> </javac> |