seems that setting the system property doesn't work either:

        <goal name="testreport">
        
${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apac
he.xalan.processor.TransformerFactoryImpl')}
                <ant:property name="report.dir"
value="${maven.build.dir}/test-reports"/>
                <ant:junitreport todir="${report.dir}">
                        <ant:fileset dir="${report.dir}">
                                <ant:include name ="TEST-*.xml"/>
                        </ant:fileset>
                        <ant:report format="frames"
todir="${report.dir}/html" />
                </ant:junitreport>
        </goal>

still gives this error:

BUILD FAILED
File...... file:/C:/home/project/v2/stroll/
Element... ant:junitreport
Line...... 49
Column.... 42
Could not find xalan2 nor xalan1 in the classpath. Check
http://xml.apache.org/xalan-j

> -----Original Message-----
> From: Jamie McCrindle [mailto:[EMAIL PROTECTED]
> Sent: 03 October 2003 11:06
> To: 'Maven Users List'
> Subject: junitreport and xalan
> 
> 
> hi,
> 
> i'm trying to use ant:junitreport to generate test reports instead of
> maven-junit-report, because it displays the more information 
> about the test
> failures. i'm using this in my maven.xml:
> 
>   <goal name="testreport">
>               <ant:junitreport todir="${report.dir}">
>                       <ant:fileset dir="${report.dir}">
>                               <ant:include name ="TEST-*.xml"/>
>                       </ant:fileset>
>                       <ant:report format="frames"
> todir="${report.dir}/html" />
>               </ant:junitreport>
>   </goal>
> 
> but it fails because junitreport claims that Xalan 1 or 2 isn't on the
> classpath. I've tried putting it into %MAVEN_HOME%\lib and 
> \lib\endorsed but
> that didn't work. I've tried putting it in as a project 
> dependency and that
> didn't work either. I won't be able to convince everyone in 
> our team to put
> Xalan on their classpath. Does anyone have any other suggestions?
> 
> attached would be my maven log except that our overenthusiastic virus
> scanner thinks that it's a vbscript virus *sigh*.
> 
> regards,
> jamie.
> 
> 
> ______________________________________________________________
> __________
> 
> This e-mail message (including any attachment) is intended 
> only for the personal 
> use of the recipient(s) named above. This message is 
> confidential and may be 
> legally privileged.  If you are not an intended recipient, 
> you may not review, copy or 
> distribute this message. If you have received this 
> communication in error, please notify 
> us immediately by e-mail and delete the original message.
> 
> Any views or opinions expressed in this message are those of 
> the author only. 
> Furthermore, this message (including any attachment) does not 
> create any legally 
> binding rights or obligations whatsoever, which may only be 
> created by the exchange 
> of hard copy documents signed by a duly authorised 
> representative of Hutchison 
> 3G UK Limited.
> ______________________________________________________________
> __________
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


________________________________________________________________________

This e-mail message (including any attachment) is intended only for the personal 
use of the recipient(s) named above. This message is confidential and may be 
legally privileged.  If you are not an intended recipient, you may not review, copy or 
distribute this message. If you have received this communication in error, please 
notify 
us immediately by e-mail and delete the original message.

Any views or opinions expressed in this message are those of the author only. 
Furthermore, this message (including any attachment) does not create any legally 
binding rights or obligations whatsoever, which may only be created by the exchange 
of hard copy documents signed by a duly authorised representative of Hutchison 
3G UK Limited.
________________________________________________________________________


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

Reply via email to