From: Romain P. <be...@gm...> - 2008-01-23 12:39:15
|
Hi Andre, First of all, thanks for taking a look ! A basic url is : protocol://host:port/path/to/file The protocol 'xradar' implies the use of the XRadar URL resolver. This resolver simply do the following : 1. It uses the path/to/file and try to load it from the classpath. 2. if this fails, it tries the filesystem (File file =3D new File("path/to/file"); ) So basicly, it doesn't uses, for obvious reason, the host and the port part of the url. As i documented ( but not yet released ) in the xdocs file, i used the host part to "type" the kind of resources i tried to load. So basicly, stylesheets means, that i'm trying to load a stylesheets... There is a direct mapping between the files in src/main/stylesheets/ and th= e path/to/file. For instance, if xradar tries to load, at run time, the /radar/foo/bar.xsl file, that means you should find the file in src/main/stylesheets/radar/foo/bar.xsl. If xradar fails to find such a file= , you should first compare the URL is trying to load with the contains of the xradar-1.0-beta.jar ( Is the file there ? Within the proper folder ?). If something fails, and you want to know more about what happenned, you can set a more "verbose" logging by simply doing this: export ANT_OPTS=3D"- Djava.util.logging.config.file=3D../src/main/resources/logging.properties" This configuration file for java logging is set to FINE, but can change to FINEST if you really wants to know everything ! Note that should redirect ouput to file because verbose mode is far too verbose. No i have no run definition in Eclipse, because i didn't finish the xradar command line interface that would allow such a thing. I basicly run xradar with the ant build, outside of Eclipse in a shell. I'm planning to do very quicly ( probably after the release of the beta) a "command line interface" which will allow to run ( and debug) "statics" and "dynamics" as simple jav= a program. However, i do did this when i stard the "java api" but as most of the stuff xradar does is "hidden" in the XSL transformation, debug does not provide a lot of help... Hope all of these help you and thanks again ! On 23/01/2008, Fleischer, Andre <And...@ot...> wrote: > > Hi, > > the problems seems to be related to the loading of resources using the > URL xradar://stylesheets/radar/static/graph/style.xsl > > Can you explain me the resource loading a little bit. > Currently within the xradar.jar the xsl can be found under > /radar/static/..., but what about these 'stylesheets' name within the URL= ? > > How to you 'test' XRadar on your local machine? Do have any kind of > Run-Definition within your eclipse? > > Kind regards > Andr=E9 > > > -----Urspr=FCngliche Nachricht----- > > Von: Fleischer, Andre > > Gesendet: Montag, 21. Januar 2008 15:36 > > An: 'Fran=E7ois Le Droff' > > Betreff: AW: [Xradar-developer] Release of XRadar 1.0 - Beta > > > > > > I tried the latest version from cvs. > > I got two problems on my machine (windows xp, jdk 5, ant 1.6.5) > > > > 1.) with -Duser.language=3Den, see out_en.txt > > [xradar-statics] Merging data from tool's reports. > > [xradar-statics] Post processing merged files. > > [xradar-statics] Generating static analysis website. > > [xradar-statics] ERROR: > > 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException > > : > > c:\stylesheets\radar\statics\report\scorecard\tmp\xradar\src\t > > est\projects\testproject\release4\docs\xml\reports\system_qual > > ity_report.xml (The system cannot find the path)' > > > > 2.) with default language =3D-Duser.language=3Dde: see out_de.txt > > [xradar-dynamics] [Fatal Error] :-1:-1: Premature end of file. > > [xradar-dynamics] org.xml.sax.SAXParseException: Premature > > end of file. > > [xradar-dynamics] at > > org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > > [xradar-dynamics] at > > org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > > [xradar-dynamics] at > > javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98) > > [xradar-dynamics] at > > org.sourceforge.xradar.XSLTMerger.loadXMLFile(XSLTMerger.java:96) > > [xradar-dynamics] at > > org.sourceforge.xradar.XSLTMerger.merge(XSLTMerger.java:110) > > [xradar-dynamics] at > > org.sourceforge.xradar.XSLTMerger.merge(XSLTMerger.java:150) > > > > I started to work on problem 1, but I need some time to learn > > your new code. > > > > Kind regards > > Andr=E9 > > > > > > > -----Urspr=FCngliche Nachricht----- > > > Von: xra...@li... > > > [mailto:xra...@li...]Im > > Auftrag von > > > Fran=E7ois Le Droff > > > Gesendet: Donnerstag, 17. Januar 2008 12:23 > > > Cc: xra...@li... > > > Betreff: Re: [Xradar-developer] Release of XRadar 1.0 - Beta > > > > > > > > > Great Job Romain > > > I'll do my best to try it out (on windows xp and ubuntu > > > dapper) this week-end > > > Cheers ! > > > Fran=E7ois > > > > > > > > > > > > On 1/16/08, Romain Pelisse <be...@gm...> wrote: > > > > Hi everyone, > > > > > > > > I just commited the last part of my "java api", along with > > > a new AntTask and > > > > a LOT of simplification of the scripts to integrate xradar > > > into a project's > > > > build.xml file. What i need know is ... testing people ! > > > > > > > > The stuff i did works fine on my linux (Kubuntu Gusty) with > > > the JDK5 and Ant > > > > 1.6.5. Before releasing the beta, i would appreciate a lot > > > if some of you > > > > had the time to test it with Java 5 on windows.? I probably > > > left some "hard > > > > coded" stuff here and there ( and apologize for it), so you > > > may have to > > > > tweak a little the configuration file to make everything works. > > > > Note that Cobertura and Junit should work fine ( didn't > > > have the time to try > > > > those). > > > > > > > > Unless we come up with a unfixable problem, i plan to > > > release the 1.0-beta > > > > of XRadar by the end of the month. Following this release, > > > i'll do the > > > > proper "lobbying" to have this beta release published > > into the maven > > > > repository. After that, we should be able to start the work > > > on the mvn2 > > > > plugin. > > > > > > > > -- > > > > 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 > > > > http://belaran.eu/wordpress/ > > > > > > > -------------------------------------------------------------- > > > ----------- > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Xradar-developer mailing list > > > > Xra...@li... > > > > https://lists.sourceforge.net/lists/listinfo/xradar-developer > > > > > > > > > > > > > > > > > -- > > > > > > Fran=E7ois Le Droff > > > http://www.droff.com > > > > > > -------------------------------------------------------------- > > > ----------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Xradar-developer mailing list > > > Xra...@li... > > > https://lists.sourceforge.net/lists/listinfo/xradar-developer > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Xradar-developer mailing list > Xra...@li... > https://lists.sourceforge.net/lists/listinfo/xradar-developer > --=20 Romain PELISSE, "The trouble with having an open mind, of course, is that people will insis= t on coming along and trying to put things in it" -- Terry Pratchett http://belaran.eu/wordpress/ |