maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r829394 [27/31] - in /websites/production/maventest/content/plugins/maven-javadoc-plugin-latest: ./ apidocs/ apidocs/org/apache/maven/plugin/javadoc/ apidocs/org/apache/maven/plugin/javadoc/class-use/ apidocs/org/apache/maven/plugin/javadoc...
Date Sun, 19 Aug 2012 17:31:48 GMT
Modified: websites/production/maventest/content/plugins/maven-javadoc-plugin-latest/xref/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-javadoc-plugin-latest/xref/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.html (original)
+++ websites/production/maventest/content/plugins/maven-javadoc-plugin-latest/xref/org/apache/maven/plugin/javadoc/AbstractFixJavadocMojo.html Sun Aug 19 17:31:42 2012
@@ -33,36 +33,36 @@
 <a name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> java.io.File;
 <a name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
 <a name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> java.io.InputStream;
-<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> java.io.Reader;
-<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> java.io.StringReader;
-<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> java.io.StringWriter;
-<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.io.Writer;
-<a name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.lang.reflect.Method;
-<a name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.net.MalformedURLException;
-<a name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> java.net.URL;
-<a name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> java.net.URLClassLoader;
-<a name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
-<a name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> java.util.Arrays;
-<a name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> java.util.Collections;
-<a name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> java.util.Iterator;
-<a name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> java.util.LinkedHashMap;
-<a name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> java.util.LinkedList;
-<a name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> java.util.List;
-<a name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> java.util.Locale;
-<a name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
-<a name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> java.util.Properties;
-<a name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> java.util.StringTokenizer;
-<a name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> java.util.regex.Pattern;
-<a name="46" href="#46">46</a>  
-<a name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.lang.ClassUtils;
-<a name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.Artifact;
-<a name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.DependencyResolutionRequiredException;
-<a name="50" href="#50">50</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.repository.ArtifactRepository;
-<a name="51" href="#51">51</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.plugin.AbstractMojo;
-<a name="52" href="#52">52</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.plugin.MojoExecutionException;
-<a name="53" href="#53">53</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.plugin.MojoFailureException;
-<a name="54" href="#54">54</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.project.MavenProject;
-<a name="55" href="#55">55</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.settings.Settings;
+<a name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> java.io.StringReader;
+<a name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> java.io.StringWriter;
+<a name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> java.io.Writer;
+<a name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.lang.reflect.Method;
+<a name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.net.MalformedURLException;
+<a name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.net.URL;
+<a name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> java.net.URLClassLoader;
+<a name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
+<a name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> java.util.Arrays;
+<a name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> java.util.Collections;
+<a name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> java.util.Iterator;
+<a name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> java.util.LinkedHashMap;
+<a name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> java.util.LinkedList;
+<a name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> java.util.Locale;
+<a name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
+<a name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> java.util.Properties;
+<a name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> java.util.StringTokenizer;
+<a name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> java.util.regex.Pattern;
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.lang.ClassUtils;
+<a name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.Artifact;
+<a name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.DependencyResolutionRequiredException;
+<a name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.artifact.repository.ArtifactRepository;
+<a name="50" href="#50">50</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.plugin.AbstractMojo;
+<a name="51" href="#51">51</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.plugin.MojoExecutionException;
+<a name="52" href="#52">52</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.plugin.MojoFailureException;
+<a name="53" href="#53">53</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.project.MavenProject;
+<a name="54" href="#54">54</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.settings.Settings;
+<a name="55" href="#55">55</a>  <strong class="jxr_keyword">import</strong> org.apache.maven.shared.invoker.MavenInvocationException;
 <a name="56" href="#56">56</a>  <strong class="jxr_keyword">import</strong> org.codehaus.plexus.components.interactivity.InputHandler;
 <a name="57" href="#57">57</a>  <strong class="jxr_keyword">import</strong> org.codehaus.plexus.util.FileUtils;
 <a name="58" href="#58">58</a>  <strong class="jxr_keyword">import</strong> org.codehaus.plexus.util.IOUtil;
@@ -384,3265 +384,3301 @@
 <a name="374" href="#374">374</a>         }
 <a name="375" href="#375">375</a> 
 <a name="376" href="#376">376</a>         <em class="jxr_comment">// run clirr</em>
-<a name="377" href="#377">377</a>         executeClirr();
-<a name="378" href="#378">378</a> 
-<a name="379" href="#379">379</a>         <em class="jxr_comment">// run qdox and process</em>
-<a name="380" href="#380">380</a>         <strong class="jxr_keyword">try</strong>
-<a name="381" href="#381">381</a>         {
-<a name="382" href="#382">382</a>             JavaClass[] javaClasses = getQdoxClasses();
-<a name="383" href="#383">383</a> 
-<a name="384" href="#384">384</a>             <strong class="jxr_keyword">if</strong> ( javaClasses != <strong class="jxr_keyword">null</strong> )
-<a name="385" href="#385">385</a>             {
-<a name="386" href="#386">386</a>                 <strong class="jxr_keyword">for</strong> ( <strong class="jxr_keyword">int</strong> i = 0; i &lt; javaClasses.length; i++ )
-<a name="387" href="#387">387</a>                 {
-<a name="388" href="#388">388</a>                     JavaClass javaClass = javaClasses[i];
-<a name="389" href="#389">389</a> 
-<a name="390" href="#390">390</a>                     processFix( javaClass );
-<a name="391" href="#391">391</a>                 }
-<a name="392" href="#392">392</a>             }
-<a name="393" href="#393">393</a>         }
-<a name="394" href="#394">394</a>         <strong class="jxr_keyword">catch</strong> ( IOException e )
-<a name="395" href="#395">395</a>         {
-<a name="396" href="#396">396</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MojoExecutionException( <span class="jxr_string">"IOException: "</span> + e.getMessage(), e );
-<a name="397" href="#397">397</a>         }
-<a name="398" href="#398">398</a>     }
-<a name="399" href="#399">399</a> 
-<a name="400" href="#400">400</a>     <em class="jxr_comment">// ----------------------------------------------------------------------</em>
-<a name="401" href="#401">401</a>     <em class="jxr_comment">// protected methods</em>
-<a name="402" href="#402">402</a>     <em class="jxr_comment">// ----------------------------------------------------------------------</em>
-<a name="403" href="#403">403</a> 
-<a name="404" href="#404">404</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="405" href="#405">405</a> <em class="jxr_javadoccomment">     * @param p not null maven project.</em>
-<a name="406" href="#406">406</a> <em class="jxr_javadoccomment">     * @return the artifact type.</em>
-<a name="407" href="#407">407</a> <em class="jxr_javadoccomment">     */</em>
-<a name="408" href="#408">408</a>     <strong class="jxr_keyword">protected</strong> String getArtifactType( MavenProject p )
-<a name="409" href="#409">409</a>     {
-<a name="410" href="#410">410</a>         <strong class="jxr_keyword">return</strong> p.getArtifact().getType();
-<a name="411" href="#411">411</a>     }
-<a name="412" href="#412">412</a> 
-<a name="413" href="#413">413</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="414" href="#414">414</a> <em class="jxr_javadoccomment">     * @param p not null maven project.</em>
-<a name="415" href="#415">415</a> <em class="jxr_javadoccomment">     * @return the list of source paths for the given project.</em>
-<a name="416" href="#416">416</a> <em class="jxr_javadoccomment">     */</em>
-<a name="417" href="#417">417</a>     <strong class="jxr_keyword">protected</strong> List getProjectSourceRoots( MavenProject p )
-<a name="418" href="#418">418</a>     {
-<a name="419" href="#419">419</a>         <strong class="jxr_keyword">return</strong> p.getCompileSourceRoots();
-<a name="420" href="#420">420</a>     }
-<a name="421" href="#421">421</a> 
-<a name="422" href="#422">422</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="423" href="#423">423</a> <em class="jxr_javadoccomment">     * @param p not null</em>
-<a name="424" href="#424">424</a> <em class="jxr_javadoccomment">     * @return the compile classpath elements</em>
-<a name="425" href="#425">425</a> <em class="jxr_javadoccomment">     * @throws DependencyResolutionRequiredException if any</em>
-<a name="426" href="#426">426</a> <em class="jxr_javadoccomment">     */</em>
-<a name="427" href="#427">427</a>     <strong class="jxr_keyword">protected</strong> List getCompileClasspathElements( MavenProject p )
-<a name="428" href="#428">428</a>         <strong class="jxr_keyword">throws</strong> DependencyResolutionRequiredException
-<a name="429" href="#429">429</a>     {
-<a name="430" href="#430">430</a>         <strong class="jxr_keyword">return</strong> p.getCompileClasspathElements();
-<a name="431" href="#431">431</a>     }
-<a name="432" href="#432">432</a> 
-<a name="433" href="#433">433</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="434" href="#434">434</a> <em class="jxr_javadoccomment">     * @param javaMethod not null</em>
-<a name="435" href="#435">435</a> <em class="jxr_javadoccomment">     * @return the fully qualify name of javaMethod with signature</em>
-<a name="436" href="#436">436</a> <em class="jxr_javadoccomment">     */</em>
-<a name="437" href="#437">437</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> String getJavaMethodAsString( JavaMethod javaMethod )
-<a name="438" href="#438">438</a>     {
-<a name="439" href="#439">439</a>         StringBuffer sb = <strong class="jxr_keyword">new</strong> StringBuffer();
-<a name="440" href="#440">440</a> 
-<a name="441" href="#441">441</a>         sb.append( javaMethod.getParentClass().getFullyQualifiedName() );
-<a name="442" href="#442">442</a>         sb.append( <span class="jxr_string">"#"</span> ).append( javaMethod.getCallSignature() );
-<a name="443" href="#443">443</a> 
-<a name="444" href="#444">444</a>         <strong class="jxr_keyword">return</strong> sb.toString();
-<a name="445" href="#445">445</a>     }
-<a name="446" href="#446">446</a> 
-<a name="447" href="#447">447</a>     <em class="jxr_comment">// ----------------------------------------------------------------------</em>
-<a name="448" href="#448">448</a>     <em class="jxr_comment">// private methods</em>
-<a name="449" href="#449">449</a>     <em class="jxr_comment">// ----------------------------------------------------------------------</em>
-<a name="450" href="#450">450</a> 
-<a name="451" href="#451">451</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="452" href="#452">452</a> <em class="jxr_javadoccomment">     * Init goal parameters.</em>
+<a name="377" href="#377">377</a>         <strong class="jxr_keyword">try</strong>
+<a name="378" href="#378">378</a>         {
+<a name="379" href="#379">379</a>             executeClirr();
+<a name="380" href="#380">380</a>         }
+<a name="381" href="#381">381</a>         <strong class="jxr_keyword">catch</strong> ( MavenInvocationException e )
+<a name="382" href="#382">382</a>         {
+<a name="383" href="#383">383</a>             <strong class="jxr_keyword">if</strong> ( getLog().isDebugEnabled() )
+<a name="384" href="#384">384</a>             {
+<a name="385" href="#385">385</a>                 getLog().error( <span class="jxr_string">"MavenInvocationException: "</span> + e.getMessage(), e );
+<a name="386" href="#386">386</a>             }
+<a name="387" href="#387">387</a>             <strong class="jxr_keyword">else</strong>
+<a name="388" href="#388">388</a>             {
+<a name="389" href="#389">389</a>                 getLog().error( <span class="jxr_string">"MavenInvocationException: "</span> + e.getMessage() );
+<a name="390" href="#390">390</a>             }
+<a name="391" href="#391">391</a>             getLog().info( <span class="jxr_string">"Clirr is ignored."</span> );
+<a name="392" href="#392">392</a>         }
+<a name="393" href="#393">393</a> 
+<a name="394" href="#394">394</a>         <em class="jxr_comment">// run qdox and process</em>
+<a name="395" href="#395">395</a>         <strong class="jxr_keyword">try</strong>
+<a name="396" href="#396">396</a>         {
+<a name="397" href="#397">397</a>             JavaClass[] javaClasses = getQdoxClasses();
+<a name="398" href="#398">398</a> 
+<a name="399" href="#399">399</a>             <strong class="jxr_keyword">if</strong> ( javaClasses != <strong class="jxr_keyword">null</strong> )
+<a name="400" href="#400">400</a>             {
+<a name="401" href="#401">401</a>                 <strong class="jxr_keyword">for</strong> ( <strong class="jxr_keyword">int</strong> i = 0; i &lt; javaClasses.length; i++ )
+<a name="402" href="#402">402</a>                 {
+<a name="403" href="#403">403</a>                     JavaClass javaClass = javaClasses[i];
+<a name="404" href="#404">404</a> 
+<a name="405" href="#405">405</a>                     processFix( javaClass );
+<a name="406" href="#406">406</a>                 }
+<a name="407" href="#407">407</a>             }
+<a name="408" href="#408">408</a>         }
+<a name="409" href="#409">409</a>         <strong class="jxr_keyword">catch</strong> ( IOException e )
+<a name="410" href="#410">410</a>         {
+<a name="411" href="#411">411</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MojoExecutionException( <span class="jxr_string">"IOException: "</span> + e.getMessage(), e );
+<a name="412" href="#412">412</a>         }
+<a name="413" href="#413">413</a>     }
+<a name="414" href="#414">414</a> 
+<a name="415" href="#415">415</a>     <em class="jxr_comment">// ----------------------------------------------------------------------</em>
+<a name="416" href="#416">416</a>     <em class="jxr_comment">// protected methods</em>
+<a name="417" href="#417">417</a>     <em class="jxr_comment">// ----------------------------------------------------------------------</em>
+<a name="418" href="#418">418</a> 
+<a name="419" href="#419">419</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="420" href="#420">420</a> <em class="jxr_javadoccomment">     * @param p not null maven project.</em>
+<a name="421" href="#421">421</a> <em class="jxr_javadoccomment">     * @return the artifact type.</em>
+<a name="422" href="#422">422</a> <em class="jxr_javadoccomment">     */</em>
+<a name="423" href="#423">423</a>     <strong class="jxr_keyword">protected</strong> String getArtifactType( MavenProject p )
+<a name="424" href="#424">424</a>     {
+<a name="425" href="#425">425</a>         <strong class="jxr_keyword">return</strong> p.getArtifact().getType();
+<a name="426" href="#426">426</a>     }
+<a name="427" href="#427">427</a> 
+<a name="428" href="#428">428</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="429" href="#429">429</a> <em class="jxr_javadoccomment">     * @param p not null maven project.</em>
+<a name="430" href="#430">430</a> <em class="jxr_javadoccomment">     * @return the list of source paths for the given project.</em>
+<a name="431" href="#431">431</a> <em class="jxr_javadoccomment">     */</em>
+<a name="432" href="#432">432</a>     <strong class="jxr_keyword">protected</strong> List getProjectSourceRoots( MavenProject p )
+<a name="433" href="#433">433</a>     {
+<a name="434" href="#434">434</a>         <strong class="jxr_keyword">return</strong> ( p.getCompileSourceRoots() == <strong class="jxr_keyword">null</strong> ? Collections.EMPTY_LIST
+<a name="435" href="#435">435</a>                         : <strong class="jxr_keyword">new</strong> LinkedList( p.getCompileSourceRoots() ) );
+<a name="436" href="#436">436</a>     }
+<a name="437" href="#437">437</a> 
+<a name="438" href="#438">438</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="439" href="#439">439</a> <em class="jxr_javadoccomment">     * @param p not null</em>
+<a name="440" href="#440">440</a> <em class="jxr_javadoccomment">     * @return the compile classpath elements</em>
+<a name="441" href="#441">441</a> <em class="jxr_javadoccomment">     * @throws DependencyResolutionRequiredException if any</em>
+<a name="442" href="#442">442</a> <em class="jxr_javadoccomment">     */</em>
+<a name="443" href="#443">443</a>     <strong class="jxr_keyword">protected</strong> List getCompileClasspathElements( MavenProject p )
+<a name="444" href="#444">444</a>         <strong class="jxr_keyword">throws</strong> DependencyResolutionRequiredException
+<a name="445" href="#445">445</a>     {
+<a name="446" href="#446">446</a>         <strong class="jxr_keyword">return</strong> ( p.getCompileClasspathElements() == <strong class="jxr_keyword">null</strong> ? Collections.EMPTY_LIST
+<a name="447" href="#447">447</a>                         : <strong class="jxr_keyword">new</strong> LinkedList( p.getCompileClasspathElements() ) );
+<a name="448" href="#448">448</a>     }
+<a name="449" href="#449">449</a> 
+<a name="450" href="#450">450</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="451" href="#451">451</a> <em class="jxr_javadoccomment">     * @param javaMethod not null</em>
+<a name="452" href="#452">452</a> <em class="jxr_javadoccomment">     * @return the fully qualify name of javaMethod with signature</em>
 <a name="453" href="#453">453</a> <em class="jxr_javadoccomment">     */</em>
-<a name="454" href="#454">454</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> init()
+<a name="454" href="#454">454</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> String getJavaMethodAsString( JavaMethod javaMethod )
 <a name="455" href="#455">455</a>     {
-<a name="456" href="#456">456</a>         <em class="jxr_comment">// defaultAuthor</em>
-<a name="457" href="#457">457</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isEmpty( defaultAuthor ) )
-<a name="458" href="#458">458</a>         {
-<a name="459" href="#459">459</a>             defaultAuthor = System.getProperty( <span class="jxr_string">"user.name"</span> );
-<a name="460" href="#460">460</a>         }
-<a name="461" href="#461">461</a> 
-<a name="462" href="#462">462</a>         <em class="jxr_comment">// defaultSince</em>
-<a name="463" href="#463">463</a>         <strong class="jxr_keyword">int</strong> i = defaultSince.indexOf( <span class="jxr_string">"-"</span> + Artifact.SNAPSHOT_VERSION );
-<a name="464" href="#464">464</a>         <strong class="jxr_keyword">if</strong> ( i != -1 )
-<a name="465" href="#465">465</a>         {
-<a name="466" href="#466">466</a>             defaultSince = defaultSince.substring( 0, i );
-<a name="467" href="#467">467</a>         }
-<a name="468" href="#468">468</a> 
-<a name="469" href="#469">469</a>         <em class="jxr_comment">// fixTags</em>
-<a name="470" href="#470">470</a>         <strong class="jxr_keyword">if</strong> ( !FIX_TAGS_ALL.equalsIgnoreCase( fixTags.trim() ) )
-<a name="471" href="#471">471</a>         {
-<a name="472" href="#472">472</a>             String[] split = StringUtils.split( fixTags, <span class="jxr_string">","</span> );
-<a name="473" href="#473">473</a>             List filtered = <strong class="jxr_keyword">new</strong> LinkedList();
-<a name="474" href="#474">474</a>             <strong class="jxr_keyword">for</strong> ( <strong class="jxr_keyword">int</strong> j = 0; j &lt; split.length; j++ )
-<a name="475" href="#475">475</a>             {
-<a name="476" href="#476">476</a>                 String s = split[j].trim();
-<a name="477" href="#477">477</a>                 <strong class="jxr_keyword">if</strong> ( FIX_TAGS_ALL.equalsIgnoreCase( s.trim() ) || AUTHOR_TAG.equalsIgnoreCase( s.trim() )
-<a name="478" href="#478">478</a>                     || VERSION_TAG.equalsIgnoreCase( s.trim() ) || SINCE_TAG.equalsIgnoreCase( s.trim() )
-<a name="479" href="#479">479</a>                     || PARAM_TAG.equalsIgnoreCase( s.trim() ) || RETURN_TAG.equalsIgnoreCase( s.trim() )
-<a name="480" href="#480">480</a>                     || THROWS_TAG.equalsIgnoreCase( s.trim() ) )
-<a name="481" href="#481">481</a>                 {
-<a name="482" href="#482">482</a>                     filtered.add( s );
-<a name="483" href="#483">483</a>                 }
-<a name="484" href="#484">484</a>                 <strong class="jxr_keyword">else</strong>
-<a name="485" href="#485">485</a>                 {
-<a name="486" href="#486">486</a>                     getLog().warn( <span class="jxr_string">"Unrecognized '"</span> + s + <span class="jxr_string">"' for fixTags parameter. Ignored it!"</span> );
-<a name="487" href="#487">487</a>                 }
-<a name="488" href="#488">488</a>             }
-<a name="489" href="#489">489</a>             fixTags = StringUtils.join( filtered.iterator(), <span class="jxr_string">","</span> );
-<a name="490" href="#490">490</a>         }
-<a name="491" href="#491">491</a>         fixTagsSplitted = StringUtils.split( fixTags, <span class="jxr_string">","</span> );
-<a name="492" href="#492">492</a> 
-<a name="493" href="#493">493</a>         <em class="jxr_comment">// encoding</em>
-<a name="494" href="#494">494</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isEmpty( encoding ) )
-<a name="495" href="#495">495</a>         {
-<a name="496" href="#496">496</a>             getLog().warn(
-<a name="497" href="#497">497</a>                            <span class="jxr_string">"File encoding has not been set, using platform encoding "</span>
-<a name="498" href="#498">498</a>                                + ReaderFactory.FILE_ENCODING + <span class="jxr_string">", i.e. build is platform dependent!"</span> );
-<a name="499" href="#499">499</a>             encoding = ReaderFactory.FILE_ENCODING;
-<a name="500" href="#500">500</a>         }
-<a name="501" href="#501">501</a> 
-<a name="502" href="#502">502</a>         <em class="jxr_comment">// level</em>
-<a name="503" href="#503">503</a>         <strong class="jxr_keyword">if</strong> ( !( LEVEL_PUBLIC.equalsIgnoreCase( level.trim() ) || LEVEL_PROTECTED.equalsIgnoreCase( level.trim() )
-<a name="504" href="#504">504</a>             || LEVEL_PACKAGE.equalsIgnoreCase( level.trim() ) || LEVEL_PRIVATE.equalsIgnoreCase( level.trim() ) ) )
-<a name="505" href="#505">505</a>         {
-<a name="506" href="#506">506</a>             getLog().warn( <span class="jxr_string">"Unrecognized '"</span> + level + <span class="jxr_string">"' for level parameter, using 'protected' level."</span> );
-<a name="507" href="#507">507</a>             level = <span class="jxr_string">"protected"</span>;
-<a name="508" href="#508">508</a>         }
-<a name="509" href="#509">509</a>     }
-<a name="510" href="#510">510</a> 
-<a name="511" href="#511">511</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="512" href="#512">512</a> <em class="jxr_javadoccomment">     * @return &lt;code&gt;true&lt;/code&gt; if the user wants to proceed, &lt;code&gt;false&lt;/code&gt; otherwise.</em>
-<a name="513" href="#513">513</a> <em class="jxr_javadoccomment">     * @throws MojoExecutionException if any</em>
-<a name="514" href="#514">514</a> <em class="jxr_javadoccomment">     */</em>
-<a name="515" href="#515">515</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> preCheck()
-<a name="516" href="#516">516</a>         <strong class="jxr_keyword">throws</strong> MojoExecutionException
-<a name="517" href="#517">517</a>     {
-<a name="518" href="#518">518</a>         <strong class="jxr_keyword">if</strong> ( force )
-<a name="519" href="#519">519</a>         {
-<a name="520" href="#520">520</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a name="521" href="#521">521</a>         }
-<a name="522" href="#522">522</a> 
-<a name="523" href="#523">523</a>         <strong class="jxr_keyword">if</strong> ( outputDirectory != <strong class="jxr_keyword">null</strong>
-<a name="524" href="#524">524</a>             &amp;&amp; !outputDirectory.getAbsolutePath().equals( getProjectSourceDirectory().getAbsolutePath() ) )
-<a name="525" href="#525">525</a>         {
-<a name="526" href="#526">526</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a name="527" href="#527">527</a>         }
-<a name="528" href="#528">528</a> 
-<a name="529" href="#529">529</a>         <strong class="jxr_keyword">if</strong> ( !settings.isInteractiveMode() )
-<a name="530" href="#530">530</a>         {
-<a name="531" href="#531">531</a>             getLog().error(
-<a name="532" href="#532">532</a>                             <span class="jxr_string">"Maven is not attempt to interact with the user for input. "</span>
-<a name="533" href="#533">533</a>                                 + <span class="jxr_string">"Verify the &lt;interactiveMode/&gt; configuration in your settings."</span> );
-<a name="534" href="#534">534</a>             <strong class="jxr_keyword">return</strong> false;
-<a name="535" href="#535">535</a>         }
+<a name="456" href="#456">456</a>         StringBuffer sb = <strong class="jxr_keyword">new</strong> StringBuffer();
+<a name="457" href="#457">457</a> 
+<a name="458" href="#458">458</a>         sb.append( javaMethod.getParentClass().getFullyQualifiedName() );
+<a name="459" href="#459">459</a>         sb.append( <span class="jxr_string">"#"</span> ).append( javaMethod.getCallSignature() );
+<a name="460" href="#460">460</a> 
+<a name="461" href="#461">461</a>         <strong class="jxr_keyword">return</strong> sb.toString();
+<a name="462" href="#462">462</a>     }
+<a name="463" href="#463">463</a> 
+<a name="464" href="#464">464</a>     <em class="jxr_comment">// ----------------------------------------------------------------------</em>
+<a name="465" href="#465">465</a>     <em class="jxr_comment">// private methods</em>
+<a name="466" href="#466">466</a>     <em class="jxr_comment">// ----------------------------------------------------------------------</em>
+<a name="467" href="#467">467</a> 
+<a name="468" href="#468">468</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="469" href="#469">469</a> <em class="jxr_javadoccomment">     * Init goal parameters.</em>
+<a name="470" href="#470">470</a> <em class="jxr_javadoccomment">     */</em>
+<a name="471" href="#471">471</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> init()
+<a name="472" href="#472">472</a>     {
+<a name="473" href="#473">473</a>         <em class="jxr_comment">// defaultAuthor</em>
+<a name="474" href="#474">474</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isEmpty( defaultAuthor ) )
+<a name="475" href="#475">475</a>         {
+<a name="476" href="#476">476</a>             defaultAuthor = System.getProperty( <span class="jxr_string">"user.name"</span> );
+<a name="477" href="#477">477</a>         }
+<a name="478" href="#478">478</a> 
+<a name="479" href="#479">479</a>         <em class="jxr_comment">// defaultSince</em>
+<a name="480" href="#480">480</a>         <strong class="jxr_keyword">int</strong> i = defaultSince.indexOf( <span class="jxr_string">"-"</span> + Artifact.SNAPSHOT_VERSION );
+<a name="481" href="#481">481</a>         <strong class="jxr_keyword">if</strong> ( i != -1 )
+<a name="482" href="#482">482</a>         {
+<a name="483" href="#483">483</a>             defaultSince = defaultSince.substring( 0, i );
+<a name="484" href="#484">484</a>         }
+<a name="485" href="#485">485</a> 
+<a name="486" href="#486">486</a>         <em class="jxr_comment">// fixTags</em>
+<a name="487" href="#487">487</a>         <strong class="jxr_keyword">if</strong> ( !FIX_TAGS_ALL.equalsIgnoreCase( fixTags.trim() ) )
+<a name="488" href="#488">488</a>         {
+<a name="489" href="#489">489</a>             String[] split = StringUtils.split( fixTags, <span class="jxr_string">","</span> );
+<a name="490" href="#490">490</a>             List filtered = <strong class="jxr_keyword">new</strong> LinkedList();
+<a name="491" href="#491">491</a>             <strong class="jxr_keyword">for</strong> ( <strong class="jxr_keyword">int</strong> j = 0; j &lt; split.length; j++ )
+<a name="492" href="#492">492</a>             {
+<a name="493" href="#493">493</a>                 String s = split[j].trim();
+<a name="494" href="#494">494</a>                 <strong class="jxr_keyword">if</strong> ( FIX_TAGS_ALL.equalsIgnoreCase( s.trim() ) || AUTHOR_TAG.equalsIgnoreCase( s.trim() )
+<a name="495" href="#495">495</a>                     || VERSION_TAG.equalsIgnoreCase( s.trim() ) || SINCE_TAG.equalsIgnoreCase( s.trim() )
+<a name="496" href="#496">496</a>                     || PARAM_TAG.equalsIgnoreCase( s.trim() ) || RETURN_TAG.equalsIgnoreCase( s.trim() )
+<a name="497" href="#497">497</a>                     || THROWS_TAG.equalsIgnoreCase( s.trim() ) )
+<a name="498" href="#498">498</a>                 {
+<a name="499" href="#499">499</a>                     filtered.add( s );
+<a name="500" href="#500">500</a>                 }
+<a name="501" href="#501">501</a>                 <strong class="jxr_keyword">else</strong>
+<a name="502" href="#502">502</a>                 {
+<a name="503" href="#503">503</a>                     <strong class="jxr_keyword">if</strong> ( getLog().isWarnEnabled() )
+<a name="504" href="#504">504</a>                     {
+<a name="505" href="#505">505</a>                         getLog().warn( <span class="jxr_string">"Unrecognized '"</span> + s + <span class="jxr_string">"' for fixTags parameter. Ignored it!"</span> );
+<a name="506" href="#506">506</a>                     }
+<a name="507" href="#507">507</a>                 }
+<a name="508" href="#508">508</a>             }
+<a name="509" href="#509">509</a>             fixTags = StringUtils.join( filtered.iterator(), <span class="jxr_string">","</span> );
+<a name="510" href="#510">510</a>         }
+<a name="511" href="#511">511</a>         fixTagsSplitted = StringUtils.split( fixTags, <span class="jxr_string">","</span> );
+<a name="512" href="#512">512</a> 
+<a name="513" href="#513">513</a>         <em class="jxr_comment">// encoding</em>
+<a name="514" href="#514">514</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isEmpty( encoding ) )
+<a name="515" href="#515">515</a>         {
+<a name="516" href="#516">516</a>             <strong class="jxr_keyword">if</strong> ( getLog().isWarnEnabled() )
+<a name="517" href="#517">517</a>             {
+<a name="518" href="#518">518</a>                 getLog().warn(
+<a name="519" href="#519">519</a>                                <span class="jxr_string">"File encoding has not been set, using platform encoding "</span>
+<a name="520" href="#520">520</a>                                    + ReaderFactory.FILE_ENCODING + <span class="jxr_string">", i.e. build is platform dependent!"</span> );
+<a name="521" href="#521">521</a>             }
+<a name="522" href="#522">522</a>             encoding = ReaderFactory.FILE_ENCODING;
+<a name="523" href="#523">523</a>         }
+<a name="524" href="#524">524</a> 
+<a name="525" href="#525">525</a>         <em class="jxr_comment">// level</em>
+<a name="526" href="#526">526</a>         <strong class="jxr_keyword">if</strong> ( !( LEVEL_PUBLIC.equalsIgnoreCase( level.trim() ) || LEVEL_PROTECTED.equalsIgnoreCase( level.trim() )
+<a name="527" href="#527">527</a>             || LEVEL_PACKAGE.equalsIgnoreCase( level.trim() ) || LEVEL_PRIVATE.equalsIgnoreCase( level.trim() ) ) )
+<a name="528" href="#528">528</a>         {
+<a name="529" href="#529">529</a>             <strong class="jxr_keyword">if</strong> ( getLog().isWarnEnabled() )
+<a name="530" href="#530">530</a>             {
+<a name="531" href="#531">531</a>                 getLog().warn( <span class="jxr_string">"Unrecognized '"</span> + level + <span class="jxr_string">"' for level parameter, using 'protected' level."</span> );
+<a name="532" href="#532">532</a>             }
+<a name="533" href="#533">533</a>             level = <span class="jxr_string">"protected"</span>;
+<a name="534" href="#534">534</a>         }
+<a name="535" href="#535">535</a>     }
 <a name="536" href="#536">536</a> 
