eclipse - Error in Target xslt in build.xml for ecllipse -
im trying include xslt reports in testng framework ant. when try execute the makereport target in build.xml error related classpath saying reference test.classpath not found
. below target code generating xslt.
<target name="makexsltreport"> <delete dir="${basedir}/testng-xslt"> </delete> <mkdir dir="${basedir}/testng-xslt"> </mkdir> <xslt in="${ng.result}/testng-results.xml" style="src/xslt/testng-results.xsl" out="${ws.home}/testng-xslt/index.html" classpathref="test.c" processor="saxonliaison"> <!-- error in above line --> <param expression="${basedir}/testng-xslt/" name="testngxslt.outputdir" /> <param expression="true" name="testngxslt.sorttestcaselinks" /> <param expression="fail,skip,pass,conf,by_class" name="testngxslt.testdetailsfilter" /> <param expression="true" name="testngxslt.showruntimetotals" /> <classpath refid="classpath"> </classpath> </xslt> </target>
please on how solve issue. tried everything.
reference test.classpath not found
means ant wasn't able find test.classpath
path have referenced classpathref
. how defining path? if <path id="test.classpath">
inside target need make makexsltreport
target depend (directly or indirectly) on 1 defines path.
also should not use both classpathref
attribute and <classpath>
element - use 1 or other.
Comments
Post a Comment