| Method AbstractDeploymentDescriptorDiscoverer.getDescXmlVersion [message #893150] |
Mon, 02 July 2012 18:20  |
Victor Pavon Messages: 10 Registered: April 2012 |
Junior Member |
|
|
Hi,
I have developed a Dicoverer for struts-config files. I have used the MoDisco WebApp Discoverer as guideline. When I use the method getDescXmlVersion to determinate the version of dtd or xsd file to define the struts-config file the return version is a empty string. I look the code and I see that the string use to look for name dtd file is "http:/java.sun.com". It is correct change this string by de variable dtdUrl.
Thank you very much,
Best regard, Víctor Pavón.
|
|
|
| Re: Method AbstractDeploymentDescriptorDiscoverer.getDescXmlVersion [message #893432 is a reply to message #893150] |
Wed, 04 July 2012 03:24   |
Fabien Giquel Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hi Pavon,
you are right, the "http:/java.sun.com" string should not appear in AbstractDeploymentDescriptorDiscoverer.getDescXmlVersion(). The dtdUrl parameter must be used instead, like in the other parts of the method. If you have some time to fill a bugzilla in MDT-MoDisco, it would be welcome.
About developping one Struts discoverer,you may have a look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=308176. Some old discoverer was written against 0.8 MoDisco framework but there is still work to do to achieve and contribute some complete discoverer. May be some parts of the attached code will be of interest for you.
Regards,
Fabien
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01787 seconds