Author: sebb
Date: Sat Dec  8 08:22:53 2007
New Revision: 602496

URL: http://svn.apache.org/viewvc?rev=602496&view=rev
Log:
Add some checks to see if the correct classes are present

Modified:
    jakarta/jmeter/trunk/extras/build.xml

Modified: jakarta/jmeter/trunk/extras/build.xml
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/extras/build.xml?rev=602496&r1=602495&r2=602496&view=diff
==============================================================================
--- jakarta/jmeter/trunk/extras/build.xml (original)
+++ jakarta/jmeter/trunk/extras/build.xml Sat Dec  8 08:22:53 2007
@@ -109,7 +109,7 @@
        <pathelement location="${serializer.jar}"/>
     </path>
 
-       <target name="report">
+       <target name="report" depends="_message_xalan">
                <xslt
                        classpathref="xslt.classpath"
                        force="true"
@@ -119,4 +119,21 @@
                        <param name="showData" expression="${show-data}"/>
                </xslt>
        </target>
+
+       <!-- Check that the xalan libraries are present -->
+       <condition property="xalan.present">
+               <and>
+                       <!-- No need to check all jars; just check a few -->
+               <available classpathref="xslt.classpath" 
classname="org.apache.xalan.processor.TransformerFactoryImpl"/>
+               <available classpathref="xslt.classpath" 
classname="org.apache.xml.serializer.ExtendedContentHandler"/>
+               </and>
+       </condition>
+
+       <target name="_message_xalan" unless="xalan.present">
+               <echo>Cannot find all xalan and/or serialiser jars</echo>
+               <echo>The XSLT formatting may not work correctly.</echo>
+               <echo>Check you have ${xalan.jar} and ${serializer.jar}</echo>
+       </target>
+
+
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to