ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kerry, Richard" <richard.ke...@atos.net>
Subject RE: Use of XML Catalog with Ant (xslt task) - request for example
Date Fri, 30 Aug 2013 12:34:20 GMT


"PATH is for shell scripts to locate binaries (C++ programs)"



Yep, got that.

My uncertainty is because the Ant docs use "path" and "classpath" in consecutive sentences
- I think one of them is wrong.

(in http://ant.apache.org/manual/Types/xmlcatalog.html)

"the xml-commons resolver library ("resolver.jar") must be in your path" vs "If the xml-commons
resolver library is not found in the classpath"



I'm assuming it should be classpath but given the lack of workingness I'd like to be absolutely
sure.





"CLASSPATH is for java classes (.jar)"



Up to now I haven't had a CLASSPATH environment variable.   I don't use Java much but I'm
sure I've read that CLASSPATH as an environment variable is deprecated and -cp should be used.
 If this is so then (at least in the long term) I'd rather not have CLASSPATH as an environment
variable, though for the moment it's ok in order to get anything working.



The <xslt> target has its own @classpath attribute, which the docs describe as "the
classpath to use when looking up the XSLT processor".  Is it strictly for that purpose or
should I include the location of resolver.jar here ?



Should I use <path id="classpath"> in Ant's config file to set up a classpath for use
by Ant ?



The docs refer to "resolver.jar" which is the name of the resolver under xml-commons-resolver-1.2.
 Under apache-ant-1.8.4/lib I find "ant-apache-resolver.jar".

I note that Martin's response refers to this latter name.  Which one is right ?



Whatever I've tried I've got "Apache resolver library not found, internal resolver will be
used" in my debug output.





"lets get this working  before moving onto step 2"

Absolutely !







Appreciatively,

Richard.





Richard Kerry
BNCS Engineer, SI SOL Telco & Media Vertical Practice
T: +44 (0)20 82259063
M: +44 (0)7812 325518
G300, Stadium House, Wood Lane, London, W12 7TA
richard.kerry@atos.net<https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=mailto%3arichard.kerry%40atos.net>

This e-mail and the documents attached are confidential and intended solely for the addressee;
it may also be privileged. If you receive this e-mail in error, please notify the sender immediately
and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability
cannot be triggered for the message content. Although the sender endeavours to maintain a
computer virus-free network, the sender does not warrant that this transmission is virus-free
and will not be liable for any damages resulting from any virus transmitte
________________________________
From: Martin Gainty [mgainty@hotmail.com]
Sent: 23 August 2013 21:00
To: Ant Users List
Subject: RE: Use of XML Catalog with Ant (xslt task) - request for example

PATH is for shell scripts to locate binaries (C++ programs)
CLASSPATH is for java classes (.jar)

My location is ant-apache-resolver.jar $APACHE_HOME/lib/ant-apache-resolver.jar
CLASSPATH=$APACHE_HOME/lib/ant-apache-resolver.jar;%CLASSPATH%



lets get this working  before moving onto step 2
Martin
______________________________________________

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message