You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Loughran <st...@apache.org> on 2006/03/01 14:08:08 UTC
xalan2.present test broken
We need a test for a trax engine being around, for things like
junitreport. But this code doesnt work
<available property="xalan2.present"
classname="org.apache.xalan.transformer.TransformerImpl"
classpathref="classpath"/>
Not on java1.5, even though xsltc is around.
Who wants to come up with the tests for an xsltc engine being found? Do
we want to make this a <condition>?
-steve
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: xalan2.present test broken
Posted by Steve Loughran <st...@apache.org>.
Stefan Bodewig wrote:
> On Wed, 01 Mar 2006, Steve Loughran <st...@apache.org> wrote:
>> We need a test for a trax engine being around, for things like
>> junitreport. But this code doesnt work
>>
>> <available property="xalan2.present"
>> classname="org.apache.xalan.transformer.TransformerImpl"
>> classpathref="classpath"/>
>>
>> Not on java1.5, even though xsltc is around.
>
> XSLTC != Xalan2
>
> I don't know for sure, but it is very well possible that the check
> really wants Xalan2 and not an arbitrary TraX implementation. We had
> some trouble with JUnitReport because XSLTC didn't support the same
> type of redirect extensions that Xalan2 supports.
>
> Take a look at the code of JUnitReport, there are checks for Xalan2
> and XSLTC. In the later case there are two different ones since Sun
> has repackaged XSLTC in JDK 1.5.
>
There's a trax implemented property I've switched to instead.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: xalan2.present test broken
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 01 Mar 2006, Steve Loughran <st...@apache.org> wrote:
> We need a test for a trax engine being around, for things like
> junitreport. But this code doesnt work
>
> <available property="xalan2.present"
> classname="org.apache.xalan.transformer.TransformerImpl"
> classpathref="classpath"/>
>
> Not on java1.5, even though xsltc is around.
XSLTC != Xalan2
I don't know for sure, but it is very well possible that the check
really wants Xalan2 and not an arbitrary TraX implementation. We had
some trouble with JUnitReport because XSLTC didn't support the same
type of redirect extensions that Xalan2 supports.
Take a look at the code of JUnitReport, there are checks for Xalan2
and XSLTC. In the later case there are two different ones since Sun
has repackaged XSLTC in JDK 1.5.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: xalan2.present test broken
Posted by Jesse Glick <je...@sun.com>.
Steve Loughran wrote:
> We need a test for a trax engine being around, for things like
> junitreport. But this code doesnt work
>
> <available property="xalan2.present"
> classname="org.apache.xalan.transformer.TransformerImpl"
> classpathref="classpath"/>
>
> Not on java1.5, even though xsltc is around.
If you're running Java 1.4 or higher there *has* to be an XSLT engine
available acc. to the JAXP spec, I think.
-J.
--
jesse.glick@sun.com x22801 netbeans.org ant.apache.org
http://google.com/search?q=e%5E(pi*i)%2B1
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org