maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r816640 [15/15] - in /websites/production/maventest/content/plugins/maven-shade-plugin-latest: ./ apidocs/ apidocs/org/apache/maven/plugins/shade/ apidocs/org/apache/maven/plugins/shade/class-use/ apidocs/org/apache/maven/plugins/shade/filt...
Date Tue, 08 May 2012 13:29:37 GMT
Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/pom/package-frame.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/pom/package-frame.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/pom/package-frame.html Tue May  8 13:29:31 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Maven Shade Plugin 1.3.2 Reference Package org.apache.maven.plugins.shade.pom</title>
+		<title>Maven Shade Plugin 1.3.3 Reference Package org.apache.maven.plugins.shade.pom</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/pom/package-summary.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/pom/package-summary.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/pom/package-summary.html Tue May  8 13:29:31 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Maven Shade Plugin 1.3.2 Reference Package org.apache.maven.plugins.shade.pom</title>
+		<title>Maven Shade Plugin 1.3.3 Reference Package org.apache.maven.plugins.shade.pom</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/relocation/package-frame.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/relocation/package-frame.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/relocation/package-frame.html Tue May  8 13:29:31 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Maven Shade Plugin 1.3.2 Reference Package org.apache.maven.plugins.shade.relocation</title>
+		<title>Maven Shade Plugin 1.3.3 Reference Package org.apache.maven.plugins.shade.relocation</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/relocation/package-summary.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/relocation/package-summary.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/relocation/package-summary.html Tue May  8 13:29:31 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Maven Shade Plugin 1.3.2 Reference Package org.apache.maven.plugins.shade.relocation</title>
+		<title>Maven Shade Plugin 1.3.3 Reference Package org.apache.maven.plugins.shade.relocation</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.html Tue May  8 13:29:31 2012
@@ -50,224 +50,227 @@
 <a name="40" href="#40">40</a>  
 <a name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.codehaus.plexus.util.StringUtils;
 <a name="42" href="#42">42</a>  
-<a name="43" href="#43">43</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.html">ApacheNoticeResourceTransformer</a>
-<a name="44" href="#44">44</a>      implements <a href="../../../../../../org/apache/maven/plugins/shade/resource/ResourceTransformer.html">ResourceTransformer</a>
-<a name="45" href="#45">45</a>  {
-<a name="46" href="#46">46</a>      Set entries = <strong class="jxr_keyword">new</strong> LinkedHashSet();
-<a name="47" href="#47">47</a>      Map organizationEntries = <strong class="jxr_keyword">new</strong> LinkedHashMap();
-<a name="48" href="#48">48</a>  
-<a name="49" href="#49">49</a>      String projectName;
-<a name="50" href="#50">50</a>      <strong class="jxr_keyword">boolean</strong> addHeader = <strong class="jxr_keyword">true</strong>;
+<a name="43" href="#43">43</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="44" href="#44">44</a>  <em class="jxr_javadoccomment"> * Merges &lt;code&gt;META-INF/NOTICE.TXT&lt;/code&gt; files.</em>
+<a name="45" href="#45">45</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="46" href="#46">46</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.html">ApacheNoticeResourceTransformer</a>
+<a name="47" href="#47">47</a>      implements <a href="../../../../../../org/apache/maven/plugins/shade/resource/ResourceTransformer.html">ResourceTransformer</a>
+<a name="48" href="#48">48</a>  {
+<a name="49" href="#49">49</a>      Set entries = <strong class="jxr_keyword">new</strong> LinkedHashSet();
+<a name="50" href="#50">50</a>      Map organizationEntries = <strong class="jxr_keyword">new</strong> LinkedHashMap();
 <a name="51" href="#51">51</a>  
-<a name="52" href="#52">52</a>      String preamble1 =
-<a name="53" href="#53">53</a>            <span class="jxr_string">"// ------------------------------------------------------------------\n"</span>
-<a name="54" href="#54">54</a>          + <span class="jxr_string">"// NOTICE file corresponding to the section 4d of The Apache License,\n"</span>
-<a name="55" href="#55">55</a>          + <span class="jxr_string">"// Version 2.0, in this case for "</span>;
-<a name="56" href="#56">56</a>  
-<a name="57" href="#57">57</a>      String preamble2 = <span class="jxr_string">"\n// ------------------------------------------------------------------\n"</span>;
-<a name="58" href="#58">58</a>  
-<a name="59" href="#59">59</a>      String preamble3 = <span class="jxr_string">"This product includes software developed at\n"</span>;
-<a name="60" href="#60">60</a>  
-<a name="61" href="#61">61</a>      <em class="jxr_comment">//defaults overridable via config in pom</em>
-<a name="62" href="#62">62</a>      String organizationName = <span class="jxr_string">"The Apache Software Foundation"</span>;
-<a name="63" href="#63">63</a>      String organizationURL = <span class="jxr_string">"http://www.apache.org/"</span>;
-<a name="64" href="#64">64</a>      String inceptionYear = <span class="jxr_string">"2006"</span>;
-<a name="65" href="#65">65</a>  
-<a name="66" href="#66">66</a>      String copyright;
-<a name="67" href="#67">67</a>  
-<a name="68" href="#68">68</a>      <em class="jxr_javadoccomment">/**</em>
-<a name="69" href="#69">69</a>  <em class="jxr_javadoccomment">     * The file encoding of the &lt;code&gt;NOTICE&lt;/code&gt; file.</em>
-<a name="70" href="#70">70</a>  <em class="jxr_javadoccomment">     */</em>
-<a name="71" href="#71">71</a>      String encoding;
-<a name="72" href="#72">72</a>  
-<a name="73" href="#73">73</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String NOTICE_PATH = <span class="jxr_string">"META-INF/NOTICE"</span>;
-<a name="74" href="#74">74</a>  
-<a name="75" href="#75">75</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String NOTICE_TXT_PATH = <span class="jxr_string">"META-INF/NOTICE.txt"</span>;
-<a name="76" href="#76">76</a>  
-<a name="77" href="#77">77</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> canTransformResource( String resource )
-<a name="78" href="#78">78</a>      {
-<a name="79" href="#79">79</a>          <strong class="jxr_keyword">if</strong> ( NOTICE_PATH.equalsIgnoreCase( resource ) || NOTICE_TXT_PATH.equalsIgnoreCase( resource ) )
-<a name="80" href="#80">80</a>          {
-<a name="81" href="#81">81</a>              <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a name="82" href="#82">82</a>          }
-<a name="83" href="#83">83</a>  
-<a name="84" href="#84">84</a>          <strong class="jxr_keyword">return</strong> false;
-<a name="85" href="#85">85</a>      }
+<a name="52" href="#52">52</a>      String projectName;
+<a name="53" href="#53">53</a>      <strong class="jxr_keyword">boolean</strong> addHeader = <strong class="jxr_keyword">true</strong>;
+<a name="54" href="#54">54</a>  
+<a name="55" href="#55">55</a>      String preamble1 =
+<a name="56" href="#56">56</a>            <span class="jxr_string">"// ------------------------------------------------------------------\n"</span>
+<a name="57" href="#57">57</a>          + <span class="jxr_string">"// NOTICE file corresponding to the section 4d of The Apache License,\n"</span>
+<a name="58" href="#58">58</a>          + <span class="jxr_string">"// Version 2.0, in this case for "</span>;
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>      String preamble2 = <span class="jxr_string">"\n// ------------------------------------------------------------------\n"</span>;
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>      String preamble3 = <span class="jxr_string">"This product includes software developed at\n"</span>;
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>      <em class="jxr_comment">//defaults overridable via config in pom</em>
+<a name="65" href="#65">65</a>      String organizationName = <span class="jxr_string">"The Apache Software Foundation"</span>;
+<a name="66" href="#66">66</a>      String organizationURL = <span class="jxr_string">"http://www.apache.org/"</span>;
+<a name="67" href="#67">67</a>      String inceptionYear = <span class="jxr_string">"2006"</span>;
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>      String copyright;
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>      <em class="jxr_javadoccomment">/**</em>
+<a name="72" href="#72">72</a>  <em class="jxr_javadoccomment">     * The file encoding of the &lt;code&gt;NOTICE&lt;/code&gt; file.</em>
+<a name="73" href="#73">73</a>  <em class="jxr_javadoccomment">     */</em>
+<a name="74" href="#74">74</a>      String encoding;
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String NOTICE_PATH = <span class="jxr_string">"META-INF/NOTICE"</span>;
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String NOTICE_TXT_PATH = <span class="jxr_string">"META-INF/NOTICE.txt"</span>;
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> canTransformResource( String resource )
+<a name="81" href="#81">81</a>      {
+<a name="82" href="#82">82</a>          <strong class="jxr_keyword">if</strong> ( NOTICE_PATH.equalsIgnoreCase( resource ) || NOTICE_TXT_PATH.equalsIgnoreCase( resource ) )
+<a name="83" href="#83">83</a>          {
+<a name="84" href="#84">84</a>              <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a name="85" href="#85">85</a>          }
 <a name="86" href="#86">86</a>  
-<a name="87" href="#87">87</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> processResource( String resource, InputStream is, List relocators )
-<a name="88" href="#88">88</a>          <strong class="jxr_keyword">throws</strong> IOException
-<a name="89" href="#89">89</a>      {
-<a name="90" href="#90">90</a>          <strong class="jxr_keyword">if</strong> ( entries.isEmpty() )
-<a name="91" href="#91">91</a>          {
-<a name="92" href="#92">92</a>              String year = <strong class="jxr_keyword">new</strong> SimpleDateFormat( <span class="jxr_string">"yyyy"</span> ).format( <strong class="jxr_keyword">new</strong> Date() );
-<a name="93" href="#93">93</a>              <strong class="jxr_keyword">if</strong> ( !inceptionYear.equals( year ) )
-<a name="94" href="#94">94</a>              {
-<a name="95" href="#95">95</a>                  year = inceptionYear + <span class="jxr_string">"-"</span> + year;
-<a name="96" href="#96">96</a>              }
-<a name="97" href="#97">97</a>  
-<a name="98" href="#98">98</a>  
-<a name="99" href="#99">99</a>              <em class="jxr_comment">//add headers</em>
-<a name="100" href="#100">100</a>             <strong class="jxr_keyword">if</strong> ( addHeader ) 
-<a name="101" href="#101">101</a>             {
-<a name="102" href="#102">102</a>                 entries.add( preamble1 + projectName + preamble2 );
-<a name="103" href="#103">103</a>             }
-<a name="104" href="#104">104</a>             <strong class="jxr_keyword">else</strong>
-<a name="105" href="#105">105</a>             {
-<a name="106" href="#106">106</a>                 entries.add( <span class="jxr_string">""</span> );
-<a name="107" href="#107">107</a>             }
-<a name="108" href="#108">108</a>             <em class="jxr_comment">//fake second entry, we'll look for a real one later</em>
-<a name="109" href="#109">109</a>             entries.add( projectName + <span class="jxr_string">"\nCopyright "</span> + year + <span class="jxr_string">" "</span> + organizationName + <span class="jxr_string">"\n"</span> );
-<a name="110" href="#110">110</a>             entries.add( preamble3 + organizationName + <span class="jxr_string">" ("</span> + organizationURL + <span class="jxr_string">").\n"</span> );
-<a name="111" href="#111">111</a>         }
-<a name="112" href="#112">112</a> 
-<a name="113" href="#113">113</a> 
-<a name="114" href="#114">114</a>         BufferedReader reader;
-<a name="115" href="#115">115</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isNotEmpty( encoding ) )
-<a name="116" href="#116">116</a>         {
-<a name="117" href="#117">117</a>             reader = <strong class="jxr_keyword">new</strong> BufferedReader( <strong class="jxr_keyword">new</strong> InputStreamReader( is, encoding ) );
-<a name="118" href="#118">118</a>         }
-<a name="119" href="#119">119</a>         <strong class="jxr_keyword">else</strong>
-<a name="120" href="#120">120</a>         {
-<a name="121" href="#121">121</a>             reader = <strong class="jxr_keyword">new</strong> BufferedReader( <strong class="jxr_keyword">new</strong> InputStreamReader( is ) );
-<a name="122" href="#122">122</a>         }
-<a name="123" href="#123">123</a> 
-<a name="124" href="#124">124</a>         String line = reader.readLine();
-<a name="125" href="#125">125</a>         StringBuffer sb = <strong class="jxr_keyword">new</strong> StringBuffer();
-<a name="126" href="#126">126</a>         Set currentOrg = <strong class="jxr_keyword">null</strong>;
-<a name="127" href="#127">127</a>         <strong class="jxr_keyword">int</strong> lineCount = 0;
-<a name="128" href="#128">128</a>         <strong class="jxr_keyword">while</strong> ( line != <strong class="jxr_keyword">null</strong> )
-<a name="129" href="#129">129</a>         {
-<a name="130" href="#130">130</a>             String trimedLine = line.trim();
-<a name="131" href="#131">131</a> 
-<a name="132" href="#132">132</a>             <strong class="jxr_keyword">if</strong> ( !trimedLine.startsWith( <span class="jxr_string">"//"</span> ) )
-<a name="133" href="#133">133</a>             {
-<a name="134" href="#134">134</a>                 <strong class="jxr_keyword">if</strong> ( trimedLine.length() &gt; 0 )
-<a name="135" href="#135">135</a>                 {
-<a name="136" href="#136">136</a>                     <strong class="jxr_keyword">if</strong> ( trimedLine.startsWith( <span class="jxr_string">"- "</span> ) )
-<a name="137" href="#137">137</a>                     {
-<a name="138" href="#138">138</a>                         <em class="jxr_comment">//resource-bundle 1.3 mode</em>
-<a name="139" href="#139">139</a>                         <strong class="jxr_keyword">if</strong> ( lineCount == 1
-<a name="140" href="#140">140</a>                             &amp;&amp; sb.toString().indexOf( <span class="jxr_string">"This product includes/uses software(s) developed by"</span> ) != -1 )
-<a name="141" href="#141">141</a>                         {
-<a name="142" href="#142">142</a>                             currentOrg = (Set) organizationEntries.get( sb.toString().trim() );
-<a name="143" href="#143">143</a>                             <strong class="jxr_keyword">if</strong> ( currentOrg == <strong class="jxr_keyword">null</strong> )
-<a name="144" href="#144">144</a>                             {
-<a name="145" href="#145">145</a>                                 currentOrg = <strong class="jxr_keyword">new</strong> TreeSet();
-<a name="146" href="#146">146</a>                                 organizationEntries.put( sb.toString().trim(), currentOrg );
-<a name="147" href="#147">147</a>                             }
-<a name="148" href="#148">148</a>                             sb = <strong class="jxr_keyword">new</strong> StringBuffer();
-<a name="149" href="#149">149</a>                         }
-<a name="150" href="#150">150</a>                         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( sb.length() &gt; 0 &amp;&amp; currentOrg != <strong class="jxr_keyword">null</strong> )
-<a name="151" href="#151">151</a>                         {
-<a name="152" href="#152">152</a>                             currentOrg.add( sb.toString() );
-<a name="153" href="#153">153</a>                             sb = <strong class="jxr_keyword">new</strong> StringBuffer();
-<a name="154" href="#154">154</a>                         }
-<a name="155" href="#155">155</a> 
-<a name="156" href="#156">156</a>                     }
-<a name="157" href="#157">157</a>                     sb.append( line ).append( <span class="jxr_string">"\n"</span> );
-<a name="158" href="#158">158</a>                     lineCount++;
-<a name="159" href="#159">159</a>                 }
-<a name="160" href="#160">160</a>                 <strong class="jxr_keyword">else</strong>
-<a name="161" href="#161">161</a>                 {
-<a name="162" href="#162">162</a>                     String ent = sb.toString();
-<a name="163" href="#163">163</a>                     <strong class="jxr_keyword">if</strong> ( ent.startsWith( projectName )
-<a name="164" href="#164">164</a>                         &amp;&amp; ent.indexOf( <span class="jxr_string">"Copyright "</span> ) != -1 )
-<a name="165" href="#165">165</a>                     {
-<a name="166" href="#166">166</a>                         copyright = ent;
-<a name="167" href="#167">167</a>                     }
-<a name="168" href="#168">168</a>                     <strong class="jxr_keyword">if</strong> ( currentOrg == <strong class="jxr_keyword">null</strong> )
-<a name="169" href="#169">169</a>                     {
-<a name="170" href="#170">170</a>                         entries.add( ent );
-<a name="171" href="#171">171</a>                     }
-<a name="172" href="#172">172</a>                     <strong class="jxr_keyword">else</strong>
-<a name="173" href="#173">173</a>                     {
-<a name="174" href="#174">174</a>                         currentOrg.add( ent );
-<a name="175" href="#175">175</a>                     }
-<a name="176" href="#176">176</a>                     sb = <strong class="jxr_keyword">new</strong> StringBuffer();
-<a name="177" href="#177">177</a>                     lineCount = 0;
-<a name="178" href="#178">178</a>                     currentOrg = <strong class="jxr_keyword">null</strong>;
-<a name="179" href="#179">179</a>                 }
-<a name="180" href="#180">180</a>             }
-<a name="181" href="#181">181</a> 
-<a name="182" href="#182">182</a>             line = reader.readLine();
-<a name="183" href="#183">183</a>         }
-<a name="184" href="#184">184</a>         <strong class="jxr_keyword">if</strong> ( sb.length() &gt; 0 ) 
-<a name="185" href="#185">185</a>         {
-<a name="186" href="#186">186</a>             <strong class="jxr_keyword">if</strong> ( currentOrg == <strong class="jxr_keyword">null</strong> )
-<a name="187" href="#187">187</a>             {
-<a name="188" href="#188">188</a>                 entries.add( sb.toString() );
-<a name="189" href="#189">189</a>             }
-<a name="190" href="#190">190</a>             <strong class="jxr_keyword">else</strong>
-<a name="191" href="#191">191</a>             {
-<a name="192" href="#192">192</a>                 currentOrg.add( sb.toString() );
-<a name="193" href="#193">193</a>             }
-<a name="194" href="#194">194</a>         }
-<a name="195" href="#195">195</a>     }
-<a name="196" href="#196">196</a> 
-<a name="197" href="#197">197</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> hasTransformedResource()
-<a name="198" href="#198">198</a>     {
-<a name="199" href="#199">199</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a name="200" href="#200">200</a>     }
-<a name="201" href="#201">201</a> 
-<a name="202" href="#202">202</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> modifyOutputStream( JarOutputStream jos )
-<a name="203" href="#203">203</a>         <strong class="jxr_keyword">throws</strong> IOException
-<a name="204" href="#204">204</a>     {
-<a name="205" href="#205">205</a>         jos.putNextEntry( <strong class="jxr_keyword">new</strong> JarEntry( NOTICE_PATH ) );
-<a name="206" href="#206">206</a> 
-<a name="207" href="#207">207</a>         Writer pow;
-<a name="208" href="#208">208</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isNotEmpty( encoding ) )
-<a name="209" href="#209">209</a>         {
-<a name="210" href="#210">210</a>             pow = <strong class="jxr_keyword">new</strong> OutputStreamWriter( jos, encoding );
-<a name="211" href="#211">211</a>         }
-<a name="212" href="#212">212</a>         <strong class="jxr_keyword">else</strong>
-<a name="213" href="#213">213</a>         {
-<a name="214" href="#214">214</a>             pow = <strong class="jxr_keyword">new</strong> OutputStreamWriter( jos );
-<a name="215" href="#215">215</a>         }
-<a name="216" href="#216">216</a>         PrintWriter writer = <strong class="jxr_keyword">new</strong> PrintWriter( pow );
-<a name="217" href="#217">217</a> 
-<a name="218" href="#218">218</a>         <strong class="jxr_keyword">int</strong> count = 0;
-<a name="219" href="#219">219</a>         <strong class="jxr_keyword">for</strong> ( Iterator itr = entries.iterator() ; itr.hasNext() ; )
-<a name="220" href="#220">220</a>         {
-<a name="221" href="#221">221</a>             ++count;
-<a name="222" href="#222">222</a>             String line = (String) itr.next();
-<a name="223" href="#223">223</a>             <strong class="jxr_keyword">if</strong> ( line.equals( copyright ) &amp;&amp; count != 2 )
-<a name="224" href="#224">224</a>             {
-<a name="225" href="#225">225</a>                 <strong class="jxr_keyword">continue</strong>;
-<a name="226" href="#226">226</a>             }
-<a name="227" href="#227">227</a> 
-<a name="228" href="#228">228</a>             <strong class="jxr_keyword">if</strong> ( count == 2 &amp;&amp; copyright != <strong class="jxr_keyword">null</strong> )
-<a name="229" href="#229">229</a>             {
-<a name="230" href="#230">230</a>                 writer.print( copyright );
-<a name="231" href="#231">231</a>                 writer.print( '\n' );
-<a name="232" href="#232">232</a>             }
-<a name="233" href="#233">233</a>             <strong class="jxr_keyword">else</strong>
-<a name="234" href="#234">234</a>             {
-<a name="235" href="#235">235</a>                 writer.print( line );
-<a name="236" href="#236">236</a>                 writer.print( '\n' );
-<a name="237" href="#237">237</a>             }
-<a name="238" href="#238">238</a>             <strong class="jxr_keyword">if</strong> ( count == 3 )
-<a name="239" href="#239">239</a>             {
-<a name="240" href="#240">240</a>                 <em class="jxr_comment">//do org stuff</em>
-<a name="241" href="#241">241</a>                 <strong class="jxr_keyword">for</strong> ( Iterator oit = organizationEntries.entrySet().iterator(); oit.hasNext(); )
-<a name="242" href="#242">242</a>                 {
-<a name="243" href="#243">243</a>                     Map.Entry entry = (Map.Entry) oit.next();
-<a name="244" href="#244">244</a>                     writer.print( entry.getKey().toString() );
-<a name="245" href="#245">245</a>                     writer.print( '\n' );
-<a name="246" href="#246">246</a>                     Set entrySet = (Set) entry.getValue();
-<a name="247" href="#247">247</a>                     <strong class="jxr_keyword">for</strong> ( Iterator eit = entrySet.iterator(); eit.hasNext(); )
-<a name="248" href="#248">248</a>                     {
-<a name="249" href="#249">249</a>                         writer.print( eit.next().toString() );
-<a name="250" href="#250">250</a>                     }
-<a name="251" href="#251">251</a>                     writer.print( '\n' );
-<a name="252" href="#252">252</a>                 }
-<a name="253" href="#253">253</a>             }
-<a name="254" href="#254">254</a>         }
-<a name="255" href="#255">255</a> 
-<a name="256" href="#256">256</a>         writer.flush();
-<a name="257" href="#257">257</a> 
-<a name="258" href="#258">258</a>         entries.clear();
-<a name="259" href="#259">259</a>     }
-<a name="260" href="#260">260</a> }
+<a name="87" href="#87">87</a>          <strong class="jxr_keyword">return</strong> false;
+<a name="88" href="#88">88</a>      }
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> processResource( String resource, InputStream is, List relocators )
+<a name="91" href="#91">91</a>          <strong class="jxr_keyword">throws</strong> IOException
+<a name="92" href="#92">92</a>      {
+<a name="93" href="#93">93</a>          <strong class="jxr_keyword">if</strong> ( entries.isEmpty() )
+<a name="94" href="#94">94</a>          {
+<a name="95" href="#95">95</a>              String year = <strong class="jxr_keyword">new</strong> SimpleDateFormat( <span class="jxr_string">"yyyy"</span> ).format( <strong class="jxr_keyword">new</strong> Date() );
+<a name="96" href="#96">96</a>              <strong class="jxr_keyword">if</strong> ( !inceptionYear.equals( year ) )
+<a name="97" href="#97">97</a>              {
+<a name="98" href="#98">98</a>                  year = inceptionYear + <span class="jxr_string">"-"</span> + year;
+<a name="99" href="#99">99</a>              }
+<a name="100" href="#100">100</a> 
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a>             <em class="jxr_comment">//add headers</em>
+<a name="103" href="#103">103</a>             <strong class="jxr_keyword">if</strong> ( addHeader ) 
+<a name="104" href="#104">104</a>             {
+<a name="105" href="#105">105</a>                 entries.add( preamble1 + projectName + preamble2 );
+<a name="106" href="#106">106</a>             }
+<a name="107" href="#107">107</a>             <strong class="jxr_keyword">else</strong>
+<a name="108" href="#108">108</a>             {
+<a name="109" href="#109">109</a>                 entries.add( <span class="jxr_string">""</span> );
+<a name="110" href="#110">110</a>             }
+<a name="111" href="#111">111</a>             <em class="jxr_comment">//fake second entry, we'll look for a real one later</em>
+<a name="112" href="#112">112</a>             entries.add( projectName + <span class="jxr_string">"\nCopyright "</span> + year + <span class="jxr_string">" "</span> + organizationName + <span class="jxr_string">"\n"</span> );
+<a name="113" href="#113">113</a>             entries.add( preamble3 + organizationName + <span class="jxr_string">" ("</span> + organizationURL + <span class="jxr_string">").\n"</span> );
+<a name="114" href="#114">114</a>         }
+<a name="115" href="#115">115</a> 
+<a name="116" href="#116">116</a> 
+<a name="117" href="#117">117</a>         BufferedReader reader;
+<a name="118" href="#118">118</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isNotEmpty( encoding ) )
+<a name="119" href="#119">119</a>         {
+<a name="120" href="#120">120</a>             reader = <strong class="jxr_keyword">new</strong> BufferedReader( <strong class="jxr_keyword">new</strong> InputStreamReader( is, encoding ) );
+<a name="121" href="#121">121</a>         }
+<a name="122" href="#122">122</a>         <strong class="jxr_keyword">else</strong>
+<a name="123" href="#123">123</a>         {
+<a name="124" href="#124">124</a>             reader = <strong class="jxr_keyword">new</strong> BufferedReader( <strong class="jxr_keyword">new</strong> InputStreamReader( is ) );
+<a name="125" href="#125">125</a>         }
+<a name="126" href="#126">126</a> 
+<a name="127" href="#127">127</a>         String line = reader.readLine();
+<a name="128" href="#128">128</a>         StringBuffer sb = <strong class="jxr_keyword">new</strong> StringBuffer();
+<a name="129" href="#129">129</a>         Set currentOrg = <strong class="jxr_keyword">null</strong>;
+<a name="130" href="#130">130</a>         <strong class="jxr_keyword">int</strong> lineCount = 0;
+<a name="131" href="#131">131</a>         <strong class="jxr_keyword">while</strong> ( line != <strong class="jxr_keyword">null</strong> )
+<a name="132" href="#132">132</a>         {
+<a name="133" href="#133">133</a>             String trimedLine = line.trim();
+<a name="134" href="#134">134</a> 
+<a name="135" href="#135">135</a>             <strong class="jxr_keyword">if</strong> ( !trimedLine.startsWith( <span class="jxr_string">"//"</span> ) )
+<a name="136" href="#136">136</a>             {
+<a name="137" href="#137">137</a>                 <strong class="jxr_keyword">if</strong> ( trimedLine.length() &gt; 0 )
+<a name="138" href="#138">138</a>                 {
+<a name="139" href="#139">139</a>                     <strong class="jxr_keyword">if</strong> ( trimedLine.startsWith( <span class="jxr_string">"- "</span> ) )
+<a name="140" href="#140">140</a>                     {
+<a name="141" href="#141">141</a>                         <em class="jxr_comment">//resource-bundle 1.3 mode</em>
+<a name="142" href="#142">142</a>                         <strong class="jxr_keyword">if</strong> ( lineCount == 1
+<a name="143" href="#143">143</a>                             &amp;&amp; sb.toString().indexOf( <span class="jxr_string">"This product includes/uses software(s) developed by"</span> ) != -1 )
+<a name="144" href="#144">144</a>                         {
+<a name="145" href="#145">145</a>                             currentOrg = (Set) organizationEntries.get( sb.toString().trim() );
+<a name="146" href="#146">146</a>                             <strong class="jxr_keyword">if</strong> ( currentOrg == <strong class="jxr_keyword">null</strong> )
+<a name="147" href="#147">147</a>                             {
+<a name="148" href="#148">148</a>                                 currentOrg = <strong class="jxr_keyword">new</strong> TreeSet();
+<a name="149" href="#149">149</a>                                 organizationEntries.put( sb.toString().trim(), currentOrg );
+<a name="150" href="#150">150</a>                             }
+<a name="151" href="#151">151</a>                             sb = <strong class="jxr_keyword">new</strong> StringBuffer();
+<a name="152" href="#152">152</a>                         }
+<a name="153" href="#153">153</a>                         <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> ( sb.length() &gt; 0 &amp;&amp; currentOrg != <strong class="jxr_keyword">null</strong> )
+<a name="154" href="#154">154</a>                         {
+<a name="155" href="#155">155</a>                             currentOrg.add( sb.toString() );
+<a name="156" href="#156">156</a>                             sb = <strong class="jxr_keyword">new</strong> StringBuffer();
+<a name="157" href="#157">157</a>                         }
+<a name="158" href="#158">158</a> 
+<a name="159" href="#159">159</a>                     }
+<a name="160" href="#160">160</a>                     sb.append( line ).append( <span class="jxr_string">"\n"</span> );
+<a name="161" href="#161">161</a>                     lineCount++;
+<a name="162" href="#162">162</a>                 }
+<a name="163" href="#163">163</a>                 <strong class="jxr_keyword">else</strong>
+<a name="164" href="#164">164</a>                 {
+<a name="165" href="#165">165</a>                     String ent = sb.toString();
+<a name="166" href="#166">166</a>                     <strong class="jxr_keyword">if</strong> ( ent.startsWith( projectName )
+<a name="167" href="#167">167</a>                         &amp;&amp; ent.indexOf( <span class="jxr_string">"Copyright "</span> ) != -1 )
+<a name="168" href="#168">168</a>                     {
+<a name="169" href="#169">169</a>                         copyright = ent;
+<a name="170" href="#170">170</a>                     }
+<a name="171" href="#171">171</a>                     <strong class="jxr_keyword">if</strong> ( currentOrg == <strong class="jxr_keyword">null</strong> )
+<a name="172" href="#172">172</a>                     {
+<a name="173" href="#173">173</a>                         entries.add( ent );
+<a name="174" href="#174">174</a>                     }
+<a name="175" href="#175">175</a>                     <strong class="jxr_keyword">else</strong>
+<a name="176" href="#176">176</a>                     {
+<a name="177" href="#177">177</a>                         currentOrg.add( ent );
+<a name="178" href="#178">178</a>                     }
+<a name="179" href="#179">179</a>                     sb = <strong class="jxr_keyword">new</strong> StringBuffer();
+<a name="180" href="#180">180</a>                     lineCount = 0;
+<a name="181" href="#181">181</a>                     currentOrg = <strong class="jxr_keyword">null</strong>;
+<a name="182" href="#182">182</a>                 }
+<a name="183" href="#183">183</a>             }
+<a name="184" href="#184">184</a> 
+<a name="185" href="#185">185</a>             line = reader.readLine();
+<a name="186" href="#186">186</a>         }
+<a name="187" href="#187">187</a>         <strong class="jxr_keyword">if</strong> ( sb.length() &gt; 0 ) 
+<a name="188" href="#188">188</a>         {
+<a name="189" href="#189">189</a>             <strong class="jxr_keyword">if</strong> ( currentOrg == <strong class="jxr_keyword">null</strong> )
+<a name="190" href="#190">190</a>             {
+<a name="191" href="#191">191</a>                 entries.add( sb.toString() );
+<a name="192" href="#192">192</a>             }
+<a name="193" href="#193">193</a>             <strong class="jxr_keyword">else</strong>
+<a name="194" href="#194">194</a>             {
+<a name="195" href="#195">195</a>                 currentOrg.add( sb.toString() );
+<a name="196" href="#196">196</a>             }
+<a name="197" href="#197">197</a>         }
+<a name="198" href="#198">198</a>     }
+<a name="199" href="#199">199</a> 
+<a name="200" href="#200">200</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> hasTransformedResource()
+<a name="201" href="#201">201</a>     {
+<a name="202" href="#202">202</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a name="203" href="#203">203</a>     }
+<a name="204" href="#204">204</a> 
+<a name="205" href="#205">205</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> modifyOutputStream( JarOutputStream jos )
+<a name="206" href="#206">206</a>         <strong class="jxr_keyword">throws</strong> IOException
+<a name="207" href="#207">207</a>     {
+<a name="208" href="#208">208</a>         jos.putNextEntry( <strong class="jxr_keyword">new</strong> JarEntry( NOTICE_PATH ) );
+<a name="209" href="#209">209</a> 
+<a name="210" href="#210">210</a>         Writer pow;
+<a name="211" href="#211">211</a>         <strong class="jxr_keyword">if</strong> ( StringUtils.isNotEmpty( encoding ) )
+<a name="212" href="#212">212</a>         {
+<a name="213" href="#213">213</a>             pow = <strong class="jxr_keyword">new</strong> OutputStreamWriter( jos, encoding );
+<a name="214" href="#214">214</a>         }
+<a name="215" href="#215">215</a>         <strong class="jxr_keyword">else</strong>
+<a name="216" href="#216">216</a>         {
+<a name="217" href="#217">217</a>             pow = <strong class="jxr_keyword">new</strong> OutputStreamWriter( jos );
+<a name="218" href="#218">218</a>         }
+<a name="219" href="#219">219</a>         PrintWriter writer = <strong class="jxr_keyword">new</strong> PrintWriter( pow );
+<a name="220" href="#220">220</a> 
+<a name="221" href="#221">221</a>         <strong class="jxr_keyword">int</strong> count = 0;
+<a name="222" href="#222">222</a>         <strong class="jxr_keyword">for</strong> ( Iterator itr = entries.iterator() ; itr.hasNext() ; )
+<a name="223" href="#223">223</a>         {
+<a name="224" href="#224">224</a>             ++count;
+<a name="225" href="#225">225</a>             String line = (String) itr.next();
+<a name="226" href="#226">226</a>             <strong class="jxr_keyword">if</strong> ( line.equals( copyright ) &amp;&amp; count != 2 )
+<a name="227" href="#227">227</a>             {
+<a name="228" href="#228">228</a>                 <strong class="jxr_keyword">continue</strong>;
+<a name="229" href="#229">229</a>             }
+<a name="230" href="#230">230</a> 
+<a name="231" href="#231">231</a>             <strong class="jxr_keyword">if</strong> ( count == 2 &amp;&amp; copyright != <strong class="jxr_keyword">null</strong> )
+<a name="232" href="#232">232</a>             {
+<a name="233" href="#233">233</a>                 writer.print( copyright );
+<a name="234" href="#234">234</a>                 writer.print( '\n' );
+<a name="235" href="#235">235</a>             }
+<a name="236" href="#236">236</a>             <strong class="jxr_keyword">else</strong>
+<a name="237" href="#237">237</a>             {
+<a name="238" href="#238">238</a>                 writer.print( line );
+<a name="239" href="#239">239</a>                 writer.print( '\n' );
+<a name="240" href="#240">240</a>             }
+<a name="241" href="#241">241</a>             <strong class="jxr_keyword">if</strong> ( count == 3 )
+<a name="242" href="#242">242</a>             {
+<a name="243" href="#243">243</a>                 <em class="jxr_comment">//do org stuff</em>
+<a name="244" href="#244">244</a>                 <strong class="jxr_keyword">for</strong> ( Iterator oit = organizationEntries.entrySet().iterator(); oit.hasNext(); )
+<a name="245" href="#245">245</a>                 {
+<a name="246" href="#246">246</a>                     Map.Entry entry = (Map.Entry) oit.next();
+<a name="247" href="#247">247</a>                     writer.print( entry.getKey().toString() );
+<a name="248" href="#248">248</a>                     writer.print( '\n' );
+<a name="249" href="#249">249</a>                     Set entrySet = (Set) entry.getValue();
+<a name="250" href="#250">250</a>                     <strong class="jxr_keyword">for</strong> ( Iterator eit = entrySet.iterator(); eit.hasNext(); )
+<a name="251" href="#251">251</a>                     {
+<a name="252" href="#252">252</a>                         writer.print( eit.next().toString() );
+<a name="253" href="#253">253</a>                     }
+<a name="254" href="#254">254</a>                     writer.print( '\n' );
+<a name="255" href="#255">255</a>                 }
+<a name="256" href="#256">256</a>             }
+<a name="257" href="#257">257</a>         }
+<a name="258" href="#258">258</a> 
+<a name="259" href="#259">259</a>         writer.flush();
+<a name="260" href="#260">260</a> 
+<a name="261" href="#261">261</a>         entries.clear();
+<a name="262" href="#262">262</a>     }
+<a name="263" href="#263">263</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/XmlAppendingTransformer.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/XmlAppendingTransformer.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/XmlAppendingTransformer.html Tue May  8 13:29:31 2012
@@ -49,99 +49,102 @@
 <a name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.xml.sax.InputSource;
 <a name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.xml.sax.SAXException;
 <a name="41" href="#41">41</a>  
-<a name="42" href="#42">42</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/maven/plugins/shade/resource/XmlAppendingTransformer.html">XmlAppendingTransformer</a>
-<a name="43" href="#43">43</a>      implements <a href="../../../../../../org/apache/maven/plugins/shade/resource/ResourceTransformer.html">ResourceTransformer</a>
-<a name="44" href="#44">44</a>  {
-<a name="45" href="#45">45</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String XSI_NS = <span class="jxr_string">"http://www.w3.org/2001/XMLSchema-instance"</span>;
-<a name="46" href="#46">46</a>  
-<a name="47" href="#47">47</a>      <strong class="jxr_keyword">boolean</strong> ignoreDtd = <strong class="jxr_keyword">true</strong>;
-<a name="48" href="#48">48</a>  
-<a name="49" href="#49">49</a>      String resource;
-<a name="50" href="#50">50</a>  
-<a name="51" href="#51">51</a>      Document doc;
-<a name="52" href="#52">52</a>  
-<a name="53" href="#53">53</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> canTransformResource( String r )
-<a name="54" href="#54">54</a>      {
-<a name="55" href="#55">55</a>          <strong class="jxr_keyword">if</strong> ( resource != <strong class="jxr_keyword">null</strong> &amp;&amp; resource.equalsIgnoreCase( r ) )
-<a name="56" href="#56">56</a>          {
-<a name="57" href="#57">57</a>              <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a name="58" href="#58">58</a>          }
-<a name="59" href="#59">59</a>  
-<a name="60" href="#60">60</a>          <strong class="jxr_keyword">return</strong> false;
-<a name="61" href="#61">61</a>      }
+<a name="42" href="#42">42</a>  <em class="jxr_javadoccomment">/**</em>
+<a name="43" href="#43">43</a>  <em class="jxr_javadoccomment"> * Appends multiple occurrences of some XML file.</em>
+<a name="44" href="#44">44</a>  <em class="jxr_javadoccomment"> */</em>
+<a name="45" href="#45">45</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/maven/plugins/shade/resource/XmlAppendingTransformer.html">XmlAppendingTransformer</a>
+<a name="46" href="#46">46</a>      implements <a href="../../../../../../org/apache/maven/plugins/shade/resource/ResourceTransformer.html">ResourceTransformer</a>
+<a name="47" href="#47">47</a>  {
+<a name="48" href="#48">48</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String XSI_NS = <span class="jxr_string">"http://www.w3.org/2001/XMLSchema-instance"</span>;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>      <strong class="jxr_keyword">boolean</strong> ignoreDtd = <strong class="jxr_keyword">true</strong>;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>      String resource;
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>      Document doc;
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> canTransformResource( String r )
+<a name="57" href="#57">57</a>      {
+<a name="58" href="#58">58</a>          <strong class="jxr_keyword">if</strong> ( resource != <strong class="jxr_keyword">null</strong> &amp;&amp; resource.equalsIgnoreCase( r ) )
+<a name="59" href="#59">59</a>          {
+<a name="60" href="#60">60</a>              <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a name="61" href="#61">61</a>          }
 <a name="62" href="#62">62</a>  
-<a name="63" href="#63">63</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> processResource( String resource, InputStream is, List relocators )
-<a name="64" href="#64">64</a>          <strong class="jxr_keyword">throws</strong> IOException
-<a name="65" href="#65">65</a>      {
-<a name="66" href="#66">66</a>          Document r;
-<a name="67" href="#67">67</a>          <strong class="jxr_keyword">try</strong>
-<a name="68" href="#68">68</a>          {
-<a name="69" href="#69">69</a>              SAXBuilder builder = <strong class="jxr_keyword">new</strong> SAXBuilder( false );
-<a name="70" href="#70">70</a>              builder.setExpandEntities( false );
-<a name="71" href="#71">71</a>              <strong class="jxr_keyword">if</strong> ( ignoreDtd )
-<a name="72" href="#72">72</a>              {
-<a name="73" href="#73">73</a>                  builder.setEntityResolver( <strong class="jxr_keyword">new</strong> EntityResolver()
-<a name="74" href="#74">74</a>                  {
-<a name="75" href="#75">75</a>                      <strong class="jxr_keyword">public</strong> InputSource resolveEntity( String publicId, String systemId )
-<a name="76" href="#76">76</a>                          <strong class="jxr_keyword">throws</strong> SAXException, IOException
-<a name="77" href="#77">77</a>                      {
-<a name="78" href="#78">78</a>                          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> InputSource( <strong class="jxr_keyword">new</strong> StringReader( <span class="jxr_string">""</span> ) );
-<a name="79" href="#79">79</a>                      }
-<a name="80" href="#80">80</a>                  } );
-<a name="81" href="#81">81</a>              }
-<a name="82" href="#82">82</a>              r = builder.build( is );
-<a name="83" href="#83">83</a>          }
-<a name="84" href="#84">84</a>          <strong class="jxr_keyword">catch</strong> ( JDOMException e )
-<a name="85" href="#85">85</a>          {
-<a name="86" href="#86">86</a>              <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException( e );
-<a name="87" href="#87">87</a>          }
-<a name="88" href="#88">88</a>  
-<a name="89" href="#89">89</a>          <strong class="jxr_keyword">if</strong> ( doc == <strong class="jxr_keyword">null</strong> )
-<a name="90" href="#90">90</a>          {
-<a name="91" href="#91">91</a>              doc = r;
-<a name="92" href="#92">92</a>          }
-<a name="93" href="#93">93</a>          <strong class="jxr_keyword">else</strong>
-<a name="94" href="#94">94</a>          {
-<a name="95" href="#95">95</a>              Element root = r.getRootElement();
-<a name="96" href="#96">96</a>  
-<a name="97" href="#97">97</a>              <strong class="jxr_keyword">for</strong> ( Iterator itr = root.getAttributes().iterator(); itr.hasNext(); )
-<a name="98" href="#98">98</a>              {
-<a name="99" href="#99">99</a>                  Attribute a = (Attribute) itr.next();
-<a name="100" href="#100">100</a>                 itr.remove();
-<a name="101" href="#101">101</a> 
-<a name="102" href="#102">102</a>                 Element mergedEl = doc.getRootElement();
-<a name="103" href="#103">103</a>                 Attribute mergedAtt = mergedEl.getAttribute( a.getName(), a.getNamespace() );
-<a name="104" href="#104">104</a>                 <strong class="jxr_keyword">if</strong> ( mergedAtt == <strong class="jxr_keyword">null</strong> )
-<a name="105" href="#105">105</a>                 {
-<a name="106" href="#106">106</a>                     mergedEl.setAttribute( a );
-<a name="107" href="#107">107</a>                 }
-<a name="108" href="#108">108</a>             }
-<a name="109" href="#109">109</a> 
-<a name="110" href="#110">110</a>             <strong class="jxr_keyword">for</strong> ( Iterator itr = root.getChildren().iterator(); itr.hasNext(); )
-<a name="111" href="#111">111</a>             {
-<a name="112" href="#112">112</a>                 Content n = (Content) itr.next();
-<a name="113" href="#113">113</a>                 itr.remove();
-<a name="114" href="#114">114</a> 
-<a name="115" href="#115">115</a>                 doc.getRootElement().addContent( n );
-<a name="116" href="#116">116</a>             }
-<a name="117" href="#117">117</a>         }
-<a name="118" href="#118">118</a>     }
-<a name="119" href="#119">119</a> 
-<a name="120" href="#120">120</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> hasTransformedResource()
-<a name="121" href="#121">121</a>     {
-<a name="122" href="#122">122</a>         <strong class="jxr_keyword">return</strong> doc != <strong class="jxr_keyword">null</strong>;
-<a name="123" href="#123">123</a>     }
-<a name="124" href="#124">124</a> 
-<a name="125" href="#125">125</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> modifyOutputStream( JarOutputStream jos )
-<a name="126" href="#126">126</a>         <strong class="jxr_keyword">throws</strong> IOException
-<a name="127" href="#127">127</a>     {
-<a name="128" href="#128">128</a>         jos.putNextEntry( <strong class="jxr_keyword">new</strong> JarEntry( resource ) );
-<a name="129" href="#129">129</a> 
-<a name="130" href="#130">130</a>         <strong class="jxr_keyword">new</strong> XMLOutputter( Format.getPrettyFormat() ).output( doc, jos );
-<a name="131" href="#131">131</a> 
-<a name="132" href="#132">132</a>         doc = <strong class="jxr_keyword">null</strong>;
-<a name="133" href="#133">133</a>     }
-<a name="134" href="#134">134</a> }
+<a name="63" href="#63">63</a>          <strong class="jxr_keyword">return</strong> false;
+<a name="64" href="#64">64</a>      }
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> processResource( String resource, InputStream is, List relocators )
+<a name="67" href="#67">67</a>          <strong class="jxr_keyword">throws</strong> IOException
+<a name="68" href="#68">68</a>      {
+<a name="69" href="#69">69</a>          Document r;
+<a name="70" href="#70">70</a>          <strong class="jxr_keyword">try</strong>
+<a name="71" href="#71">71</a>          {
+<a name="72" href="#72">72</a>              SAXBuilder builder = <strong class="jxr_keyword">new</strong> SAXBuilder( false );
+<a name="73" href="#73">73</a>              builder.setExpandEntities( false );
+<a name="74" href="#74">74</a>              <strong class="jxr_keyword">if</strong> ( ignoreDtd )
+<a name="75" href="#75">75</a>              {
+<a name="76" href="#76">76</a>                  builder.setEntityResolver( <strong class="jxr_keyword">new</strong> EntityResolver()
+<a name="77" href="#77">77</a>                  {
+<a name="78" href="#78">78</a>                      <strong class="jxr_keyword">public</strong> InputSource resolveEntity( String publicId, String systemId )
+<a name="79" href="#79">79</a>                          <strong class="jxr_keyword">throws</strong> SAXException, IOException
+<a name="80" href="#80">80</a>                      {
+<a name="81" href="#81">81</a>                          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> InputSource( <strong class="jxr_keyword">new</strong> StringReader( <span class="jxr_string">""</span> ) );
+<a name="82" href="#82">82</a>                      }
+<a name="83" href="#83">83</a>                  } );
+<a name="84" href="#84">84</a>              }
+<a name="85" href="#85">85</a>              r = builder.build( is );
+<a name="86" href="#86">86</a>          }
+<a name="87" href="#87">87</a>          <strong class="jxr_keyword">catch</strong> ( JDOMException e )
+<a name="88" href="#88">88</a>          {
+<a name="89" href="#89">89</a>              <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException( e );
+<a name="90" href="#90">90</a>          }
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>          <strong class="jxr_keyword">if</strong> ( doc == <strong class="jxr_keyword">null</strong> )
+<a name="93" href="#93">93</a>          {
+<a name="94" href="#94">94</a>              doc = r;
+<a name="95" href="#95">95</a>          }
+<a name="96" href="#96">96</a>          <strong class="jxr_keyword">else</strong>
+<a name="97" href="#97">97</a>          {
+<a name="98" href="#98">98</a>              Element root = r.getRootElement();
+<a name="99" href="#99">99</a>  
+<a name="100" href="#100">100</a>             <strong class="jxr_keyword">for</strong> ( Iterator itr = root.getAttributes().iterator(); itr.hasNext(); )
+<a name="101" href="#101">101</a>             {
+<a name="102" href="#102">102</a>                 Attribute a = (Attribute) itr.next();
+<a name="103" href="#103">103</a>                 itr.remove();
+<a name="104" href="#104">104</a> 
+<a name="105" href="#105">105</a>                 Element mergedEl = doc.getRootElement();
+<a name="106" href="#106">106</a>                 Attribute mergedAtt = mergedEl.getAttribute( a.getName(), a.getNamespace() );
+<a name="107" href="#107">107</a>                 <strong class="jxr_keyword">if</strong> ( mergedAtt == <strong class="jxr_keyword">null</strong> )
+<a name="108" href="#108">108</a>                 {
+<a name="109" href="#109">109</a>                     mergedEl.setAttribute( a );
+<a name="110" href="#110">110</a>                 }
+<a name="111" href="#111">111</a>             }
+<a name="112" href="#112">112</a> 
+<a name="113" href="#113">113</a>             <strong class="jxr_keyword">for</strong> ( Iterator itr = root.getChildren().iterator(); itr.hasNext(); )
+<a name="114" href="#114">114</a>             {
+<a name="115" href="#115">115</a>                 Content n = (Content) itr.next();
+<a name="116" href="#116">116</a>                 itr.remove();
+<a name="117" href="#117">117</a> 
+<a name="118" href="#118">118</a>                 doc.getRootElement().addContent( n );
+<a name="119" href="#119">119</a>             }
+<a name="120" href="#120">120</a>         }
+<a name="121" href="#121">121</a>     }
+<a name="122" href="#122">122</a> 
+<a name="123" href="#123">123</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> hasTransformedResource()
+<a name="124" href="#124">124</a>     {
+<a name="125" href="#125">125</a>         <strong class="jxr_keyword">return</strong> doc != <strong class="jxr_keyword">null</strong>;
+<a name="126" href="#126">126</a>     }
+<a name="127" href="#127">127</a> 
+<a name="128" href="#128">128</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> modifyOutputStream( JarOutputStream jos )
+<a name="129" href="#129">129</a>         <strong class="jxr_keyword">throws</strong> IOException
+<a name="130" href="#130">130</a>     {
+<a name="131" href="#131">131</a>         jos.putNextEntry( <strong class="jxr_keyword">new</strong> JarEntry( resource ) );
+<a name="132" href="#132">132</a> 
+<a name="133" href="#133">133</a>         <strong class="jxr_keyword">new</strong> XMLOutputter( Format.getPrettyFormat() ).output( doc, jos );
+<a name="134" href="#134">134</a> 
+<a name="135" href="#135">135</a>         doc = <strong class="jxr_keyword">null</strong>;
+<a name="136" href="#136">136</a>     }
+<a name="137" href="#137">137</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/package-frame.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/package-frame.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/package-frame.html Tue May  8 13:29:31 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Maven Shade Plugin 1.3.2 Reference Package org.apache.maven.plugins.shade.resource</title>
+		<title>Maven Shade Plugin 1.3.3 Reference Package org.apache.maven.plugins.shade.resource</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/package-summary.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/package-summary.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/org/apache/maven/plugins/shade/resource/package-summary.html Tue May  8 13:29:31 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Maven Shade Plugin 1.3.2 Reference Package org.apache.maven.plugins.shade.resource</title>
+		<title>Maven Shade Plugin 1.3.3 Reference Package org.apache.maven.plugins.shade.resource</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/overview-frame.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/overview-frame.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/overview-frame.html Tue May  8 13:29:31 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Maven Shade Plugin 1.3.2 Reference</title>
+		<title>Maven Shade Plugin 1.3.3 Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/overview-summary.html
==============================================================================
--- websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/overview-summary.html (original)
+++ websites/production/maventest/content/plugins/maven-shade-plugin-latest/xref/overview-summary.html Tue May  8 13:29:31 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
-		<title>Maven Shade Plugin 1.3.2 Reference</title>
+		<title>Maven Shade Plugin 1.3.3 Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -24,7 +24,7 @@
 	        </ul>
       	</div>
 		
-		      	<h2>Maven Shade Plugin 1.3.2 Reference</h2>
+		      	<h2>Maven Shade Plugin 1.3.3 Reference</h2>
 
 		<table class="summary">
         	<thead>



Mime
View raw message