Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I get the Javadoc class descriptions at compile time?
    primarykey
    data
    text
    <p>I'm trying to build up some documentation for my Wicket Web Application. I have created a page to grab all of my mounted pages and display them in /sitemap.xml. In the vein of documentation I've added a new tag to the file <code>&lt;siteMap:Description&gt;</code> now I want to fill that description with the javadoc entry that describes the class file.</p> <p>I know there is know direct way to access them at runtime. So Instead I'm hoping to copy them at compile time into a List where they will then be accessible from runtime. How would I do that?</p> <p>I'm using Maven for my build. </p> <p><strong>EDIT</strong><br> I should probably Also mention that I do have an AntTask Already defined as part of my build process to save the compile Dates/times to a property file.<br> It seems to me an Task to scan my Class and then put the information into a file is probably the way to go. Problem is I'm not sure how to proceed.</p> <p>My Ant-Task is defined like in my pom.xml so:</p> <pre><code> &lt;plugin&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;ant&lt;/groupId&gt; &lt;artifactId&gt;ant-nodeps&lt;/artifactId&gt; &lt;version&gt;1.6.5&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;set-build-time&lt;/id&gt; &lt;phase&gt;process-sources&lt;/phase&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;tstamp&gt; &lt;format property="build.timestamp" pattern="yyyy/MM/dd HH:mm:ss"/&gt; &lt;format property="build.time" pattern="HH:mm:ss" /&gt; &lt;format property="build.date" pattern="MM/dd/yyyy" /&gt; &lt;format property="build.year" pattern="yyyy"/&gt; &lt;/tstamp&gt; &lt;replaceregexp byline="true"&gt; &lt;regexp pattern="copyYear\=.*" /&gt; &lt;!--suppress MavenModelInspection --&gt; &lt;substitution expression="copyYear=${build.year}" /&gt; &lt;fileset dir="src/main/java/" includes="**/*.properties" /&gt; &lt;/replaceregexp&gt; &lt;replaceregexp byline="true"&gt; &lt;regexp pattern="buildTime\=.*" /&gt; &lt;!--suppress MavenModelInspection --&gt; &lt;substitution expression="buildTime=${build.date} ${build.time}" /&gt; &lt;fileset dir="src/main/java/" includes="**/*.properties" /&gt; &lt;/replaceregexp&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload