| <project name="Generate SDK Test Results HTML" default="genResults"> |
| |
| <condition property="resultsDefined"> |
| <isset property="results"/> |
| </condition> |
| |
| <condition property="eclipseHomeSet"> |
| <isset property="eclipse-home"/> |
| </condition> |
| |
| <condition property="testframeworkSet"> |
| <isset property="testframework"/> |
| </condition> |
| |
| <property name="htmlDir" value="${results}/html"/> |
| <property name="xmlDir" value="${results}/xml"/> |
| |
| <target name="genResults"> |
| <fail message="results directory not set" |
| unless="resultsDefined"/> |
| <fail message="Eclipse installation directory not set" |
| unless="eclipseHomeSet"/> |
| <fail message="Test framework directory not set" |
| unless="testframeworkSet"/> |
| <echo message="Generating results in ${htmlDir}"/> |
| <xslt style="${eclipse-home}/plugins/${testframework}/JUNIT.XSL" basedir="${xmlDir}" destdir="${htmlDir}" /> |
| </target> |
| |
| </project> |