Author: frankbille
Date: Mon Nov  6 11:42:33 2006
New Revision: 471840

URL: http://svn.apache.org/viewvc?view=rev&rev=471840
Log:
Added headers to the css and xml files that needed then and listed the rest in 
the ignore configuration in ApacheLicenseTest.

Modified:
    incubator/wicket/trunk/wicket/.settings/org.eclipse.core.resources.prefs
    incubator/wicket/trunk/wicket/pom.xml
    incubator/wicket/trunk/wicket/src/assembly/bin.xml
    incubator/wicket/trunk/wicket/src/assembly/build.xml
    incubator/wicket/trunk/wicket/src/changes/changes.xml
    
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree-table.css
    
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.css
    incubator/wicket/trunk/wicket/src/site/fml/faqs.fml
    incubator/wicket/trunk/wicket/src/site/resources/css/print.css
    incubator/wicket/trunk/wicket/src/site/resources/css/site.css
    incubator/wicket/trunk/wicket/src/site/site.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/Blogs.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/Buzz.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/Download.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExampleAjaxCounter.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExampleGuestBook.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExampleHelloWorld.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExampleMarkupInheritance.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExampleNavomatic.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExampleStockQuote.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExampleUsingFragments.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/Examples.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesBinary.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesSource.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/Features.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/Introduction.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/News.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/SourceForge.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/Vision.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/index.xml
    incubator/wicket/trunk/wicket/src/site/xdoc/manual.xml
    
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java
    
incubator/wicket/trunk/wicket/src/test/java/wicket/util/license/ApacheLicenseHeaderTestCase.java

Modified: 
incubator/wicket/trunk/wicket/.settings/org.eclipse.core.resources.prefs
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/.settings/org.eclipse.core.resources.prefs?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/.settings/org.eclipse.core.resources.prefs 
(original)
+++ incubator/wicket/trunk/wicket/.settings/org.eclipse.core.resources.prefs 
Mon Nov  6 11:42:33 2006
@@ -1,3 +1,3 @@
-#Thu Oct 26 23:54:02 CEST 2006
+#Mon Nov 06 20:39:41 CET 2006
 eclipse.preferences.version=1
 encoding//src/java/wicket/Application_bg.properties=UTF-8

Modified: incubator/wicket/trunk/wicket/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/pom.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/pom.xml (original)
+++ incubator/wicket/trunk/wicket/pom.xml Mon Nov  6 11:42:33 2006
@@ -7,7 +7,7 @@
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
 
-       http://www.apache.org/licenses/LICENSE-2.0
+        http://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,

Modified: incubator/wicket/trunk/wicket/src/assembly/bin.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/assembly/bin.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/assembly/bin.xml (original)
+++ incubator/wicket/trunk/wicket/src/assembly/bin.xml Mon Nov  6 11:42:33 2006
@@ -1,3 +1,19 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <assembly>
     <id>bin</id>
     <formats>

Modified: incubator/wicket/trunk/wicket/src/assembly/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/assembly/build.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/assembly/build.xml (original)
+++ incubator/wicket/trunk/wicket/src/assembly/build.xml Mon Nov  6 11:42:33 
2006
@@ -1,4 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <project default="jar" name="wicket" basedir=".">
 
        <property name="final.name" value="wicket" />

Modified: incubator/wicket/trunk/wicket/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/changes/changes.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/changes/changes.xml (original)
+++ incubator/wicket/trunk/wicket/src/changes/changes.xml Mon Nov  6 11:42:33 
2006
@@ -1,5 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
 
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
   <properties>
     <title>Wicket changes</title>
@@ -12,7 +27,7 @@
   <body>
        <release version="2.0-beta1" date="tbd" description="Wicket 2.0 beta 1">
                <action type="fix" dev="Igor Vaynberg">Application.get() and 
Session.get() will now return null if threadlocal is not set as opposed to 
throwing an NPE</action>
-               
+       </release>              
     <release version="1.2-rc4" date="tbd" description="Wicket 1.2 release 
candidate 4">
       <action type="add" dev="Juergen Donnerstag" issue="1357511">Markup 
