creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r919554 [13/16] - in /websites/staging/creadur/trunk/content: ./ rat/ rat/apache-rat-core/ rat/apache-rat-core/apidocs/ rat/apache-rat-core/apidocs/org/apache/rat/license/ rat/apache-rat-core/apidocs/org/apache/rat/license/class-use/ rat/ap...
Date Sat, 16 Aug 2014 18:31:49 GMT
Modified: websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/document/impl/guesser/NoteGuesser.html
==============================================================================
--- websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/document/impl/guesser/NoteGuesser.html
(original)
+++ websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/document/impl/guesser/NoteGuesser.html
Sat Aug 16 18:31:47 2014
@@ -23,7 +23,7 @@
 <a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment">
* KIND, either express or implied.  See the License for the    *</em>
 <a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment">
* specific language governing permissions and limitations      *</em>
 <a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_comment">
* under the License.                                           *</em>
-<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <em class="jxr_comment">
*/</em> 
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <em class="jxr_comment">
*/</em>
 <a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">package</strong>
org.apache.rat.document.impl.guesser;
 <a class="jxr_linenumber" name="L20" href="#L20">20</a>  
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong>
java.util.Arrays;
@@ -34,59 +34,60 @@
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/rat/document/impl/guesser/NoteGuesser.html">NoteGuesser</a>
{
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>  
 <a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String DOT = <span class="jxr_string">"."</span>;
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>  	<strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String[] NOTE_FILE_NAMES = {
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>          <span class="jxr_string">"NOTICE"</span>,
<span class="jxr_string">"LICENSE"</span>,
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>          <span class="jxr_string">"LICENSE.TXT"</span>,
<span class="jxr_string">"NOTICE.TXT"</span>,
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>          <span class="jxr_string">"INSTALL"</span>,
<span class="jxr_string">"INSTALL.TXT"</span>,
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>          <span class="jxr_string">"README"</span>,
<span class="jxr_string">"README.TXT"</span>, 
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <span class="jxr_string">"NEWS"</span>,
<span class="jxr_string">"NEWS.TXT"</span>,
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>          <span class="jxr_string">"AUTHOR"</span>,
<span class="jxr_string">"AUTHOR.TXT"</span>,
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <span class="jxr_string">"AUTHORS"</span>,
<span class="jxr_string">"AUTHORS.txt"</span>,
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <span class="jxr_string">"CHANGELOG"</span>,
<span class="jxr_string">"CHANGELOG.TXT"</span>,
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <span class="jxr_string">"DISCLAIMER"</span>,
<span class="jxr_string">"DISCLAIMER.TXT"</span>,
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          <span class="jxr_string">"KEYS"</span>,
<span class="jxr_string">"KEYS.TXT"</span>,
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <span class="jxr_string">"RELEASE-NOTES"</span>,
<span class="jxr_string">"RELEASE-NOTES.TXT"</span>,
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <span class="jxr_string">"RELEASE_NOTES"</span>,
<span class="jxr_string">"RELEASE_NOTES.TXT"</span>,
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <span class="jxr_string">"UPGRADE"</span>,
<span class="jxr_string">"UPGRADE.TXT"</span>,
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>          <span class="jxr_string">"STATUS"</span>,
<span class="jxr_string">"STATUS.TXT"</span>,
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>          <span class="jxr_string">"THIRD_PARTY_NOTICES"</span>,
<span class="jxr_string">"THIRD_PARTY_NOTICES.TXT"</span>,
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <span class="jxr_string">"COPYRIGHT"</span>,
<span class="jxr_string">"COPYRIGHT.TXT"</span>,
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <span class="jxr_string">"BUILDING"</span>,
<span class="jxr_string">"BUILDING.TXT"</span>,
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>          <span class="jxr_string">"BUILD"</span>,
<span class="jxr_string">"BUILT.TXT"</span>,
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>      };
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String[] NOTE_FILE_EXTENSIONS = {
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <span class="jxr_string">"LICENSE"</span>,
<span class="jxr_string">"LICENSE.TXT"</span>,
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          <span class="jxr_string">"NOTICE"</span>,
<span class="jxr_string">"NOTICE.TXT"</span>,
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>      };
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>      
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>  <em class="jxr_javadoccomment">
    * @return Is a file by that name a note file?</em>
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>  <em class="jxr_javadoccomment">
    * @param name file name.</em>
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>  <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">boolean</strong> isNote(<strong class="jxr_keyword">final</strong>
String name) {
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>          <strong class="jxr_keyword">if</strong>
(name == <strong class="jxr_keyword">null</strong>) {<strong class="jxr_keyword">return</strong>
false;}
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>      
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>          List&lt;String&gt;
l = Arrays.asList(NoteGuesser.NOTE_FILE_NAMES);
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>          String normalisedName
= GuessUtils.normalise(name);
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>          
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>          <strong class="jxr_keyword">if</strong>
(l.contains(name) || l.contains(normalisedName)) {
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>              <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>          }
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>  
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>          <strong class="jxr_keyword">for</strong>
(<strong class="jxr_keyword">int</strong> i = 0; i &lt; NoteGuesser.NOTE_FILE_EXTENSIONS.length;
i++) {
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>              <strong
class="jxr_keyword">if</strong> (normalisedName.endsWith(DOT + NoteGuesser.NOTE_FILE_EXTENSIONS[i]))
{
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>                  <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>              }
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>          }
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>          
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>          <strong class="jxr_keyword">return</strong>
false;
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>      }
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>  
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">boolean</strong> isNote(<strong class="jxr_keyword">final</strong>
<a href="../../../../../../org/apache/rat/api/Document.html">Document</a> document)
{
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>          <strong class="jxr_keyword">return</strong>
isNote(document.getName());
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>      }
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>  
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>  }
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String[] NOTE_FILE_NAMES = {
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>          <span class="jxr_string">"NOTICE"</span>,
<span class="jxr_string">"LICENSE"</span>,
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>          <span class="jxr_string">"LICENSE.TXT"</span>,
<span class="jxr_string">"NOTICE.TXT"</span>,
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>          <span class="jxr_string">"INSTALL"</span>,
<span class="jxr_string">"INSTALL.TXT"</span>,
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <span class="jxr_string">"README"</span>,
<span class="jxr_string">"README.TXT"</span>,
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          <span class="jxr_string">"NEWS"</span>,
<span class="jxr_string">"NEWS.TXT"</span>,
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          <span class="jxr_string">"AUTHOR"</span>,
<span class="jxr_string">"AUTHOR.TXT"</span>,
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <span class="jxr_string">"AUTHORS"</span>,
<span class="jxr_string">"AUTHORS.txt"</span>,
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <span class="jxr_string">"CHANGELOG"</span>,
<span class="jxr_string">"CHANGELOG.TXT"</span>,
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          <span class="jxr_string">"DISCLAIMER"</span>,
<span class="jxr_string">"DISCLAIMER.TXT"</span>,
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <span class="jxr_string">"KEYS"</span>,
<span class="jxr_string">"KEYS.TXT"</span>,
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <span class="jxr_string">"RELEASE-NOTES"</span>,
<span class="jxr_string">"RELEASE-NOTES.TXT"</span>,
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <span class="jxr_string">"RELEASE_NOTES"</span>,
<span class="jxr_string">"RELEASE_NOTES.TXT"</span>,
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          <span class="jxr_string">"UPGRADE"</span>,
<span class="jxr_string">"UPGRADE.TXT"</span>,
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          <span class="jxr_string">"STATUS"</span>,
<span class="jxr_string">"STATUS.TXT"</span>,
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <span class="jxr_string">"THIRD_PARTY_NOTICES"</span>,
<span class="jxr_string">"THIRD_PARTY_NOTICES.TXT"</span>,
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <span class="jxr_string">"COPYRIGHT"</span>,
<span class="jxr_string">"COPYRIGHT.TXT"</span>,
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          <span class="jxr_string">"BUILDING"</span>,
<span class="jxr_string">"BUILDING.TXT"</span>,
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <span class="jxr_string">"BUILD"</span>,
<span class="jxr_string">"BUILT.TXT"</span>,
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      };
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
String[] NOTE_FILE_EXTENSIONS = {
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          <span class="jxr_string">"LICENSE"</span>,
<span class="jxr_string">"LICENSE.TXT"</span>,
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <span class="jxr_string">"NOTICE"</span>,
<span class="jxr_string">"NOTICE.TXT"</span>,
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      };
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>  
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>  <em class="jxr_javadoccomment">
    * @return Is a file by that name a note file?</em>
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  <em class="jxr_javadoccomment">
    * @param name file name.</em>
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  <em class="jxr_javadoccomment">
    */</em>
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">boolean</strong> isNote(<strong class="jxr_keyword">final</strong>
String name) {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          <strong class="jxr_keyword">if</strong>
(name == <strong class="jxr_keyword">null</strong>) {<strong class="jxr_keyword">return</strong>
false;}
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>  
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          List&lt;String&gt;
l = Arrays.asList(NoteGuesser.NOTE_FILE_NAMES);
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          String normalisedName
= GuessUtils.normalise(name);
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>  
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          <strong class="jxr_keyword">if</strong>
(l.contains(name) || l.contains(normalisedName)) {
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>              <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          }
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>  
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          <strong class="jxr_keyword">for</strong>
(<strong class="jxr_keyword">int</strong> i = 0; i &lt; NoteGuesser.NOTE_FILE_EXTENSIONS.length;
i++) {
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>              <strong
class="jxr_keyword">if</strong> (normalisedName.endsWith(DOT + NoteGuesser.NOTE_FILE_EXTENSIONS[i]))
{
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>                  <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              }
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          }
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>  
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          <strong class="jxr_keyword">return</strong>
false;
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>      }
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>  
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong>
<strong class="jxr_keyword">boolean</strong> isNote(<strong class="jxr_keyword">final</strong>
<a href="../../../../../../org/apache/rat/api/Document.html">Document</a> document)
{
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          <strong class="jxr_keyword">return</strong>
isNote(document.getName());
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      }
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>  
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>  }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2006&#x2013;2014 <a href="http://www.apache.org">Apache
Software Foundation</a>. All rights reserved.</div>

