This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes how to add property to xml log file in ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "how to add property to xml log file in ant " Watch "how to add property to xml log file in ant " New topic
Author

how to add property to xml log file in ant

kamesh aru
Ranch Hand

Joined: Mar 16, 2002
Posts: 150
how to add ant.XmlLogger.stylesheet.uri property for setting path to xsl style sheet in xml log
thanks in advance
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
From ant manual on XmlLogger:


By default the XML file creates a reference to an XSLT file "log.xsl" in the current directory; look in ANT_HOME/etc for one of these. You can set the property ant.XmlLogger.stylesheet.uri to provide a uri to a style sheet. this can be a relative or absolute file path, or an http URL. If you set the property to the empty string, "", no XSLT transform is declared at all.


Not quite sure what your question is. By default it is looking for log.xsl in current directory which doesn't exist unless you put one there. There's one in ANT_HOME/etc as the quote above indicates. If you want to point to one somewhere other than current directory then set the property as any other property, two of the common ways shown here:

-Dant.XmlLogger.stylesheet.uri=/some/path/here/log.xsl

or

<property name="ant.XmlLogger.stylesheet.uri"
value="/some/path/here/log.xsl"/>
kamesh aru
Ranch Hand

Joined: Mar 16, 2002
Posts: 150
thanks Carol
thats what i was looking for.
thanks once again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add property to xml log file in ant
 
Similar Threads
Criteria to SQL
Java CAPS 5.3.1 - EmaileWay
log4j
edirect log to Eclipse console ?
about spring framework