-<a name="537" href="#537">537</a>         getLog().warn( <span class="jxr_string">""</span> );
-<a name="538" href="#538">538</a>         getLog().warn( <span class="jxr_string">"    WARRANTY DISCLAIMER"</span> );
-<a name="539" href="#539">539</a>         getLog().warn( <span class="jxr_string">""</span> );
-<a name="540" href="#540">540</a>         getLog().warn( <span class="jxr_string">"All warranties with regard to this Maven goal are disclaimed!"</span> );
-<a name="541" href="#541">541</a>         getLog().warn( <span class="jxr_string">"The changes will be done directly in the source code."</span> );
-<a name="542" href="#542">542</a>         getLog().warn(
-<a name="543" href="#543">543</a>                        <span class="jxr_string">"The Maven Team strongly recommends the use of a SCM software BEFORE executing this "</span>
-<a name="544" href="#544">544</a>                            + <span class="jxr_string">"goal."</span> );
-<a name="545" href="#545">545</a>         getLog().warn( <span class="jxr_string">""</span> );
-<a name="546" href="#546">546</a> 
-<a name="547" href="#547">547</a>         <strong class="jxr_keyword">while</strong> ( <strong class="jxr_keyword">true</strong> )
-<a name="548" href="#548">548</a>         {
-<a name="549" href="#549">549</a>             getLog().info( <span class="jxr_string">"Are you sure to proceed? [Y]es [N]o"</span> );
-<a name="550" href="#550">550</a> 
-<a name="551" href="#551">551</a>             <strong class="jxr_keyword">try</strong>
-<a name="552" href="#552">552</a>             {
-<a name="553" href="#553">553</a>                 String userExpression = inputHandler.readLine();
-<a name="554" href="#554">554</a>                 <strong class="jxr_keyword">if</strong> ( userExpression == <strong class="jxr_keyword">null</strong> || userExpression.toLowerCase( Locale.ENGLISH ).equalsIgnoreCase( <span class="jxr_string">"Y"</span> )
-<a name="555" href="#555">555</a>                     || userExpression.toLowerCase( Locale.ENGLISH ).equalsIgnoreCase( <span class="jxr_string">"Yes"</span> ) )
-<a name="556" href="#556">556</a>                 {
-<a name="557" href="#557">557</a>                     getLog().info( <span class="jxr_string">"OK, let's proceed..."</span> );
-<a name="558" href="#558">558</a>                     <strong class="jxr_keyword">break</strong>;
-<a name="559" href="#559">559</a>                 }
-<a name="560" href="#560">560</a>                 <strong class="jxr_keyword">if</strong> ( userExpression == <strong class="jxr_keyword">null</strong> || userExpression.toLowerCase( Locale.ENGLISH ).equalsIgnoreCase( <span class="jxr_string">"N"</span> )
-<a name="561" href="#561">561</a>                     || userExpression.toLowerCase( Locale.ENGLISH ).equalsIgnoreCase( <span class="jxr_string">"No"</span> ) )
-<a name="562" href="#562">562</a>                 {
-<a name="563" href="#563">563</a>                     getLog().info( <span class="jxr_string">"No changes in your sources occur."</span> );
-<a name="564" href="#564">564</a>                     <strong class="jxr_keyword">return</strong> false;
-<a name="565" href="#565">565</a>                 }
-<a name="566" href="#566">566</a>             }
-<a name="567" href="#567">567</a>             <strong class="jxr_keyword">catch</strong> ( IOException e )
-<a name="568" href="#568">568</a>             {
-<a name="569" href="#569">569</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MojoExecutionException( <span class="jxr_string">"Unable to read from standard input."</span>, e );
-<a name="570" href="#570">570</a>             }
-<a name="571" href="#571">571</a>         }
+<a name="537" href="#537">537</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="538" href="#538">538</a> <em class="jxr_javadoccomment">     * @return &lt;code&gt;true&lt;/code&gt; if the user wants to proceed, &lt;code&gt;false&lt;/code&gt; otherwise.</em>
+<a name="539" href="#539">539</a> <em class="jxr_javadoccomment">     * @throws MojoExecutionException if any</em>
+<a name="540" href="#540">540</a> <em class="jxr_javadoccomment">     */</em>
+<a name="541" href="#541">541</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> preCheck()
+<a name="542" href="#542">542</a>         <strong class="jxr_keyword">throws</strong> MojoExecutionException
+<a name="543" href="#543">543</a>     {
+<a name="544" href="#544">544</a>         <strong class="jxr_keyword">if</strong> ( force )
+<a name="545" href="#545">545</a>         {
+<a name="546" href="#546">546</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a name="547" href="#547">547</a>         }
+<a name="548" href="#548">548</a> 
+<a name="549" href="#549">549</a>         <strong class="jxr_keyword">if</strong> ( outputDirectory != <strong class="jxr_keyword">null</strong>
+<a name="550" href="#550">550</a>             &amp;&amp; !outputDirectory.getAbsolutePath().equals( getProjectSourceDirectory().getAbsolutePath() ) )
+<a name="551" href="#551">551</a>         {
+<a name="552" href="#552">552</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a name="553" href="#553">553</a>         }
+<a name="554" href="#554">554</a> 
+<a name="555" href="#555">555</a>         <strong class="jxr_keyword">if</strong> ( !settings.isInteractiveMode() )
+<a name="556" href="#556">556</a>         {
+<a name="557" href="#557">557</a>             getLog().error(
+<a name="558" href="#558">558</a>                             <span class="jxr_string">"Maven is not attempt to interact with the user for input. "</span>
+<a name="559" href="#559">559</a>                                 + <span class="jxr_string">"Verify the &lt;interactiveMode/&gt; configuration in your settings."</span> );
+<a name="560" href="#560">560</a>             <strong class="jxr_keyword">return</strong> false;
+<a name="561" href="#561">561</a>         }
+<a name="562" href="#562">562</a> 
+<a name="563" href="#563">563</a>         getLog().warn( <span class="jxr_string">""</span> );
+<a name="564" href="#564">564</a>         getLog().warn( <span class="jxr_string">"    WARRANTY DISCLAIMER"</span> );
+<a name="565" href="#565">565</a>         getLog().warn( <span class="jxr_string">""</span> );
+<a name="566" href="#566">566</a>         getLog().warn( <span class="jxr_string">"All warranties with regard to this Maven goal are disclaimed!"</span> );
+<a name="567" href="#567">567</a>         getLog().warn( <span class="jxr_string">"The changes will be done directly in the source code."</span> );
+<a name="568" href="#568">568</a>         getLog().warn(
+<a name="569" href="#569">569</a>                        <span class="jxr_string">"The Maven Team strongly recommends the use of a SCM software BEFORE executing this "</span>
+<a name="570" href="#570">570</a>                            + <span class="jxr_string">"goal."</span> );
+<a name="571" href="#571">571</a>         getLog().warn( <span class="jxr_string">""</span> );
 <a name="572" href="#572">572</a> 
-<a name="573" href="#573">573</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a name="574" href="#574">574</a>     }
-<a name="575" href="#575">575</a> 
-<a name="576" href="#576">576</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="577" href="#577">577</a> <em class="jxr_javadoccomment">     * @return the source dir as File for the given project</em>
-<a name="578" href="#578">578</a> <em class="jxr_javadoccomment">     */</em>
-<a name="579" href="#579">579</a>     <strong class="jxr_keyword">private</strong> File getProjectSourceDirectory()
-<a name="580" href="#580">580</a>     {
-<a name="581" href="#581">581</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> File( project.getBuild().getSourceDirectory() );
-<a name="582" href="#582">582</a>     }
-<a name="583" href="#583">583</a> 
-<a name="584" href="#584">584</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="585" href="#585">585</a> <em class="jxr_javadoccomment">     * Invoke Maven to run clirr-maven-plugin to find API differences.</em>
-<a name="586" href="#586">586</a> <em class="jxr_javadoccomment">     */</em>
-<a name="587" href="#587">587</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> executeClirr()
-<a name="588" href="#588">588</a>     {
-<a name="589" href="#589">589</a>         <strong class="jxr_keyword">if</strong> ( ignoreClirr )
-<a name="590" href="#590">590</a>         {
-<a name="591" href="#591">591</a>             getLog().info( <span class="jxr_string">"Clirr is ignored."</span> );
-<a name="592" href="#592">592</a>             <strong class="jxr_keyword">return</strong>;
-<a name="593" href="#593">593</a>         }
-<a name="594" href="#594">594</a> 
-<a name="595" href="#595">595</a>         String clirrGoal = getFullClirrGoal();
-<a name="596" href="#596">596</a> 
-<a name="597" href="#597">597</a>         <em class="jxr_comment">// http://mojo.codehaus.org/clirr-maven-plugin/check-mojo.html</em>
-<a name="598" href="#598">598</a>         File clirrTextOutputFile = <strong class="jxr_keyword">new</strong> File( project.getBuild().getDirectory(), <span class="jxr_string">"clirr.txt"</span> );
-<a name="599" href="#599">599</a>         Properties properties = <strong class="jxr_keyword">new</strong> Properties();
-<a name="600" href="#600">600</a>         properties.put( <span class="jxr_string">"textOutputFile"</span>, clirrTextOutputFile.getAbsolutePath() );
-<a name="601" href="#601">601</a>         properties.put( <span class="jxr_string">"comparisonVersion"</span>, comparisonVersion );
-<a name="602" href="#602">602</a>         properties.put( <span class="jxr_string">"failOnError"</span>, <span class="jxr_string">"false"</span> );
-<a name="603" href="#603">603</a> 
-<a name="604" href="#604">604</a>         File invokerLogFile = <strong class="jxr_keyword">new</strong> File( project.getBuild().getDirectory(), <span class="jxr_string">"invoker-clirr-maven-plugin.txt"</span> );
-<a name="605" href="#605">605</a>         JavadocUtil.invokeMaven( getLog(), <strong class="jxr_keyword">new</strong> File( localRepository.getBasedir() ), project.getFile(),
-<a name="606" href="#606">606</a>                                  Collections.singletonList( clirrGoal ), properties, invokerLogFile );
-<a name="607" href="#607">607</a> 
-<a name="608" href="#608">608</a>         <strong class="jxr_keyword">try</strong>
-<a name="609" href="#609">609</a>         {
-<a name="610" href="#610">610</a>             <strong class="jxr_keyword">if</strong> ( invokerLogFile.exists() )
-<a name="611" href="#611">611</a>             {
-<a name="612" href="#612">612</a>                 String invokerLogContent = readFile( invokerLogFile, <span class="jxr_string">"UTF-8"</span> );
-<a name="613" href="#613">613</a>                 <em class="jxr_comment">// see org.codehaus.mojo.clirr.AbstractClirrMojo#getComparisonArtifact()</em>
-<a name="614" href="#614">614</a>                 <strong class="jxr_keyword">final</strong> String artifactNotFoundMsg =
-<a name="615" href="#615">615</a>                     <span class="jxr_string">"Unable to find a previous version of the project in the repository"</span>;
-<a name="616" href="#616">616</a>                 <strong class="jxr_keyword">if</strong> ( invokerLogContent.indexOf( artifactNotFoundMsg ) != -1 )
-<a name="617" href="#617">617</a>                 {
-<a name="618" href="#618">618</a>                     getLog().warn( <span class="jxr_string">"No previous artifact has been deployed, Clirr is ignored."</span> );
-<a name="619" href="#619">619</a>                     <strong class="jxr_keyword">return</strong>;
-<a name="620" href="#620">620</a>                 }
-<a name="621" href="#621">621</a>             }
+<a name="573" href="#573">573</a>         <strong class="jxr_keyword">while</strong> ( <strong class="jxr_keyword">true</strong> )
+<a name="574" href="#574">574</a>         {
+<a name="575" href="#575">575</a>             getLog().info( <span class="jxr_string">"Are you sure to proceed? [Y]es [N]o"</span> );
+<a name="576" href="#576">576</a> 
+<a name="577" href="#577">577</a>             <strong class="jxr_keyword">try</strong>
+<a name="578" href="#578">578</a>             {
+<a name="579" href="#579">579</a>                 String userExpression = inputHandler.readLine();
+<a name="580" href="#580">580</a>                 <strong class="jxr_keyword">if</strong> ( userExpression == <strong class="jxr_keyword">null</strong> || userExpression.toLowerCase( Locale.ENGLISH ).equalsIgnoreCase( <span class="jxr_string">"Y"</span> )
+<a name="581" href="#581">581</a>                     || userExpression.toLowerCase( Locale.ENGLISH ).equalsIgnoreCase( <span class="jxr_string">"Yes"</span> ) )
+<a name="582" href="#582">582</a>                 {
+<a name="583" href="#583">583</a>                     getLog().info( <span class="jxr_string">"OK, let's proceed..."</span> );
+<a name="584" href="#584">584</a>                     <strong class="jxr_keyword">break</strong>;
+<a name="585" href="#585">585</a>                 }
+<a name="586" href="#586">586</a>                 <strong class="jxr_keyword">if</strong> ( userExpression == <strong class="jxr_keyword">null</strong> || userExpression.toLowerCase( Locale.ENGLISH ).equalsIgnoreCase( <span class="jxr_string">"N"</span> )
+<a name="587" href="#587">587</a>                     || userExpression.toLowerCase( Locale.ENGLISH ).equalsIgnoreCase( <span class="jxr_string">"No"</span> ) )
+<a name="588" href="#588">588</a>                 {
+<a name="589" href="#589">589</a>                     getLog().info( <span class="jxr_string">"No changes in your sources occur."</span> );
+<a name="590" href="#590">590</a>                     <strong class="jxr_keyword">return</strong> false;
+<a name="591" href="#591">591</a>                 }
+<a name="592" href="#592">592</a>             }
+<a name="593" href="#593">593</a>             <strong class="jxr_keyword">catch</strong> ( IOException e )
+<a name="594" href="#594">594</a>             {
+<a name="595" href="#595">595</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MojoExecutionException( <span class="jxr_string">"Unable to read from standard input."</span>, e );
+<a name="596" href="#596">596</a>             }
+<a name="597" href="#597">597</a>         }
+<a name="598" href="#598">598</a> 
+<a name="599" href="#599">599</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a name="600" href="#600">600</a>     }
+<a name="601" href="#601">601</a> 
+<a name="602" href="#602">602</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="603" href="#603">603</a> <em class="jxr_javadoccomment">     * @return the source dir as File for the given project</em>
+<a name="604" href="#604">604</a> <em class="jxr_javadoccomment">     */</em>
+<a name="605" href="#605">605</a>     <strong class="jxr_keyword">private</strong> File getProjectSourceDirectory()
+<a name="606" href="#606">606</a>     {
+<a name="607" href="#607">607</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> File( project.getBuild().getSourceDirectory() );
+<a name="608" href="#608">608</a>     }
+<a name="609" href="#609">609</a> 
+<a name="610" href="#610">610</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="611" href="#611">611</a> <em class="jxr_javadoccomment">     * Invoke Maven to run clirr-maven-plugin to find API differences.</em>
+<a name="612" href="#612">612</a> <em class="jxr_javadoccomment">     *</em>
+<a name="613" href="#613">613</a> <em class="jxr_javadoccomment">     * @throws MavenInvocationException if any</em>
+<a name="614" href="#614">614</a> <em class="jxr_javadoccomment">     */</em>
+<a name="615" href="#615">615</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> executeClirr()
+<a name="616" href="#616">616</a>         <strong class="jxr_keyword">throws</strong> MavenInvocationException
+<a name="617" href="#617">617</a>     {
+<a name="618" href="#618">618</a>         <strong class="jxr_keyword">if</strong> ( ignoreClirr )
+<a name="619" href="#619">619</a>         {
+<a name="620" href="#620">620</a>             getLog().info( <span class="jxr_string">"Clirr is ignored."</span> );
+<a name="621" href="#621">621</a>             <strong class="jxr_keyword">return</strong>;
 <a name="622" href="#622">622</a>         }
-<a name="623" href="#623">623</a>         <strong class="jxr_keyword">catch</strong> ( IOException e )
-<a name="624" href="#624">624</a>         {
-<a name="625" href="#625">625</a>             getLog().debug( <span class="jxr_string">"IOException: "</span> + e.getMessage() );
-<a name="626" href="#626">626</a>         }
-<a name="627" href="#627">627</a> 
-<a name="628" href="#628">628</a>         <strong class="jxr_keyword">try</strong>
-<a name="629" href="#629">629</a>         {
-<a name="630" href="#630">630</a>             parseClirrTextOutputFile( clirrTextOutputFile );
-<a name="631" href="#631">631</a>         }
-<a name="632" href="#632">632</a>         <strong class="jxr_keyword">catch</strong> ( IOException e )
-<a name="633" href="#633">633</a>         {
-<a name="634" href="#634">634</a>             <strong class="jxr_keyword">if</strong> ( getLog().isDebugEnabled() )
-<a name="635" href="#635">635</a>             {
-<a name="636" href="#636">636</a>                 getLog().debug( <span class="jxr_string">"IOException: "</span> + e.getMessage(), e );
-<a name="637" href="#637">637</a>             }
-<a name="638" href="#638">638</a>             getLog().info(
-<a name="639" href="#639">639</a>                            <span class="jxr_string">"IOException when parsing Clirr output '"</span> + clirrTextOutputFile.getAbsolutePath()
-<a name="640" href="#640">640</a>                                + <span class="jxr_string">"', Clirr is ignored."</span> );
-<a name="641" href="#641">641</a>         }
-<a name="642" href="#642">642</a>     }
-<a name="643" href="#643">643</a> 
-<a name="644" href="#644">644</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="645" href="#645">645</a> <em class="jxr_javadoccomment">     * @param clirrTextOutputFile not null</em>
-<a name="646" href="#646">646</a> <em class="jxr_javadoccomment">     * @throws IOException if any</em>
-<a name="647" href="#647">647</a> <em class="jxr_javadoccomment">     */</em>
-<a name="648" href="#648">648</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> parseClirrTextOutputFile( File clirrTextOutputFile )
-<a name="649" href="#649">649</a>         <strong class="jxr_keyword">throws</strong> IOException
-<a name="650" href="#650">650</a>     {
-<a name="651" href="#651">651</a>         <strong class="jxr_keyword">if</strong> ( !clirrTextOutputFile.exists() )
-<a name="652" href="#652">652</a>         {
-<a name="653" href="#653">653</a>             getLog().info(
-<a name="654" href="#654">654</a>                            <span class="jxr_string">"No Clirr output file '"</span> + clirrTextOutputFile.getAbsolutePath()
-<a name="655" href="#655">655</a>                                + <span class="jxr_string">"' exists, Clirr is ignored."</span> );
-<a name="656" href="#656">656</a>             <strong class="jxr_keyword">return</strong>;
-<a name="657" href="#657">657</a>         }
-<a name="658" href="#658">658</a> 
-<a name="659" href="#659">659</a>         getLog().info( <span class="jxr_string">"Clirr output file was created: "</span> + clirrTextOutputFile.getAbsolutePath() );
+<a name="623" href="#623">623</a> 
+<a name="624" href="#624">624</a>         String clirrGoal = getFullClirrGoal();
+<a name="625" href="#625">625</a> 
+<a name="626" href="#626">626</a>         <em class="jxr_comment">// http://mojo.codehaus.org/clirr-maven-plugin/check-mojo.html</em>
+<a name="627" href="#627">627</a>         File clirrTextOutputFile =
+<a name="628" href="#628">628</a>             FileUtils.createTempFile( <span class="jxr_string">"clirr"</span>, <span class="jxr_string">".txt"</span>, <strong class="jxr_keyword">new</strong> File( project.getBuild().getDirectory() ) );
+<a name="629" href="#629">629</a>         Properties properties = <strong class="jxr_keyword">new</strong> Properties();
+<a name="630" href="#630">630</a>         properties.put( <span class="jxr_string">"textOutputFile"</span>, clirrTextOutputFile.getAbsolutePath() );
+<a name="631" href="#631">631</a>         properties.put( <span class="jxr_string">"comparisonVersion"</span>, comparisonVersion );
+<a name="632" href="#632">632</a>         properties.put( <span class="jxr_string">"failOnError"</span>, <span class="jxr_string">"false"</span> );
+<a name="633" href="#633">633</a> 
+<a name="634" href="#634">634</a>         File invokerDir = <strong class="jxr_keyword">new</strong> File( project.getBuild().getDirectory(), <span class="jxr_string">"invoker"</span> );
+<a name="635" href="#635">635</a>         invokerDir.mkdirs();
+<a name="636" href="#636">636</a>         File invokerLogFile = FileUtils.createTempFile( <span class="jxr_string">"clirr-maven-plugin"</span>, <span class="jxr_string">".txt"</span>, invokerDir );
+<a name="637" href="#637">637</a>         <strong class="jxr_keyword">new</strong> File( project.getBuild().getDirectory(), <span class="jxr_string">"invoker-clirr-maven-plugin.txt"</span> );
+<a name="638" href="#638">638</a>         JavadocUtil.invokeMaven( getLog(), <strong class="jxr_keyword">new</strong> File( localRepository.getBasedir() ), project.getFile(),
+<a name="639" href="#639">639</a>                                  Collections.singletonList( clirrGoal ), properties, invokerLogFile );
+<a name="640" href="#640">640</a> 
+<a name="641" href="#641">641</a>         <strong class="jxr_keyword">try</strong>
+<a name="642" href="#642">642</a>         {
+<a name="643" href="#643">643</a>             <strong class="jxr_keyword">if</strong> ( invokerLogFile.exists() )
+<a name="644" href="#644">644</a>             {
+<a name="645" href="#645">645</a>                 String invokerLogContent = StringUtils.unifyLineSeparators( FileUtils.fileRead( invokerLogFile, <span class="jxr_string">"UTF-8"</span> ) );
+<a name="646" href="#646">646</a>                 <em class="jxr_comment">// see org.codehaus.mojo.clirr.AbstractClirrMojo#getComparisonArtifact()</em>
+<a name="647" href="#647">647</a>                 <strong class="jxr_keyword">final</strong> String artifactNotFoundMsg =
+<a name="648" href="#648">648</a>                     <span class="jxr_string">"Unable to find a previous version of the project in the repository"</span>;
+<a name="649" href="#649">649</a>                 <strong class="jxr_keyword">if</strong> ( invokerLogContent.indexOf( artifactNotFoundMsg ) != -1 )
+<a name="650" href="#650">650</a>                 {
+<a name="651" href="#651">651</a>                     getLog().warn( <span class="jxr_string">"No previous artifact has been deployed, Clirr is ignored."</span> );
+<a name="652" href="#652">652</a>                     <strong class="jxr_keyword">return</strong>;
+<a name="653" href="#653">653</a>                 }
+<a name="654" href="#654">654</a>             }
+<a name="655" href="#655">655</a>         }
+<a name="656" href="#656">656</a>         <strong class="jxr_keyword">catch</strong> ( IOException e )
+<a name="657" href="#657">657</a>         {
+<a name="658" href="#658">658</a>             getLog().debug( <span class="jxr_string">"IOException: "</span> + e.getMessage() );
+<a name="659" href="#659">659</a>         }
 <a name="660" href="#660">660</a> 
-<a name="661" href="#661">661</a>         clirrNewClasses = <strong class="jxr_keyword">new</strong> LinkedList();
-<a name="662" href="#662">662</a>         clirrNewMethods = <strong class="jxr_keyword">new</strong> LinkedHashMap();
-<a name="663" href="#663">663</a> 
-<a name="664" href="#664">664</a>         BufferedReader input = <strong class="jxr_keyword">new</strong> BufferedReader( ReaderFactory.newReader( clirrTextOutputFile, <span class="jxr_string">"UTF-8"</span> ) );
-<a name="665" href="#665">665</a>         String line = <strong class="jxr_keyword">null</strong>;
-<a name="666" href="#666">666</a>         <strong class="jxr_keyword">while</strong> ( ( line = input.readLine() ) != <strong class="jxr_keyword">null</strong> )
-<a name="667" href="#667">667</a>         {
-<a name="668" href="#668">668</a>             String[] split = StringUtils.split( line, <span class="jxr_string">":"</span> );
-<a name="669" href="#669">669</a>             <strong class="jxr_keyword">if</strong> ( split.length != 4 )
-<a name="670" href="#670">670</a>             {
-<a name="671" href="#671">671</a>                 getLog().debug( <span class="jxr_string">"Unable to parse the clirr line: "</span> + line );
-<a name="672" href="#672">672</a>                 <strong class="jxr_keyword">continue</strong>;
-<a name="673" href="#673">673</a>             }
-<a name="674" href="#674">674</a> 
-<a name="675" href="#675">675</a>             <strong class="jxr_keyword">int</strong> code;
-<a name="676" href="#676">676</a>             <strong class="jxr_keyword">try</strong>
-<a name="677" href="#677">677</a>             {
-<a name="678" href="#678">678</a>                 code = Integer.parseInt( split[1].trim() );
-<a name="679" href="#679">679</a>             }
-<a name="680" href="#680">680</a>             <strong class="jxr_keyword">catch</strong> ( NumberFormatException e )
-<a name="681" href="#681">681</a>             {
-<a name="682" href="#682">682</a>                 getLog().debug( <span class="jxr_string">"Unable to parse the clirr line: "</span> + line );
-<a name="683" href="#683">683</a>                 <strong class="jxr_keyword">continue</strong>;
-<a name="684" href="#684">684</a>             }
-<a name="685" href="#685">685</a> 
-<a name="686" href="#686">686</a>             <em class="jxr_comment">// http://clirr.sourceforge.net/clirr-core/exegesis.html</em>
-<a name="687" href="#687">687</a>             <em class="jxr_comment">// 7011 - Method Added</em>
-<a name="688" href="#688">688</a>             <em class="jxr_comment">// 7012 - Method Added to Interface</em>
-<a name="689" href="#689">689</a>             <em class="jxr_comment">// 8000 - Class Added</em>
-<a name="690" href="#690">690</a>             List list;
-<a name="691" href="#691">691</a>             String[] splits2;
-<a name="692" href="#692">692</a>             <strong class="jxr_keyword">switch</strong> ( code )
-<a name="693" href="#693">693</a>             {
-<a name="694" href="#694">694</a>                 <strong class="jxr_keyword">case</strong> 7011:
-<a name="695" href="#695">695</a>                     list = (List) clirrNewMethods.get( split[2].trim() );
-<a name="696" href="#696">696</a>                     <strong class="jxr_keyword">if</strong> ( list == <strong class="jxr_keyword">null</strong> )
-<a name="697" href="#697">697</a>                     {
-<a name="698" href="#698">698</a>                         list = <strong class="jxr_keyword">new</strong> ArrayList();
-<a name="699" href="#699">699</a>                     }
-<a name="700" href="#700">700</a>                     splits2 = StringUtils.split( split[3].trim(), <span class="jxr_string">"'"</span> );
-<a name="701" href="#701">701</a>                     <strong class="jxr_keyword">if</strong> ( splits2.length != 3 )
-<a name="702" href="#702">702</a>                     {
-<a name="703" href="#703">703</a>                         <strong class="jxr_keyword">continue</strong>;
-<a name="704" href="#704">704</a>                     }
-<a name="705" href="#705">705</a>                     list.add( splits2[1].trim() );
-<a name="706" href="#706">706</a>                     clirrNewMethods.put( split[2].trim(), list );
-<a name="707" href="#707">707</a>                     <strong class="jxr_keyword">break</strong>;
-<a name="708" href="#708">708</a> 
-<a name="709" href="#709">709</a>                 <strong class="jxr_keyword">case</strong> 7012:
-<a name="710" href="#710">710</a>                     list = (List) clirrNewMethods.get( split[2].trim() );
-<a name="711" href="#711">711</a>                     <strong class="jxr_keyword">if</strong> ( list == <strong class="jxr_keyword">null</strong> )
-<a name="712" href="#712">712</a>                     {
-<a name="713" href="#713">713</a>                         list = <strong class="jxr_keyword">new</strong> ArrayList();
-<a name="714" href="#714">714</a>                     }
-<a name="715" href="#715">715</a>                     splits2 = StringUtils.split( split[3].trim(), <span class="jxr_string">"'"</span> );
-<a name="716" href="#716">716</a>                     <strong class="jxr_keyword">if</strong> ( splits2.length != 3 )
-<a name="717" href="#717">717</a>                     {
-<a name="718" href="#718">718</a>                         <strong class="jxr_keyword">continue</strong>;
-<a name="719" href="#719">719</a>                     }
-<a name="720" href="#720">720</a>                     list.add( splits2[1].trim() );
-<a name="721" href="#721">721</a>                     clirrNewMethods.put( split[2].trim(), list );
-<a name="722" href="#722">722</a>                     <strong class="jxr_keyword">break</strong>;
-<a name="723" href="#723">723</a> 
-<a name="724" href="#724">724</a>                 <strong class="jxr_keyword">case</strong> 8000:
-<a name="725" href="#725">725</a>                     clirrNewClasses.add( split[2].trim() );
-<a name="726" href="#726">726</a>                     <strong class="jxr_keyword">break</strong>;
-<a name="727" href="#727">727</a>                 <strong class="jxr_keyword">default</strong>:
-<a name="728" href="#728">728</a>                     <strong class="jxr_keyword">break</strong>;
+<a name="661" href="#661">661</a>         <strong class="jxr_keyword">try</strong>
+<a name="662" href="#662">662</a>         {
+<a name="663" href="#663">663</a>             parseClirrTextOutputFile( clirrTextOutputFile );
+<a name="664" href="#664">664</a>         }
+<a name="665" href="#665">665</a>         <strong class="jxr_keyword">catch</strong> ( IOException e )
+<a name="666" href="#666">666</a>         {
+<a name="667" href="#667">667</a>             <strong class="jxr_keyword">if</strong> ( getLog().isDebugEnabled() )
+<a name="668" href="#668">668</a>             {
+<a name="669" href="#669">669</a>                 getLog().debug( <span class="jxr_string">"IOException: "</span> + e.getMessage(), e );
+<a name="670" href="#670">670</a>             }
+<a name="671" href="#671">671</a>             getLog().info(
+<a name="672" href="#672">672</a>                            <span class="jxr_string">"IOException when parsing Clirr output '"</span> + clirrTextOutputFile.getAbsolutePath()
+<a name="673" href="#673">673</a>                                + <span class="jxr_string">"', Clirr is ignored."</span> );
+<a name="674" href="#674">674</a>         }
+<a name="675" href="#675">675</a>     }
+<a name="676" href="#676">676</a> 
+<a name="677" href="#677">677</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="678" href="#678">678</a> <em class="jxr_javadoccomment">     * @param clirrTextOutputFile not null</em>
+<a name="679" href="#679">679</a> <em class="jxr_javadoccomment">     * @throws IOException if any</em>
+<a name="680" href="#680">680</a> <em class="jxr_javadoccomment">     */</em>
+<a name="681" href="#681">681</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> parseClirrTextOutputFile( File clirrTextOutputFile )
+<a name="682" href="#682">682</a>         <strong class="jxr_keyword">throws</strong> IOException
+<a name="683" href="#683">683</a>     {
+<a name="684" href="#684">684</a>         <strong class="jxr_keyword">if</strong> ( !clirrTextOutputFile.exists() )
+<a name="685" href="#685">685</a>         {
+<a name="686" href="#686">686</a>             <strong class="jxr_keyword">if</strong> ( getLog().isInfoEnabled() )
+<a name="687" href="#687">687</a>             {
+<a name="688" href="#688">688</a>                 getLog().info(
+<a name="689" href="#689">689</a>                                <span class="jxr_string">"No Clirr output file '"</span> + clirrTextOutputFile.getAbsolutePath()
+<a name="690" href="#690">690</a>                                    + <span class="jxr_string">"' exists, Clirr is ignored."</span> );
+<a name="691" href="#691">691</a>             }
+<a name="692" href="#692">692</a>             <strong class="jxr_keyword">return</strong>;
+<a name="693" href="#693">693</a>         }
+<a name="694" href="#694">694</a> 
+<a name="695" href="#695">695</a>         <strong class="jxr_keyword">if</strong> ( getLog().isInfoEnabled() )
+<a name="696" href="#696">696</a>         {
+<a name="697" href="#697">697</a>             getLog().info( <span class="jxr_string">"Clirr output file was created: "</span> + clirrTextOutputFile.getAbsolutePath() );
+<a name="698" href="#698">698</a>         }
+<a name="699" href="#699">699</a> 
+<a name="700" href="#700">700</a>         clirrNewClasses = <strong class="jxr_keyword">new</strong> LinkedList();
+<a name="701" href="#701">701</a>         clirrNewMethods = <strong class="jxr_keyword">new</strong> LinkedHashMap();
+<a name="702" href="#702">702</a> 
+<a name="703" href="#703">703</a>         BufferedReader input = <strong class="jxr_keyword">new</strong> BufferedReader( ReaderFactory.newReader( clirrTextOutputFile, <span class="jxr_string">"UTF-8"</span> ) );
+<a name="704" href="#704">704</a>         String line = <strong class="jxr_keyword">null</strong>;
+<a name="705" href="#705">705</a>         <strong class="jxr_keyword">while</strong> ( ( line = input.readLine() ) != <strong class="jxr_keyword">null</strong> )
+<a name="706" href="#706">706</a>         {
+<a name="707" href="#707">707</a>             String[] split = StringUtils.split( line, <span class="jxr_string">":"</span> );
+<a name="708" href="#708">708</a>             <strong class="jxr_keyword">if</strong> ( split.length != 4 )
+<a name="709" href="#709">709</a>             {
+<a name="710" href="#710">710</a>                 <strong class="jxr_keyword">if</strong> ( getLog().isDebugEnabled() )
+<a name="711" href="#711">711</a>                 {
+<a name="712" href="#712">712</a>                     getLog().debug( <span class="jxr_string">"Unable to parse the clirr line: "</span> + line );
+<a name="713" href="#713">713</a>                 }
+<a name="714" href="#714">714</a>                 <strong class="jxr_keyword">continue</strong>;
+<a name="715" href="#715">715</a>             }
+<a name="716" href="#716">716</a> 
+<a name="717" href="#717">717</a>             <strong class="jxr_keyword">int</strong> code;
+<a name="718" href="#718">718</a>             <strong class="jxr_keyword">try</strong>
+<a name="719" href="#719">719</a>             {
+<a name="720" href="#720">720</a>                 code = Integer.parseInt( split[1].trim() );
+<a name="721" href="#721">721</a>             }
+<a name="722" href="#722">722</a>             <strong class="jxr_keyword">catch</strong> ( NumberFormatException e )
+<a name="723" href="#723">723</a>             {
+<a name="724" href="#724">724</a>                 <strong class="jxr_keyword">if</strong> ( getLog().isDebugEnabled() )
+<a name="725" href="#725">725</a>                 {
+<a name="726" href="#726">726</a>                     getLog().debug( <span class="jxr_string">"Unable to parse the clirr line: "</span> + line );
+<a name="727" href="#727">727</a>                 }
+<a name="728" href="#728">728</a>                 <strong class="jxr_keyword">continue</strong>;
 <a name="729" href="#729">729</a>             }
-<a name="730" href="#730">730</a>         }
-<a name="731" href="#731">731</a> 
-<a name="732" href="#732">732</a>         <strong class="jxr_keyword">if</strong> ( clirrNewClasses.isEmpty() &amp;&amp; clirrNewMethods.isEmpty() )
-<a name="733" href="#733">733</a>         {
-<a name="734" href="#734">734</a>             getLog().info( <span class="jxr_string">"Clirr NOT found API differences."</span> );
-<a name="735" href="#735">735</a>         }
-<a name="736" href="#736">736</a>         <strong class="jxr_keyword">else</strong>
-<a name="737" href="#737">737</a>         {
-<a name="738" href="#738">738</a>             getLog().info( <span class="jxr_string">"Clirr found API differences, i.e. new classes/interfaces or methods."</span> );
-<a name="739" href="#739">739</a>         }
-<a name="740" href="#740">740</a>     }
-<a name="741" href="#741">741</a> 
-<a name="742" href="#742">742</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="743" href="#743">743</a> <em class="jxr_javadoccomment">     * @param tag not null</em>
-<a name="744" href="#744">744</a> <em class="jxr_javadoccomment">     * @return &lt;code&gt;true&lt;/code&gt; if &lt;code&gt;tag&lt;/code&gt; is defined in {@link #fixTags}.</em>
-<a name="745" href="#745">745</a> <em class="jxr_javadoccomment">     */</em>
-<a name="746" href="#746">746</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> fixTag( String tag )
-<a name="747" href="#747">747</a>     {
-<a name="748" href="#748">748</a>         <strong class="jxr_keyword">if</strong> ( fixTagsSplitted.length == 1 &amp;&amp; fixTagsSplitted[0].equals( FIX_TAGS_ALL ) )
-<a name="749" href="#749">749</a>         {
-<a name="750" href="#750">750</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a name="751" href="#751">751</a>         }
-<a name="752" href="#752">752</a> 
-<a name="753" href="#753">753</a>         <strong class="jxr_keyword">for</strong> ( <strong class="jxr_keyword">int</strong> i = 0; i &lt; fixTagsSplitted.length; i++ )
-<a name="754" href="#754">754</a>         {
-<a name="755" href="#755">755</a>             <strong class="jxr_keyword">if</strong> ( fixTagsSplitted[i].trim().equals( tag ) )
-<a name="756" href="#756">756</a>             {
-<a name="757" href="#757">757</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a name="758" href="#758">758</a>             }
-<a name="759" href="#759">759</a>         }
-<a name="760" href="#760">760</a> 
-<a name="761" href="#761">761</a>         <strong class="jxr_keyword">return</strong> false;
-<a name="762" href="#762">762</a>     }
-<a name="763" href="#763">763</a> 
-<a name="764" href="#764">764</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="765" href="#765">765</a> <em class="jxr_javadoccomment">     * Calling Qdox to find {@link JavaClass} objects from the Maven project sources.</em>
-<a name="766" href="#766">766</a> <em class="jxr_javadoccomment">     * Ignore java class if Qdox has parsing errors.</em>
-<a name="767" href="#767">767</a> <em class="jxr_javadoccomment">     *</em>
-<a name="768" href="#768">768</a> <em class="jxr_javadoccomment">     * @return an array of {@link JavaClass} found by QDox</em>
-<a name="769" href="#769">769</a> <em class="jxr_javadoccomment">     * @throws IOException if any</em>
-<a name="770" href="#770">770</a> <em class="jxr_javadoccomment">     * @throws MojoExecutionException if any</em>
-<a name="771" href="#771">771</a> <em class="jxr_javadoccomment">     */</em>
-<a name="772" href="#772">772</a>     <strong class="jxr_keyword">private</strong> JavaClass[] getQdoxClasses()
-<a name="773" href="#773">773</a>         <strong class="jxr_keyword">throws</strong> IOException, MojoExecutionException
-<a name="774" href="#774">774</a>     {
-<a name="775" href="#775">775</a>         <strong class="jxr_keyword">if</strong> ( <span class="jxr_string">"pom"</span>.equals( project.getPackaging().toLowerCase() ) )
-<a name="776" href="#776">776</a>         {
-<a name="777" href="#777">777</a>             getLog().warn( <span class="jxr_string">"This project has 'pom' packaging, no Java sources is available."</span> );
-<a name="778" href="#778">778</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a name="779" href="#779">779</a>         }
-<a name="780" href="#780">780</a> 
-<a name="781" href="#781">781</a>         List javaFiles = <strong class="jxr_keyword">new</strong> LinkedList();
-<a name="782" href="#782">782</a>         <strong class="jxr_keyword">for</strong> ( Iterator i = getProjectSourceRoots( project ).iterator(); i.hasNext(); )
-<a name="783" href="#783">783</a>         {
-<a name="784" href="#784">784</a>             File f = <strong class="jxr_keyword">new</strong> File( (String) i.next() );
-<a name="785" href="#785">785</a>             <strong class="jxr_keyword">if</strong> ( f.isDirectory() )
-<a name="786" href="#786">786</a>             {
-<a name="787" href="#787">787</a>                 javaFiles.addAll( FileUtils.getFiles( f, includes, excludes, <strong class="jxr_keyword">true</strong> ) );
-<a name="788" href="#788">788</a>             }
-<a name="789" href="#789">789</a>             <strong class="jxr_keyword">else</strong>
-<a name="790" href="#790">790</a>             {
-<a name="791" href="#791">791</a>                 getLog().warn( f + <span class="jxr_string">" doesn't exist. Ignored it."</span> );
-<a name="792" href="#792">792</a>             }
-<a name="793" href="#793">793</a>         }
-<a name="794" href="#794">794</a> 
-<a name="795" href="#795">795</a>         JavaDocBuilder builder = <strong class="jxr_keyword">new</strong> JavaDocBuilder();
-<a name="796" href="#796">796</a>         builder.getClassLibrary().addClassLoader( getProjectClassLoader() );
-<a name="797" href="#797">797</a>         builder.setEncoding( encoding );
-<a name="798" href="#798">798</a>         <strong class="jxr_keyword">for</strong> ( Iterator i = javaFiles.iterator(); i.hasNext(); )
+<a name="730" href="#730">730</a> 
+<a name="731" href="#731">731</a>             <em class="jxr_comment">// http://clirr.sourceforge.net/clirr-core/exegesis.html</em>
+<a name="732" href="#732">732</a>             <em class="jxr_comment">// 7011 - Method Added</em>
+<a name="733" href="#733">733</a>             <em class="jxr_comment">// 7012 - Method Added to Interface</em>
+<a name="734" href="#734">734</a>             <em class="jxr_comment">// 8000 - Class Added</em>
+<a name="735" href="#735">735</a>             List list;
+<a name="736" href="#736">736</a>             String[] splits2;
+<a name="737" href="#737">737</a>             <strong class="jxr_keyword">switch</strong> ( code )
+<a name="738" href="#738">738</a>             {
+<a name="739" href="#739">739</a>                 <strong class="jxr_keyword">case</strong> 7011:
+<a name="740" href="#740">740</a>                     list = (List) clirrNewMethods.get( split[2].trim() );
+<a name="741" href="#741">741</a>                     <strong class="jxr_keyword">if</strong> ( list == <strong class="jxr_keyword">null</strong> )
+<a name="742" href="#742">742</a>                     {
+<a name="743" href="#743">743</a>                         list = <strong class="jxr_keyword">new</strong> ArrayList();
+<a name="744" href="#744">744</a>                     }
+<a name="745" href="#745">745</a>                     splits2 = StringUtils.split( split[3].trim(), <span class="jxr_string">"'"</span> );
+<a name="746" href="#746">746</a>                     <strong class="jxr_keyword">if</strong> ( splits2.length != 3 )
+<a name="747" href="#747">747</a>                     {
+<a name="748" href="#748">748</a>                         <strong class="jxr_keyword">continue</strong>;
+<a name="749" href="#749">749</a>                     }
+<a name="750" href="#750">750</a>                     list.add( splits2[1].trim() );
+<a name="751" href="#751">751</a>                     clirrNewMethods.put( split[2].trim(), list );
+<a name="752" href="#752">752</a>                     <strong class="jxr_keyword">break</strong>;
+<a name="753" href="#753">753</a> 
+<a name="754" href="#754">754</a>                 <strong class="jxr_keyword">case</strong> 7012:
+<a name="755" href="#755">755</a>                     list = (List) clirrNewMethods.get( split[2].trim() );
+<a name="756" href="#756">756</a>                     <strong class="jxr_keyword">if</strong> ( list == <strong class="jxr_keyword">null</strong> )
+<a name="757" href="#757">757</a>                     {
+<a name="758" href="#758">758</a>                         list = <strong class="jxr_keyword">new</strong> ArrayList();
+<a name="759" href="#759">759</a>                     }
+<a name="760" href="#760">760</a>                     splits2 = StringUtils.split( split[3].trim(), <span class="jxr_string">"'"</span> );
+<a name="761" href="#761">761</a>                     <strong class="jxr_keyword">if</strong> ( splits2.length != 3 )
+<a name="762" href="#762">762</a>                     {
+<a name="763" href="#763">763</a>                         <strong class="jxr_keyword">continue</strong>;
+<a name="764" href="#764">764</a>                     }
+<a name="765" href="#765">765</a>                     list.add( splits2[1].trim() );
+<a name="766" href="#766">766</a>                     clirrNewMethods.put( split[2].trim(), list );
+<a name="767" href="#767">767</a>                     <strong class="jxr_keyword">break</strong>;
+<a name="768" href="#768">768</a> 
+<a name="769" href="#769">769</a>                 <strong class="jxr_keyword">case</strong> 8000:
+<a name="770" href="#770">770</a>                     clirrNewClasses.add( split[2].trim() );
+<a name="771" href="#771">771</a>                     <strong class="jxr_keyword">break</strong>;
+<a name="772" href="#772">772</a>                 <strong class="jxr_keyword">default</strong>:
+<a name="773" href="#773">773</a>                     <strong class="jxr_keyword">break</strong>;
+<a name="774" href="#774">774</a>             }
+<a name="775" href="#775">775</a>         }
+<a name="776" href="#776">776</a> 
+<a name="777" href="#777">777</a>         <strong class="jxr_keyword">if</strong> ( clirrNewClasses.isEmpty() &amp;&amp; clirrNewMethods.isEmpty() )
+<a name="778" href="#778">778</a>         {
+<a name="779" href="#779">779</a>             getLog().info( <span class="jxr_string">"Clirr NOT found API differences."</span> );
+<a name="780" href="#780">780</a>         }
+<a name="781" href="#781">781</a>         <strong class="jxr_keyword">else</strong>
+<a name="782" href="#782">782</a>         {
+<a name="783" href="#783">783</a>             getLog().info( <span class="jxr_string">"Clirr found API differences, i.e. new classes/interfaces or methods."</span> );
+<a name="784" href="#784">784</a>         }
+<a name="785" href="#785">785</a>     }
+<a name="786" href="#786">786</a> 
+<a name="787" href="#787">787</a>     <em class="jxr_javadoccomment">/**</em>
+<a name="788" href="#788">788</a> <em class="jxr_javadoccomment">     * @param tag not null</em>
+<a name="789" href="#789">789</a> <em class="jxr_javadoccomment">     * @return &lt;code&gt;true&lt;/code&gt; if &lt;code&gt;tag&lt;/code&gt; is defined in {@link #fixTags}.</em>
+<a name="790" href="#790">790</a> <em class="jxr_javadoccomment">     */</em>
+<a name="791" href="#791">791</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> fixTag( String tag )
+<a name="792" href="#792">792</a>     {
+<a name="793" href="#793">793</a>         <strong class="jxr_keyword">if</strong> ( fixTagsSplitted.length == 1 &amp;&amp; fixTagsSplitted[0].equals( FIX_TAGS_ALL ) )
+<a name="794" href="#794">794</a>         {
+<a name="795" href="#795">795</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a name="796" href="#796">796</a>         }
+<a name="797" href="#797">797</a> 
+<a name="798" href="#798">798</a>         <strong class="jxr_keyword">for</strong> ( <strong class="jxr_keyword">int</strong> i = 0; i &lt; fixTagsSplitted.length; i++ )
 <a name="799" href="#799">799</a>         {
-<a name="800" href="#800">800</a>             File f = (File) i.next();
-<a name="801" href="#801">801</a>             <strong class="jxr_keyword">if</strong> ( !f.getAbsolutePath().toLowerCase( Locale.ENGLISH ).endsWith( <span class="jxr_string">".java"</span> )
-<a name="802" href="#802">802</a>                 &amp;&amp; getLog().isWarnEnabled() )
-<a name="803" href="#803">803</a>             {
-<a name="804" href="#804">804</a>                 getLog().warn( <span class="jxr_string">"'"</span> + f + <span class="jxr_string">"' is not a Java file. Ignored it."</span> );
-<a name="805" href="#805">805</a>                 <strong class="jxr_keyword">continue</strong>;
-<a name="806" href="#806">806</a>             }
-<a name="807" href="#807">807</a> 
-<a name="808" href="#808">808</a>             <strong class="jxr_keyword">try</strong>
-<a name="809" href="#809">809</a>             {
-<a name="810" href="#810">810</a>                 builder.addSource( f );
-<a name="811" href="#811">811</a>             }
-<a name="812" href="#812">812</a>             <strong class="jxr_keyword">catch</strong> ( ParseException e )
-<a name="813" href="#813">813</a>             {
-<a name="814" href="#814">814</a>                 getLog().warn( <span class="jxr_string">"QDOX ParseException: "</span> + e.getMessage() + <span class="jxr_string">". Can't fix it."</span> );
-<a name="815" href="#815">815</a>             }
-<a name="816" href="#816">816</a>         }
-<a name="817" href="#817">817</a> 
-<a name="818" href="#818">818</a>         <strong class="jxr_keyword">return</strong> builder.getClasses();
-<a name="819" href="#819">819</a>     }
-<a name="820" href="#820">820</a> 
-<a name="821" href="#821">821</a>     <em class="jxr_javadoccomment">/**</em>
-<a name="822" href="#822">822</a> <em class="jxr_javadoccomment">     * @return the classLoader for the given project using lazy instantiation.</em>
-<a name="823" href="#823">823</a> <em class="jxr_javadoccomment">     * @throws MojoExecutionException if any</em>
-<a name="824" href="#824">824</a> <em class="jxr_javadoccomment">     */</em>
-<a name="825" href="#825">825</a>     <strong class="jxr_keyword">private</strong> ClassLoader getProjectClassLoader()
-<a name="826" href="#826">826</a>         <strong class="jxr_keyword">throws</strong> MojoExecutionException
-<a name="827" href="#827">827</a>     {
-<a name="828" href="#828">828</a>         <strong class="jxr_keyword">if</strong> ( projectClassLoader == <strong class="jxr_keyword">null</strong> )
-<a name="829" href="#829">829</a>         {
-<a name="830" href="#830">830</a>             List classPath;
-<a name="831" href="#831">831</a>             <strong class="jxr_keyword">try</strong>
-<a name="832" href="#832">832</a>             {
-<a name="833" href="#833">833</a>                 classPath = getCompileClasspathElements( project );
-<a name="834" href="#834">834</a>             }
-<a name="835" href="#835">835</a>             <strong class="jxr_keyword">catch</strong> ( DependencyResolutionRequiredException e )
-<a name="836" href="#836">836</a>             {
-<a name="837" href="#837">837</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MojoExecutionException( <span class="jxr_string">"DependencyResolutionRequiredException: "</span> + e.getMessage(), e );
-<a name="838" href="#838">838</a>             }
-<a name="839" href="#839">839</a> 
-<a name="840" href="#840">840</a>             List urls = <strong class="jxr_keyword">new</strong> ArrayList( classPath.size() );
-<a name="841" href="#841">841</a>             Iterator iter = classPath.iterator();
-<a name="842" href="#842">842</a>             <strong class="jxr_keyword">while</strong> ( iter.hasNext() )
-<a name="843" href="#843">843</a>             {
-<a name="844" href="#844">844</a>                 <strong class="jxr_keyword">try</strong>
-<a name="845" href="#845">845</a>                 {
-<a name="846" href="#846">846</a>                     urls.add( <strong class="jxr_keyword">new</strong> File( ( (String) iter.next() ) ).toURL() );
-<a name="847" href="#847">847</a>                 }
-<a name="848" href="#848">848</a>                 <strong class="jxr_keyword">catch</strong> ( MalformedURLException e )
-<a name="849" href="#849">849</a>                 {
-<a name="850" href="#850">850</a>                     <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> MojoExecutionException( <span class="jxr_string">"MalformedURLException: "</span> + e.getMessage(), e );
-<a name="851" href="#851">851</a>                 }
-<a name="852" href="#852">852</a>             }
-<a name="853" href="#853">853</a> 
-<a name="854" href="#854">854</a>             projectClassLoader = <strong class="jxr_keyword">new</strong> URLClassLoader( (URL[]) urls.toArray( <strong class="jxr_keyword">new</strong> URL[urls.size()] ), <strong class="jxr_keyword">null</strong> );
-<a name="855" href="#855">855</a>         }
-<a name="856" href="#856">856</a> 
-<a name="857" href="#857">857</a>         <strong class="jxr_keyword">return</strong> projectClassLoader;
-<a name="858" href="#858">858</a>     }
-<a name="859" href="#859">859</a> 
-<a name="860" href="#860">860</a>     <em class="jxr_javadoccomment">/**</em>

[... 5578 lines stripped ...]


Mime
View raw message