javauis/eswt_qt/org.eclipse.swt.qt.linux.x86.me/build.xml
changeset 21 2a9601315dfc
child 23 98ccebc37403
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project name="org.eclipse.swt.qt.linux.x86.me" default="build" basedir=".">
       
     3 
       
     4     <target name="help">
       
     5         <echo level="info">
       
     6 Usage: ant [one of the following:]
       
     7 build              : Build debug + release
       
     8 build.jar          : Build all jars
       
     9 build.debug        : Build all debug binaries
       
    10 build.release      : Build all release binaries
       
    11 build.lib          : Build all native libraries
       
    12 build.lib.debug    : Build debug native libraries
       
    13 build.lib.release  : Build release native libraries
       
    14 build.tests        : Build JUnit and MT tests
       
    15 clean              : Clean everything
       
    16 clean.jar          : Clean all jars
       
    17 clean.lib          : Clean native libraries and object files
       
    18 clean.lib.debug    : Clean debug native libraries and object files
       
    19 clean.lib.release  : Clean release native libraries and object files
       
    20 export             : Export everything
       
    21 export.jar         : Export Java classes packed as jar
       
    22 export.debug       : Export all debug binaries
       
    23 export.release     : Export all release binaries
       
    24 export.lib         : Export native libraries
       
    25 export.lib.debug   : Export debug native libraries
       
    26 export.lib.release : Export release native libraries
       
    27 run.tests		   : Run JUnit and MT tests
       
    28         </echo>
       
    29     </target>
       
    30 
       
    31     <target name="init" depends="init.env, init.export.path">
       
    32         <property file="./build.properties"></property>
       
    33         <property name="full.name" value="${fragment}_${version.suffix}"/>
       
    34         <property name="temp.dir" value="${basedir}/temp"/>
       
    35         <property name="plugin.destination" value="${basedir}"/>
       
    36         <property name="build.result.dir" value="${basedir}"/>
       
    37         <property name="download.destination" value="${basedir}"/>
       
    38         <property name="lib.path" value = "${plugin.dir}/Eclipse_SWT_PI/qt/library"/>
       
    39         <property name="lib.gfx.path" value = "${plugin.dir}/Eclipse_SWT_PI/qt/library/graphics"/>
       
    40         <property name="odc.location" value = "${plugin.dir}/Eclipse_SWT_PI/s60"/>
       
    41     	<mkdir dir="${lib.path}/${generated.native.dir}"/>
       
    42         <!-- Platform Specific properties -->
       
    43    </target>
       
    44 
       
    45     <target name="init.env">
       
    46         <property environment = "env"/>
       
    47         <fail message="JAVA_SRC_ROOT system variable not defined">
       
    48             <condition>
       
    49                 <not>
       
    50                     <isset property="env.JAVA_SRC_ROOT"/>
       
    51                 </not>
       
    52             </condition>
       
    53         </fail>
       
    54         <fail message="JAVA_BIN_ROOT system variable not defined">
       
    55             <condition>
       
    56                 <not>
       
    57                     <isset property="env.JAVA_BIN_ROOT"/>
       
    58                 </not>
       
    59             </condition>
       
    60         </fail>
       
    61     </target>
       
    62 
       
    63     <target name="init.export.path">
       
    64         <property name="export.jar.debug.path" value = "${env.JAVA_BIN_ROOT}/jsr/classes"/>
       
    65         <property name="export.jar.release.path" value = "${env.JAVA_BIN_ROOT}/jsr/classes"/>
       
    66         <property name="export.lib.debug.path" value = "${env.JAVA_BIN_ROOT}/lib"/>
       
    67         <property name="export.lib.release.path" value = "${env.JAVA_BIN_ROOT}/lib"/>
       
    68     </target>
       
    69 	
       
    70     <target name="download" depends="init">
       
    71         <delete dir="${temp.dir}"/>
       
    72         <mkdir dir="${temp.dir}/swtdownload/"/>
       
    73         <antcall target="build.jar"/>
       
    74         <jar jarfile="${build.result.dir}/${jar.filename}" basedir="${basedir}/release/" 
       
    75         	update="true" includes="eswt*.dll,libeswt*.so"/>
       
    76         <copy file="${build.result.dir}/${jar.filename}" todir="${temp.dir}/swtdownload"/>
       
    77         <antcall target="src.zip"/>
       
    78         <copy file="${build.result.dir}/src.zip" todir="${temp.dir}/swtdownload"/>
       
    79         <copy file="${plugin.dir}/build/.project" todir="${temp.dir}/swtdownload"/>
       
    80         <copy file="${plugin.dir}/build/.classpath" todir="${temp.dir}/swtdownload"/>
       
    81         <copy todir="${temp.dir}/swtdownload">
       
    82             <fileset dir="${basedir}" includes="about.html,about_files/"/>
       
    83         </copy>
       
    84         <zip zipfile="${download.destination}/eswt-${ws}-${os}-${arch}-${jsdk}.zip">
       
    85             <zipfileset dir="${temp.dir}/swtdownload/"/>
       
    86         </zip>
       
    87         <delete dir="${temp.dir}"/>
       
    88     </target>
       
    89 
       
    90     <target name="src.zip" depends="init">
       
    91         <mkdir dir="${build.result.dir}/"/>
       
    92         <zip zipfile="${build.result.dir}/src.zip">
       
    93             <fileset dir="${plugin.dir}/Eclipse SWT/common/" includes="**/*.java" excludes=""/>
       
    94             <fileset dir="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/" includes="**/*.java" excludes=""/>
       
    95             <fileset dir="${plugin.dir}/Eclipse SWT/qt/" includes="**/*.java" excludes=""/>
       
    96             <fileset dir="${plugin.dir}/Eclipse SWT Browser/common/" includes="**/*.java" excludes=""/>
       
    97             <fileset dir="${plugin.dir}/Eclipse SWT Browser/qt/" includes="**/*.java" excludes=""/>
       
    98             <fileset dir="${plugin.dir}/Eclipse SWT Drag and Drop/qt/" includes="**/*.java" excludes=""/>
       
    99             <fileset dir="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/" includes="**/*.java" excludes=""/>
       
   100             <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/library/"/>
       
   101             <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/graphics_library/"/>
       
   102             <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/" includes="**/*.java" excludes=""/>
       
   103         	<fileset dir="${plugin.dir}/../com.nokia.swt.extensions/extensions/" includes="**/*.java" excludes=""/>
       
   104             <fileset dir="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/" includes="**/*.properties" excludes=""/>
       
   105             <fileset dir="${plugin.dir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/>
       
   106             <fileset dir="${basedir}" includes="about.html,about_files/" excludes=""/>
       
   107         </zip>
       
   108     </target>
       
   109         
       
   110     <target name="gather.sources" depends="init" if="destination.temp.folder">
       
   111         <mkdir dir="${destination.temp.folder}/${full.name}"/>
       
   112         <copy file="${build.result.dir}/src.zip" todir="${destination.temp.folder}/${full.name}/"/>
       
   113         <copy todir="${destination.temp.folder}/${full.name}">
       
   114             <fileset dir="${basedir}" includes="about.html,about_files/"/>
       
   115         </copy>
       
   116     </target>
       
   117 
       
   118     <target name="gather.individual.sources" depends="init">
       
   119         <copy todir="${destination.temp.folder}/" failonerror="true" overwrite="true">
       
   120             <fileset dir="${plugin.dir}/Eclipse SWT/common/" includes="**/*.java" excludes=""/>
       
   121             <fileset dir="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/" includes="**/*.java" excludes=""/>
       
   122             <fileset dir="${plugin.dir}/Eclipse SWT/qt/" includes="**/*.java" excludes=""/>
       
   123             <fileset dir="${plugin.dir}/Eclipse SWT Browser/common/" includes="**/*.java" excludes=""/>
       
   124             <fileset dir="${plugin.dir}/Eclipse SWT Browser/qt/" includes="**/*.java" excludes=""/>
       
   125             <fileset dir="${plugin.dir}/Eclipse SWT Drag and Drop/qt/" includes="**/*.java" excludes=""/>
       
   126             <fileset dir="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/" includes="**/*.java" excludes=""/>
       
   127             <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/" includes="**/*.java" excludes=""/>
       
   128             <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/library/"/>
       
   129             <fileset dir="${plugin.dir}/Eclipse_SWT_PI/qt/graphics_library/"/>
       
   130             <fileset dir="${plugin.dir}/../com.nokia.swt.extensions/extensions/" includes="**/*.java" excludes=""/>
       
   131             <fileset dir="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/" includes="**/*.properties" excludes=""/>
       
   132             <fileset dir="${plugin.dir}/Eclipse SWT/common/" includes="**/version.txt" excludes=""/>
       
   133         </copy>
       
   134     </target>
       
   135 
       
   136     <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
       
   137         <mkdir dir="${destination.temp.folder}/${full.name}"/>
       
   138         <copy todir="${destination.temp.folder}/${full.name}" failonerror="true">
       
   139             <fileset dir="${plugin.dir}/bin" includes="*"/>
       
   140         </copy>
       
   141         <copy todir="${destination.temp.folder}/${full.name}">
       
   142             <fileset dir="${basedir}" includes="eswt*.dll,libeswt*.so,META-INF/"/>
       
   143         </copy>
       
   144         <chmod perm="755" dir="${destination.temp.folder}/${full.name}" includes="eswt*.dll,libeswt*.so" />
       
   145         <eclipse.versionReplacer path="${destination.temp.folder}/${full.name}" version="${version.suffix}"/>
       
   146     </target>
       
   147         
       
   148     <target name="jar.plugin" depends="init">
       
   149         <delete dir="${temp.dir}"/>
       
   150         <mkdir dir="${temp.dir}"/>
       
   151         <antcall target="build.jar"/>
       
   152         <antcall target="gather.bin.parts">
       
   153             <param name="destination.temp.folder" value="${temp.dir}/"/>
       
   154         </antcall>
       
   155         <jar jarfile="${plugin.destination}/${full.name}.jar" 
       
   156                 basedir="${temp.dir}/${full.name}" filesonly="true"/>
       
   157         <delete dir="${temp.dir}"/>
       
   158     </target>
       
   159         
       
   160     <target name="zip.plugin" depends="init">
       
   161         <delete dir="${temp.dir}"/>
       
   162         <mkdir dir="${temp.dir}"/>
       
   163         <antcall target="build.jar"/>
       
   164         <antcall target="src.zip"/>
       
   165         <antcall target="gather.bin.parts">
       
   166             <param name="destination.temp.folder" value="${temp.dir}/"/>
       
   167         </antcall>
       
   168         <antcall target="gather.sources">
       
   169             <param name="destination.temp.folder" value="${temp.dir}/"/>
       
   170         </antcall>
       
   171         <zip zipfile="${plugin.destination}/${full.name}.zip" 
       
   172                 basedir="${temp.dir}" filesonly="true"/>
       
   173         <delete dir="${temp.dir}"/>
       
   174     </target>
       
   175 
       
   176     <target name="build">
       
   177         <antcall target="export.jar"/>
       
   178         <antcall target="export.lib"/>
       
   179     </target>
       
   180         
       
   181     <target name="build.jar" depends="init" description="Produces eswt-qt.jar">
       
   182         <mkdir dir="${plugin.dir}/bin"/>
       
   183         <javac destdir="${plugin.dir}/bin" source="${javac.source}" target="${javac.target}"
       
   184             debug="${javac.debug}" debuglevel="lines,vars,source" verbose="true" failonerror="true">
       
   185             <src path="${plugin.dir}/Eclipse SWT/common/"/>
       
   186             <src path="${plugin.dir}/Eclipse SWT/common_j2${java.edition}/"/>
       
   187             <src path="${plugin.dir}/Eclipse SWT/qt/"/>
       
   188             <src path="${plugin.dir}/Eclipse SWT Browser/common/"/>
       
   189             <src path="${plugin.dir}/Eclipse SWT Browser/qt/"/>
       
   190             <src path="${plugin.dir}/Eclipse SWT Drag and Drop/qt/"/>
       
   191             <src path="${plugin.dir}/Eclipse_SWT_PI/common_j2${java.edition}/"/>
       
   192             <!-- Use S60 CommandPresentationStrategy also for Linux J2ME target -->
       
   193             <src path="${plugin.dir}/Eclipse_SWT_PI/s60/"/>
       
   194             <src path="${plugin.dir}/Eclipse_SWT_PI/qt/"/>
       
   195             <src path="${plugin.dir}/../com.nokia.swt.extensions/extensions/"/>
       
   196             <src path="${plugin.dir}/../com.nokia.swt.extensions/midp_common/"/>
       
   197             <classpath>
       
   198                 <pathelement location="./java_signature_test.jar"/>
       
   199                 <pathelement location="${plugin.dir}/extra_jars/cdc-compilation-support.jar"/>
       
   200             </classpath>
       
   201         </javac>
       
   202         <jar jarfile="${build.result.dir}/${jar.filename}" basedir="${plugin.dir}/bin"/>
       
   203     </target>
       
   204 
       
   205     <target name="build.debug">
       
   206         <antcall target="export.jar.debug"/>
       
   207         <antcall target="export.lib.debug"/>
       
   208     </target>
       
   209 
       
   210     <target name="build.release">
       
   211         <antcall target="export.jar.release"/>
       
   212         <antcall target="export.lib.release"/>
       
   213     </target>
       
   214 
       
   215     <target name="build.lib">
       
   216         <antcall target="build.lib.debug"/>
       
   217         <antcall target="build.lib.release"/>
       
   218     </target>
       
   219 
       
   220     <target name="build.lib.debug" depends="init">
       
   221         <antcall target="build.lib.common">
       
   222             <param name="build.lib.common.config" value="debug"/>
       
   223         </antcall>
       
   224     </target>
       
   225 
       
   226     <target name="build.lib.release" depends="init">
       
   227         <antcall target="build.lib.common">
       
   228             <param name="build.lib.common.config" value="release"/>
       
   229         </antcall>
       
   230     </target>
       
   231 
       
   232     <target name="build.lib.common" depends="init" description="params: config">
       
   233         <javah destdir="${lib.path}/${generated.native.dir}/" classpath="${plugin.dir}/bin" verbose="yes">
       
   234             <class name="org.eclipse.swt.internal.qt.OS"/>
       
   235             <class name="org.eclipse.swt.internal.qt.graphics.OS"/>
       
   236         </javah>
       
   237         <antcall target="qmake">
       
   238             <param name="qmake.dir" value="${lib.path}"/>
       
   239             <param name="qmake.target" value="${build.lib.common.config}"/>
       
   240             <param name="qmake.spec" value="${lib.spec}"/>
       
   241             <param name="qmake.file" value="${lib.makefile}.${build.lib.common.config}"/>
       
   242         </antcall>
       
   243         <antcall target="make">
       
   244             <param name="make.dir" value="${lib.path}"/>
       
   245             <param name="make.file" value="${lib.makefile}.${build.lib.common.config}"/>
       
   246             <param name="make.target" value="all"/>
       
   247         </antcall>
       
   248         <mkdir dir="${build.result.dir}/${build.lib.common.config}/"/>
       
   249         <copy file="${lib.path}/${build.lib.common.config}/${lib.filename}" 
       
   250             tofile="${build.result.dir}/${build.lib.common.config}/${lib.filename}" overwrite="true" verbose="true"/>
       
   251     </target>
       
   252 
       
   253     <target name="clean">
       
   254         <antcall target="clean.jar"/>
       
   255         <antcall target="clean.lib"/>
       
   256     </target>
       
   257 	
       
   258     <target name="clean.jar" depends="init" description="">
       
   259         <delete dir="${plugin.dir}/bin"/>
       
   260         <delete file="${build.result.dir}/${jar.filename}" verbose="true"/>
       
   261         <delete file="${export.jar.debug.path}/${jar.filename}" verbose="true"/>
       
   262     	<delete file="${export.jar.release.path}/${jar.filename}" verbose="true"/>
       
   263     </target>
       
   264 
       
   265     <target name="clean.lib">
       
   266         <antcall target="clean.lib.debug"/>
       
   267         <antcall target="clean.lib.release"/>
       
   268     </target>
       
   269 
       
   270     <target name="clean.lib.debug" depends="init">
       
   271         <antcall target="clean.lib.common">
       
   272             <param name="clean.lib.common.config" value="debug"/>
       
   273         </antcall>
       
   274     </target>
       
   275 
       
   276     <target name="clean.lib.release" depends="init">
       
   277         <antcall target="clean.lib.common">
       
   278             <param name="clean.lib.common.config" value="release"/>
       
   279         </antcall>
       
   280     </target>
       
   281 
       
   282     <target name="clean.lib.common" depends="init" description="params: config">
       
   283         <antcall target="make">
       
   284             <param name="make.dir" value="${lib.path}"/>
       
   285             <param name="make.target" value="clean"/>
       
   286             <param name="make.file" value="${lib.makefile}.${clean.lib.common.config}"/>
       
   287             <param name="fail" value="false"/>
       
   288         </antcall>
       
   289         <delete file="${lib.path}/${lib.makefile}.${clean.lib.common.config}" verbose="true"/>
       
   290         <delete dir="${lib.path}/${generated.native.dir}" verbose="true"/>
       
   291     	<delete dir="${lib.path}/${clean.lib.common.config}" verbose="true"/>
       
   292         <delete file="${build.result.dir}/${clean.lib.common.config}/${lib.filename}" verbose="true"/>
       
   293         <condition property="clean.lib.common.export.path" value="${export.lib.debug.path}" else="${export.lib.release.path}">
       
   294             <equals arg1="${clean.lib.common.config}" arg2="debug"/>
       
   295         </condition>
       
   296         <delete file="${clean.lib.common.export.path}/${lib.filename}" verbose="true"/>
       
   297     </target>
       
   298 
       
   299     <target name="export">
       
   300         <antcall target="export.jar"/>
       
   301         <antcall target="export.lib"/>
       
   302     </target>
       
   303 
       
   304     <target name="export.debug">
       
   305         <antcall target="export.jar.debug"/>
       
   306         <antcall target="export.lib.debug"/>
       
   307     </target>
       
   308 
       
   309     <target name="export.release">
       
   310         <antcall target="export.jar.release"/>
       
   311         <antcall target="export.lib.release"/>
       
   312     </target>
       
   313 
       
   314         <target name="export.jar">
       
   315                 <antcall target="export.jar.debug"/>
       
   316                 <antcall target="export.jar.release"/>
       
   317         </target>
       
   318 
       
   319         <target name="export.jar.debug" depends="build.jar" if="export.jar.debug.path">
       
   320                 <mkdir dir="${export.jar.debug.path}"/>
       
   321                 <copy file="${build.result.dir}/${jar.filename}" 
       
   322             tofile="${export.jar.debug.path}/${jar.filename}" overwrite="true" verbose="true"/>
       
   323                 <copy file="${odc.location}/eswt.odc" 
       
   324             tofile="${export.jar.debug.path}/eswt.odc" overwrite="true" verbose="true"/>
       
   325         </target>
       
   326 
       
   327         <target name="export.jar.release" depends="build.jar" if="export.jar.release.path">
       
   328                 <mkdir dir="${export.jar.release.path}"/>
       
   329                 <copy file="${build.result.dir}/${jar.filename}"
       
   330             tofile="${export.jar.release.path}/${jar.filename}" overwrite="true" verbose="true"/>
       
   331                 <copy file="${odc.location}/eswt.odc" 
       
   332             tofile="${export.jar.release.path}/eswt.odc" overwrite="true" verbose="true"/>
       
   333         </target>
       
   334 
       
   335     <target name="export.lib">
       
   336         <antcall target="export.lib.debug"/>
       
   337         <antcall target="export.lib.release"/>
       
   338     </target>
       
   339 
       
   340     <target name="export.lib.debug" depends="build.lib.debug" if="export.lib.debug.path">
       
   341         <mkdir dir="${export.lib.debug.path}"/>
       
   342         <copy file="${lib.path}/debug/${lib.filename}" 
       
   343             tofile="${export.lib.debug.path}/${lib.filename}" overwrite="true" verbose="true"/>
       
   344     </target>
       
   345 
       
   346     <target name="export.lib.release" depends="build.lib.release" if="export.lib.release.path">
       
   347         <mkdir dir="${export.lib.release.path}"/>
       
   348         <copy file="${lib.path}/release/${lib.filename}"
       
   349             tofile="${export.lib.release.path}/${lib.filename}" overwrite="true" verbose="true"/>
       
   350     </target>
       
   351 
       
   352     <target name="make" description="params: dir, file, target">
       
   353         <exec executable="make" dir="${make.dir}" failonerror="true">
       
   354             <arg line="-f ${make.file} ${make.target}"/>
       
   355         </exec>
       
   356     </target>
       
   357 
       
   358     <target name="qmake" description="params: dir, spec, target">
       
   359         <exec executable="qmake" dir="${qmake.dir}" failonerror="true">
       
   360             <arg line="-spec ${qmake.spec} -o ${qmake.file}"/>
       
   361             <arg value="CONFIG+=${qmake.target}"/>
       
   362             <arg value="DESTDIR=${qmake.target}"/>
       
   363             <arg value="OBJECTS_DIR=${qmake.target}/${qmake.spec}/build"/>
       
   364         </exec>
       
   365     </target>
       
   366 	
       
   367     <target name="build.tests" depends="init,build.release">
       
   368     	<mkdir dir="${tests.utils.dir}/java/bin"/>
       
   369     	<mkdir dir="${tests.junit.dir}/bin"/>
       
   370     	<mkdir dir="${tests.mt.dir}/bin"/>
       
   371         <javac destdir="${tests.utils.dir}/java/bin" source="${javac.source}" target="${javac.target}" 
       
   372         	debug="${javac.debug}" debuglevel="lines,vars,source" verbose="true" failonerror="true">
       
   373         	<src path="${tests.utils.dir}/java/src/"/>
       
   374 	        <classpath>
       
   375             	<pathelement path="${plugin.dir}/bin/"/>
       
   376 	        </classpath>
       
   377         </javac>
       
   378         
       
   379 		<javah outputfile="${tests.utils.dir}/native/os.h" classpath="${tests.utils.dir}/java/bin" verbose="yes">
       
   380             <class name="com.nokia.mj.impl.uitestutils.XlibUtils"/>
       
   381         </javah>
       
   382         <antcall target="qmake">
       
   383             <param name="qmake.dir" value="${tests.utils.dir}/native"/>
       
   384             <param name="qmake.target" value="release"/>
       
   385             <param name="qmake.spec" value="${lib.spec}"/>
       
   386             <param name="qmake.file" value="${lib.makefile}.release"/>
       
   387         </antcall>
       
   388         <antcall target="make">
       
   389             <param name="make.dir" value="${tests.utils.dir}/native"/>
       
   390             <param name="make.file" value="${lib.makefile}.release"/>
       
   391             <param name="make.target" value="all"/>
       
   392         </antcall>
       
   393     	<copy file="${tests.utils.dir}/native/release/libxlibevents.so" 
       
   394     	            tofile="${build.result.dir}/release/libxlibevents.so" overwrite="true" verbose="true"/>
       
   395     	
       
   396         <copy file="${build.result.dir}/release/libxlibevents.so" 
       
   397             tofile="${export.lib.release.path}/libxlibevents.so" overwrite="true" verbose="true"/>
       
   398         
       
   399         <copy includeemptydirs="false" todir="${tests.junit.dir}/bin">
       
   400             <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.core.tests/src/" excludes="**/*.java"/>
       
   401             <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.core.tests.qt/src/" excludes="**/*.java"/>
       
   402             <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.expanded.tests/src/" excludes="**/*.java"/>
       
   403             <!--<fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.expanded.tests.qt/src/" excludes="**/*.java"/>-->
       
   404             <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.mobile.tests.tck/src/" excludes="**/*.java"/>
       
   405             <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.mobile.tests.qt/src/" excludes="**/*.java"/>
       
   406             <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.tests/" excludes="**/*.java"/>
       
   407             <fileset dir="${tests.junit.dir}/org.eclipse.swt.tests/JUnit Tests/" excludes="**/*.java"/>
       
   408         </copy>    
       
   409         <javac destdir="${tests.junit.dir}/bin" source="${javac.source}" target="${javac.target}" 
       
   410                 debug="${javac.debug}" debuglevel="lines,vars,source" verbose="true" failonerror="true">
       
   411             <src path="${tests.junit.dir}/org.eclipse.ercp.swt.core.tests/src/"/>
       
   412             <src path="${tests.junit.dir}/org.eclipse.ercp.swt.expanded.tests/src/"/>
       
   413             <src path="${tests.junit.dir}/org.eclipse.ercp.swt.mobile.tests.tck/src/"/>
       
   414             <src path="${tests.junit.dir}/org.eclipse.ercp.swt.core.tests.qt/src/"/>
       
   415             <src path="${tests.junit.dir}/org.eclipse.ercp.swt.mobile.tests.qt/src/"/>
       
   416             <src path="${tests.junit.dir}/org.eclipse.ercp.swt.expanded.tests.qt/src/"/>
       
   417             <exclude name="**/Test_com_ibm_ugl_UGLCompatibility.java"/>
       
   418             <classpath>
       
   419                 <pathelement location="${tests.mt.dir}/junit-3.8.1.1.jar"/>
       
   420                 <pathelement path="${plugin.dir}/bin/"/>
       
   421             </classpath>
       
   422         </javac>        
       
   423         
       
   424        <copy includeemptydirs="false" todir="${tests.mt.dir}/bin">
       
   425             <fileset dir="${tests.mt.dir}/res/"/>
       
   426         </copy> 
       
   427         <javac destdir="${tests.mt.dir}/bin" source="${javac.source}" target="${javac.target}" 
       
   428         	debug="${javac.debug}" debuglevel="lines,vars,source" verbose="true" failonerror="true">
       
   429         	<src path="${tests.mt.dir}/src/"/>
       
   430             <classpath>
       
   431             	<pathelement location="${tests.mt.dir}/junit-3.8.1.1.jar"/>
       
   432             	<pathelement path="${plugin.dir}/bin/"/>
       
   433             	<pathelement path="${tests.junit.dir}/bin/"/>
       
   434             	<pathelement path="${tests.utils.dir}/java/bin/"/>
       
   435             </classpath>
       
   436         </javac>
       
   437         <jar jarfile="${build.result.dir}/eswt-qt-tests.jar" excludes="**/*.java">
       
   438     		<fileset dir="${tests.utils.dir}/java/bin"/>
       
   439     		<fileset dir="${tests.junit.dir}/bin"/>
       
   440                 
       
   441                 <!-- JUnit test resources are in the source folders -->
       
   442                 <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.core.tests/src"/> 
       
   443                 <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.core.tests.qt/src"/> 
       
   444                 <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.expanded.tests/src"/> 
       
   445                 <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.mobile.tests.qt/src"/> 
       
   446                 <fileset dir="${tests.junit.dir}/org.eclipse.ercp.swt.mobile.tests.tck/src"/> 
       
   447                 
       
   448     		<fileset dir="${tests.mt.dir}/bin"/>
       
   449     	</jar>
       
   450     	<copy file="${build.result.dir}/eswt-qt-tests.jar" todir="${export.jar.release.path}"/>
       
   451 	<copy file="${tests.mt.dir}/junit-3.8.1.1.jar" todir="${export.jar.release.path}"/>
       
   452     </target>
       
   453 	
       
   454     <target name="clean.tests" depends="init">
       
   455     	<delete dir="${tests.utils.dir}/java/bin"/>
       
   456     	<delete dir="${tests.utils.dir}/native/release"/>
       
   457     	<delete dir="${tests.utils.dir}/native/debug"/>
       
   458     	<delete dir="${tests.junit.dir}/bin"/>
       
   459     	<delete dir="${tests.mt.dir}/bin"/>
       
   460     	<delete file="${build.result.dir}/eswt-qt-tests.jar" verbose="true"/>
       
   461     	<delete file="${build.result.dir}/release/libxlibevents.so" verbose="true"/>
       
   462     	<delete file="${build.result.dir}/debug/libxlibevents.so" verbose="true"/>
       
   463     </target>
       
   464     
       
   465  	 <target name="run.tests" depends="init,build.tests">
       
   466 	 	<record name="testresults.txt" action="start"/>
       
   467 	 	  <exec executable ="javainstaller" >
       
   468 	 		<arg line="test -mainclass=com.nokia.eswt.mt.AllTests"/>
       
   469 	 	  </exec>
       
   470 	 	<record name="testresults.txt" action="stop"/>
       
   471 	 </target>
       
   472 	
       
   473 </project>
       
   474