inheritance extended to support &lt;wicket:child&gt; ... &lt;/wicket:child&gt; 
as well</action>
       <action type="add" dev="Martijn Dashorst" issue="1471603" due-to="Dzenan 
Ridjanovic">Added Bosnian/Herzegovinan translation of 
Application.properties</action>
@@ -156,7 +171,7 @@
       <action type="fix" dev="Igor Vaynberg" issue="1357755">Fixed bug in 
button that caused the value attirbute to disappear after form submit</action>
     </release>
     <release version="1.1" date="2005-10-30" description="Wicket 1.1 final">
-      <action type="fix" dev="Juergen Donnerstag" issue="1339686" 
due-to="Janne Hietamäki">fixed: Invalid Panel markup throws weird 
exception</action>
+      <action type="fix" dev="Juergen Donnerstag" issue="1339686" 
due-to="Janne Hietam�ki">fixed: Invalid Panel markup throws weird 
exception</action>
       <action type="delete" dev="Jonathan Locke">Removed experimental code: 
page sets.</action>
       <action type="update" dev="Eelco Hillenius" due-to="Simon 
Berriman">added ValueMap.isMutable()</action>
       <action type="add" dev="Eelco Hillenius">introduced methods 
WebPage.beforeCallComponent and WebPage.afterCallComponent to enable you to put 
functionality 'around' any component handler call, like setting up 
dependencies, enfore authorization, do logging, etc.</action>
@@ -306,7 +321,7 @@
       <action type="fix" dev="Eelco 
Hillenius">Component.setShouldEscapeModelStrings renamed to 
setEscapeModelStrings</action>
       <action type="update" dev="Eelco Hillenius">Buttons now have an 
'immediate' property. If true, this button behaves much like a normal link; no 
validation nor updating of the nested form components is done automatically in 
that case. This property is false by default.</action>
       <action type="fix" dev="Eelco Hillenius">Only validate components that 
are visible</action>
-      <action type="fix" dev="Juergen Donnerstag" due-to="Janne Hietamäki" 
issue="1216017">setStripWicketTags now takes Wicket namespaces 
(setWicketNamespace) into account.</action>
+      <action type="fix" dev="Juergen Donnerstag" due-to="Janne Hietam�ki" 
issue="1216017">setStripWicketTags now takes Wicket namespaces 
(setWicketNamespace) into account.</action>
       <action type="add" dev="Juergen Donnerstag">Added support for JavaScript 
and CSS. Please see the Wiki for more details.</action>
       <action type="add" dev="Eelco Hillenius">Added component 
wicket.markup.html.include.Include for including content from non-Wicket 
resources.</action>
     </release>

Modified: 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree-table.css
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree-table.css?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree-table.css
 (original)
