asciidoctor / asciidoclet

:clipboard: A Javadoc Doclet based on Asciidoctor that lets you write Javadoc in the AsciiDoc syntax.
https://github.com/asciidoctor/asciidoclet
Apache License 2.0
133 stars 40 forks source link

Is there a way to pass parameters to Asciidoclet? #15

Closed lordofthejars closed 10 years ago

lordofthejars commented 10 years ago

Hello I am wondering if there is a way to pass Asciidoctor parameters through Asciidoclet. I am asking because I would like to do something like:

/**
* javadoc
*
*  _{target}_ this is the output directory of Maven
*
**/
code

so what I want to do is to pass the target directory location inside Asciidoclet processor and then be added as Asciidoctor attribute. I don't know if this is possible or not, but for what I have understand for code (sorry I have never develop a doclet) it seems that now it is not implemented.

johncarl81 commented 10 years ago

This is totally possible as we've done this to allow for embedding external source includes like done here:

https://github.com/asciidoctor/asciidoclet/blob/master/src/main/java/org/asciidoctor/Asciidoclet.java#L26

Which requires us to set the "includeBaseDir" paramter:

https://github.com/asciidoctor/asciidoclet/blob/master/pom.xml#L119

Is this close to what you have in mind @lordofthejars ?

lordofthejars commented 10 years ago

Thanks I will try if it fits for my requirements but I think it will work. I only need to access to includeBaseDir attribute from javadoc

El dimarts 8 d’octubre de 2013, John Ericksen ha escrit:

This is totally possible as we've done this to allow for embedding external source includes like done here:

https://github.com/asciidoctor/asciidoclet/blob/master/src/main/java/org/asciidoctor/Asciidoclet.java#L26

Which requires us to set the "includeBaseDir" paramter:

https://github.com/asciidoctor/asciidoclet/blob/master/pom.xml#L119

Is this close to what you have in mind @lordofthejarshttps://github.com/lordofthejars?

— Reply to this email directly or view it on GitHubhttps://github.com/asciidoctor/asciidoclet/issues/15#issuecomment-25856032 .

Enviat amb Gmail Mobile

johncarl81 commented 10 years ago

@lordofthejars Did you get what you needed here? Could we close?

lordofthejars commented 10 years ago

Sure thank you so much and sorry for not closing it yet :)

Enviat des del meu iPhone

El 16/05/2014, a les 19.04, John Ericksen notifications@github.com va escriure:

@lordofthejars Did you get what you needed here? Could we close?

— Reply to this email directly or view it on GitHub.