From: Fleischer, A. <And...@ot...> - 2007-12-21 14:35:47
|
Can you please give me some more information on 1.) and 2.)... -----Urspr=FCngliche Nachricht----- Von: xra...@li... = [mailto:xra...@li...]Im Auftrag von = Romain Pelisse Gesendet: Freitag, 21. Dezember 2007 15:11 An: xra...@li... Betreff: [Xradar-developer] Some comments on the last commit... Hi, I commited more modification about the xradar-statics ant task. Now = almost all the statics works is done by this java app. However, there is = still some issues: 1 First, i've still trouble with the "website generation" so i can't had = it to the ant task.=20 2 Some grah are not properly rendered=20 I'll keep working on (1) for the moment, so if you free time, please = look at the (2) ! I also updated the java2html.jar, both in the lib directory and the = pom.xml . Several other important things: * i remove the place holder for system_specific analysis. We'll have to = design a small API ( probably one method or two) to allow addition to = system_specific analysis. For the moment, I file this under "todo later" = * To package all the resources of xradar ( stylesheets, img, = properties...) in one jar, i designed a URL resolver that handle a = xradar specific protocol. I write about this on several occasion, but i = wanted to describs the meaning the URL:=20 xradar://stylesheets/radar/static/graph/style.xsl In this example, the resolver will look for the file = /radar/static/graph/style.xsl in the classpath. Most likely, this file = will be found in the xradar-1.0.jar (however, note that you can add your = own entry in classpath to override specific part of xradar; a "nice to = have" feature). If this fails, meaning, the resources is NOT in the = classpath, it uses the same part of the url to look, relativly in the = file system ( so in this case, it will look for = './radar/static/graph/style.xsl' on the file-system).=20 Note the first word 'stylesheets' is the host on a generic URL semantic. = Here, it serves no purpose. So i just use it as a classifier for the = file that addresses the url: * stylesheets, is used obviously when you load an xsl file.=20 * resources, is used for static resources such as jpg files or xml file. This semantic is NOT mandatory, sometime the xslt engine retrieve de = default context and may load an xml file with the 'stylesheets' host. = However, i think we should stick to this convention when add manually = url to our files.=20 I tried to externalize almost everything ( all the filename of the xslt = for instance) in the = org.sourceforge.xradar.statics.defaultValues.properties files. This file = can also be overriden using the same classpath tricks. So if you want to = modify some xslt to correct a bug or try something, you can simply = override anything by adding in the classpath, before the xradar.jar. Well, most likely, you're going to modify the xsl and just run '$ mvn = clean package ; mv target/xradar-1.0-beta.jar', and just try again... --=20 Romain PELISSE, "The trouble with having an open mind, of course, is that people will = insist on coming along and trying to put things in it" -- Terry = Pratchett=20 http://belaran.eu/wordpress/=20 |