+++ 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree-table.css
 Mon Nov  6 11:42:33 2006
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
 /**
  * a_   columns
  * b_   column

Modified: 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.css
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.css?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.css
 (original)
+++ 
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.css
 Mon Nov  6 11:42:33 2006
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 div.wicket-tree {
        white-space: nowrap;    
        border: 1px solid #ccc;

Modified: incubator/wicket/trunk/wicket/src/site/fml/faqs.fml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/fml/faqs.fml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/fml/faqs.fml (original)
+++ incubator/wicket/trunk/wicket/src/site/fml/faqs.fml Mon Nov  6 11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <faqs title="Frequently Asked Questions">
        <part id="general-questions">
                <title>General Questions</title>

Modified: incubator/wicket/trunk/wicket/src/site/resources/css/print.css
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/resources/css/print.css?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/resources/css/print.css (original)
+++ incubator/wicket/trunk/wicket/src/site/resources/css/print.css Mon Nov  6 
11:42:33 2006
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, 
#leftColumn, #navColumn {
        display: none;
 }

Modified: incubator/wicket/trunk/wicket/src/site/resources/css/site.css
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/resources/css/site.css?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/resources/css/site.css (original)
+++ incubator/wicket/trunk/wicket/src/site/resources/css/site.css Mon Nov  6 
11:42:33 2006
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 .clear,br,#projectLogo,#organizationLogo,#poweredBy {
        display: none;
 }

Modified: incubator/wicket/trunk/wicket/src/site/site.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/site.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/site.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/site.xml Mon Nov  6 11:42:33 2006
@@ -1,4 +1,20 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <project name="Maven">
   <bannerLeft>
     <name>Wicket</name>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/Blogs.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/Blogs.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/Blogs.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/Blogs.xml Mon Nov  6 11:42:33 
2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Blogs</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/Buzz.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/Buzz.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/Buzz.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/Buzz.xml Mon Nov  6 11:42:33 
2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Buzz</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/Download.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/Download.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/Download.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/Download.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Download</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/ExampleAjaxCounter.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExampleAjaxCounter.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExampleAjaxCounter.xml 
(original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExampleAjaxCounter.xml Mon Nov  
6 11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Wicket QuickTour: Ajax Counter!</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/ExampleGuestBook.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExampleGuestBook.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExampleGuestBook.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExampleGuestBook.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Wicket QuickTour: GuestBook</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/ExampleHelloWorld.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExampleHelloWorld.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExampleHelloWorld.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExampleHelloWorld.xml Mon Nov  
6 11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Wicket QuickTour: Hello World!</title>

Modified: 
incubator/wicket/trunk/wicket/src/site/xdoc/ExampleMarkupInheritance.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExampleMarkupInheritance.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExampleMarkupInheritance.xml 
(original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExampleMarkupInheritance.xml 
Mon Nov  6 11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Wicket QuickTour: Markup Inheritance!</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/ExampleNavomatic.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExampleNavomatic.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExampleNavomatic.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExampleNavomatic.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Wicket QuickTour: Navomatic</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/ExampleStockQuote.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExampleStockQuote.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExampleStockQuote.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExampleStockQuote.xml Mon Nov  
6 11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Wicket QuickTour: StockQuote!</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/ExampleUsingFragments.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExampleUsingFragments.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExampleUsingFragments.xml 
(original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExampleUsingFragments.xml Mon 
Nov  6 11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Wicket QuickTour: Using Fragments!</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/Examples.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/Examples.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/Examples.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/Examples.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Quick Tour</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesBinary.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesBinary.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesBinary.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesBinary.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Running the Examples Using the Binary 
Distribution</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesSource.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesSource.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesSource.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/ExamplesSource.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Running the Examples from Source</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/Features.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/Features.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/Features.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/Features.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Features</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/Introduction.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/Introduction.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/Introduction.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/Introduction.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
   <properties>
     <title>Introduction</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/News.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/News.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/News.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/News.xml Mon Nov  6 11:42:33 
2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>News archive</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/SourceForge.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/SourceForge.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/SourceForge.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/SourceForge.xml Mon Nov  6 
11:42:33 2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
     <properties>
         <title>SourceForge</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/Vision.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/Vision.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/Vision.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/Vision.xml Mon Nov  6 11:42:33 
2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
   <properties>
     <title>The Wicket Vision</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/index.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/index.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/index.xml Mon Nov  6 11:42:33 
2006
@@ -1,5 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
 
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Home</title>

Modified: incubator/wicket/trunk/wicket/src/site/xdoc/manual.xml
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/xdoc/manual.xml?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/xdoc/manual.xml (original)
+++ incubator/wicket/trunk/wicket/src/site/xdoc/manual.xml Mon Nov  6 11:42:33 
2006
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
 <document>
        <properties>
                <title>Guide</title>

Modified: 
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- 
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java
 (original)
+++ 
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java
 Mon Nov  6 11:42:33 2006
@@ -27,5 +27,25 @@
  */
 public class ApacheLicenseHeaderTest extends ApacheLicenseHeaderTestCase
 {
-
+       /**
+        * Define the files which should not be checked by the license header 
test.
+        */
+       public ApacheLicenseHeaderTest()
+       {
+               cssIgnore = new String[] {
+                       "src/test/java/wicket/protocol/http/portlet/style.css",
+                       "src/test/java/wicket/ajax/mockStyleSheet3.css",
+                       "src/test/java/wicket/markup/parser/filter/style.css",
+                       "src/test/java/wicket/markup/parser/filter/test.css",
+                       
"src/test/java/wicket/markup/parser/filter/sub/cborder.css",
+                       "src/test/java/wicket/markup/html/link/test3_de_DE.css",
+                       "src/test/java/wicket/markup/html/link/test.css",
+                       
"src/test/java/wicket/markup/html/link/test2_myStyle.css"
+               };
+               
+               xmlIgnore = new String[] {
+                       "EclipseCodeFormat.xml",
+                       "src/test/java/wicket/performance/results.xml",
+               };
+       }
 }