Modified: websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/license/GPL1LicenseFamily.html
==============================================================================
--- websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/license/GPL1LicenseFamily.html
(original)
+++ websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/license/GPL1LicenseFamily.html
Sat Aug 16 18:31:47 2014
@@ -29,7 +29,7 @@
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong>
org.apache.rat.api.MetaData;
 <a class="jxr_linenumber" name="L22" href="#L22">22</a>  
 <a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
* Base implementation for GPLv3 or later.</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
* Base implementation for GPLv1 or later.</em>
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment">
*/</em>
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/rat/license/GPL1LicenseFamily.html">GPL1LicenseFamily</a>
<strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/rat/license/SimpleLicenseFamily.html">SimpleLicenseFamily</a>
{
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>      <strong class="jxr_keyword">public</strong>
<a href="../../../../org/apache/rat/license/GPL1LicenseFamily.html">GPL1LicenseFamily</a>()
{

Modified: websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/license/GPL2LicenseFamily.html
==============================================================================
--- websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/license/GPL2LicenseFamily.html
(original)
+++ websites/staging/creadur/trunk/content/rat/xref/org/apache/rat/license/GPL2LicenseFamily.html
Sat Aug 16 18:31:47 2014
@@ -29,7 +29,7 @@
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong>
org.apache.rat.api.MetaData;
 <a class="jxr_linenumber" name="L22" href="#L22">22</a>  
 <a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
* Base implementation for GPLv3 or later.</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
* Base implementation for GPLv2 or later.</em>
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment">
*/</em>
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/rat/license/GPL2LicenseFamily.html">GPL2LicenseFamily</a>
<strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/rat/license/SimpleLicenseFamily.html">SimpleLicenseFamily</a>
{
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>      <strong class="jxr_keyword">public</strong>
<a href="../../../../org/apache/rat/license/GPL2LicenseFamily.html">GPL2LicenseFamily</a>()
{



Mime
View raw message