Sure, I see what you mean, I did not think of it at a time.
If you could set up a Maven test project where a javadocs jar is on the
classpath then it will be easier for me to prioritize and experiment
with the parser code, otherwise a creating a dedicated CXF test module
will take time.
Cheers, Sergey
On 24/01/17 07:06, Vjacheslav V. Borisov wrote:
No, I am talking about different (may be found impossible by author)
realisation of javadoc parsing
Since it is regular jar, and packaged as dependency, its contents accesible
as regular classpath resource.
Point.class.getResource("Point.html") - e.g. this is working, can get
javadoc of class
2017-01-23 16:49 GMT+04:00 Sergey Beryozkin <[email protected]>:
Hi
Freeman did it for a java2wadl, where JavaDocs info gets collected during
the build time, but at the runtime JavaDocs are only visible from the
dedicated jar.
I do not know how would one load a javadocs jar without knowing the full
Jar name, perhaps it can be done based on some convention...
Sergey
On 22/01/17 16:21, Vjacheslav V. Borisov wrote:
Hi!
I have configured javadoc using this config:
<bean id="swagger2Serializers"
class="org.apache.cxf.jaxrs.swagger.DefaultSwagger2Serializers">
<property name="javaDocPath"
value="WEB-INF/lib/bankaccounting-api-1.0-SNAPSHOT-javadoc.jar"/>
</bean>
<bean id="swagger2Feature"
class="org.apache.cxf.jaxrs.swagger.Swagger2Feature">
<property name="swagger2Serializers" ref="swagger2Serializers"/>
But this jar is regular war dependency lib, is there possibility to
configure javadoc using regular classpath, not referencing actual jar
version?
2017-01-17 17:08 GMT+04:00 Francesco Chicchiriccò <[email protected]>:
The DefaultSwagger2Serializers class requires a JavadocProvider in order
to be able to extract info from Javadocs; use one the methods [1] to
configure.
HTH
Regards.
[1] https://github.com/apache/cxf/blob/3.1.x-fixes/rt/rs/
description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/
DefaultSwagger2Serializers.java#L198-L217
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/