Modified: 
incubator/wicket/trunk/wicket/src/test/java/wicket/util/license/ApacheLicenseHeaderTestCase.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/util/license/ApacheLicenseHeaderTestCase.java?view=diff&rev=471840&r1=471839&r2=471840
==============================================================================
--- 
incubator/wicket/trunk/wicket/src/test/java/wicket/util/license/ApacheLicenseHeaderTestCase.java
 (original)
+++ 
incubator/wicket/trunk/wicket/src/test/java/wicket/util/license/ApacheLicenseHeaderTestCase.java
 Mon Nov  6 11:42:33 2006
@@ -24,7 +24,6 @@
 import java.net.URL;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
 import junit.framework.TestCase;
@@ -58,7 +57,7 @@
                {
                        this(suffixes, null);
                }
-               
+
                private SuffixAndIgnoreFileFilter(String[] suffixes, String[] 
ignoreFiles)
                {
                        this.suffixes = suffixes;
@@ -72,12 +71,13 @@
                        if (pathname.isFile())
                        {
                                boolean ignore = false;
-                               
+
                                if (ignoreFiles != null)
                                {
                                        String relativePathname = 
pathname.getAbsolutePath();
-                                       relativePathname = 
relativePathname.replace(baseDirectory.getAbsolutePath()+System.getProperty("file.separator"),
 "");
-                                       
+                                       relativePathname = 
relativePathname.replace(baseDirectory.getAbsolutePath()
+                                                       + 
System.getProperty("file.separator"), "");
+
                                        for (String ignoreFile : ignoreFiles)
                                        {
                                                if 
(relativePathname.equals(ignoreFile))
@@ -87,7 +87,7 @@
                                                }
                                        }
                                }
-                               
+
                                if (ignore == false)
                                {
                                        for (String suffix : suffixes)
@@ -141,9 +141,16 @@
        private String cssLicenseHeader;
        private String velocityLicenseHeader;
        private String javaScriptLicenseHeader;
-       private Pattern xmlHeader = Pattern.compile(
-                       "^(\\<\\?xml version=\"1.0\" encoding=\"[^\"]+\"[ 
]*\\?\\>" + LINE_ENDING + ").*",
-                       Pattern.DOTALL);
+       private String x = "^(\\<\\?xml[^"+LINE_ENDING+"]+).*";
+       private Pattern xmlHeader = Pattern.compile(x, Pattern.DOTALL);
+
+       protected String[] javaIgnore;
+       protected String[] htmlIgnore;
+       protected String[] propertiesIgnore;
+       protected String[] xmlIgnore;
+       protected String[] cssIgnore;
+       protected String[] velocityIgnore;
+       protected String[] javaScriptIgnore;
 
        /**
         * Construct.
@@ -168,7 +175,7 @@
        {
                final List<File> badFiles = new ArrayList<File>();
 
-               visitFiles("java", new FileVisitor()
+               visitFiles("java", javaIgnore, new FileVisitor()
                {
                        public void visitFile(File file)
                        {
@@ -189,7 +196,7 @@
        {
                final List<File> badFiles = new ArrayList<File>();
 
-               visitFiles("html", new FileVisitor()
+               visitFiles("html", htmlIgnore, new FileVisitor()
                {
                        public void visitFile(File file)
                        {
@@ -210,7 +217,7 @@
        {
                final List<File> badFiles = new ArrayList<File>();
 
-               visitFiles("properties", new FileVisitor()
+               visitFiles("properties", propertiesIgnore, new FileVisitor()
                {
                        public void visitFile(File file)
                        {
@@ -231,7 +238,7 @@
        {
                final List<File> badFiles = new ArrayList<File>();
 
-               visitFiles(new String[] { "xml", "fml" }, new FileVisitor()
+               visitFiles(new String[] { "xml", "fml" }, xmlIgnore, new 
FileVisitor()
                {
                        public void visitFile(File file)
                        {
@@ -246,13 +253,34 @@
        }
 
        /**
+        * Test all css files.
+        */
+       public void testCssFiles()
+       {
+               final List<File> badFiles = new ArrayList<File>();
+
+               visitFiles("css", cssIgnore, new FileVisitor()
+               {
+                       public void visitFile(File file)
+                       {
+                               if (checkCssHeader(file) == false)
+                               {
+                                       badFiles.add(file);
+                               }
+                       }
+               });
+
+               failIncorrectLicenceHeaders(badFiles);
+       }
+
+       /**
         * Test all velocity files.
         */
        public void testVelocityFiles()
        {
                final List<File> badFiles = new ArrayList<File>();
 
-               visitFiles("vm", new FileVisitor()
+               visitFiles("vm", velocityIgnore, new FileVisitor()
                {
                        public void visitFile(File file)
                        {
@@ -273,7 +301,7 @@
        {
                final List<File> badFiles = new ArrayList<File>();
 
-               visitFiles("js", new FileVisitor()
+               visitFiles("js", javaScriptIgnore, new FileVisitor()
                {
                        public void visitFile(File file)
                        {
@@ -363,10 +391,9 @@
                {
                        String header = extractLicenseHeader(file, 0, 17);
 
-                       Matcher mat = xmlHeader.matcher(header);
-                       if (mat.matches())
+                       if (header.startsWith("<?xml")) 
                        {
-                               header = header.replace(mat.group(1), "");
+                               header = 
header.substring(header.indexOf(LINE_ENDING)+1);
                        }
                        else
                        {
@@ -375,11 +402,21 @@
                                header = "";
                                for (int i = 0; i < 16; i++)
                                {
-                                       header += headers[i] + LINE_ENDING;
+                                       if (header.length() > 0)
+                                       {
+                                               header += LINE_ENDING;
+                                       }
+                                       header += headers[i];
                                }
                        }
 
                        revision = 
Diff.diff(xmlLicenseHeader.split(LINE_ENDING), header.split(LINE_ENDING));
+
+                       if (revision.size() != 0)
+                       {
+                               System.out.println(file);
+                               System.out.println(revision);
+                       }
                }
                catch (Exception e)
                {
@@ -427,16 +464,34 @@
                return revision.size() == 0;
        }
 
+       private boolean checkCssHeader(File file)
+       {
+               Revision revision = null;
+
+               try
+               {
+                       String header = extractLicenseHeader(file, 0, 16);
+
+                       revision = 
Diff.diff(cssLicenseHeader.split(LINE_ENDING), header.split(LINE_ENDING));
+               }
+               catch (Exception e)
+               {
+                       fail(e.getMessage());
+               }
+
+               return revision.size() == 0;
+       }
+
        private void visitFiles(String suffix, FileVisitor fileVisitor)
        {
                visitFiles(new String[] { suffix }, null, fileVisitor);
        }
-       
+
        private void visitFiles(String suffix, String[] ignoreFiles, 
FileVisitor fileVisitor)
        {
                visitFiles(new String[] { suffix }, ignoreFiles, fileVisitor);
        }
-       
+
        private void visitFiles(String[] suffixes, FileVisitor fileVisitor)
        {
                visitFiles(suffixes, null, fileVisitor);
@@ -447,7 +502,8 @@
                visitDirectory(suffixes, ignoreFiles, baseDirectory, 
fileVisitor);
        }
 
-       private void visitDirectory(String[] suffixes, String[] ignoreFiles, 
File directory, FileVisitor fileVisitor)
+       private void visitDirectory(String[] suffixes, String[] ignoreFiles, 
File directory,
+                       FileVisitor fileVisitor)
        {
                File[] files = directory.listFiles(new 
SuffixAndIgnoreFileFilter(suffixes, ignoreFiles));
 


Reply via email to