Bug 462605 - [otdre] running OTDT on OTDRE
- try to build for and run tests on otdre
diff --git a/releng/build-scripts/build/compiler.OTDT-Build.properties b/releng/build-scripts/build/compiler.OTDT-Build.properties
index 32fe9ba..0235c1d 100644
--- a/releng/build-scripts/build/compiler.OTDT-Build.properties
+++ b/releng/build-scripts/build/compiler.OTDT-Build.properties
@@ -1,7 +1,7 @@
 # Configure the build compiler for phase 2.
 # This file is read from build/build.xml
 build.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
-compilerArg=-enableJavadoc -encoding UTF-8 -proc:none
+compilerArg=-enableJavadoc -encoding UTF-8 -proc:none -ot.weaving:otdre
 javaSource=1.6
 javacSource=1.6
 javacTarget=1.6
diff --git a/releng/build-scripts/build/test.xml b/releng/build-scripts/build/test.xml
index 7e3e8de..d3d9c5b 100644
--- a/releng/build-scripts/build/test.xml
+++ b/releng/build-scripts/build/test.xml
@@ -17,6 +17,8 @@
 	<!--properties file containing the build information-->

 	<property file="src/label.properties" />

 	<property file="src/finalPluginsVersions.properties" />

+	<property name="otequinox.agent.jar" value="${test.root.dir}/../otequinoxAgent.jar"/>

+

 

 	<target name="readFlags">

 		<condition property="really.build.all">

@@ -65,7 +67,7 @@
 		<ant antfile="plugins/${testPlugin}/test.xml" dir="${test.eclipseDir}">

 			<property name="eclipse-home" value="${test.eclipseDir}" />

 			<property name="library-file" value="${test.root.dir}/library.xml"/>

-            <property name="extraVMargs" value="-XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=${test.tmpDir}"/>

+            <property name="extraVMargs" value="-XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=${test.tmpDir} -Dot.weaving=otdre -javaagent:${otequinox.agent.jar}"/>

 		</ant>

 	</target>