Index: jcr-server/project.properties
===================================================================
--- jcr-server/project.properties	(revision 452687)
+++ jcr-server/project.properties	(working copy)
@@ -1,3 +1,18 @@
+#  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.
+
 maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/,http://www.day.com/maven/jsr170/javadocs/jcr-1.0/
 maven.repo.remote = http://www.ibiblio.org/maven/,http://www.day.com/maven/
 
Index: jcr-server/server/project.properties
===================================================================
--- jcr-server/server/project.properties	(revision 452687)
+++ jcr-server/server/project.properties	(working copy)
@@ -1,2 +1,17 @@
+#  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.
+
 maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/,http://www.day.com/maven/jsr170/javadocs/jcr-1.0/
 maven.repo.remote = http://www.ibiblio.org/maven/,http://www.day.com/maven/
Index: jcr-server/server/src/java/org/apache/jackrabbit/server/io/package.html
===================================================================
--- jcr-server/server/src/java/org/apache/jackrabbit/server/io/package.html	(revision 452687)
+++ jcr-server/server/src/java/org/apache/jackrabbit/server/io/package.html	(working copy)
@@ -1,3 +1,21 @@
+<!--
+   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.
+  -->
+<body>
 The jackrabbit webdav server uses the classes defined in this package in order
 to perform import and export operations in order to respond to PUT, MKCOL, PROPPATCH
-and PROPFIND, GET, HEAD requests, respectively.
\ No newline at end of file
+and PROPFIND, GET, HEAD requests, respectively.
+</body>
Index: jcr-server/server/src/java/org/apache/jackrabbit/server/io/mimetypes.properties
===================================================================
--- jcr-server/server/src/java/org/apache/jackrabbit/server/io/mimetypes.properties	(revision 452687)
+++ jcr-server/server/src/java/org/apache/jackrabbit/server/io/mimetypes.properties	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 ai=application/postscript	
 aif=audio/x-aiff
 aifc=audio/x-aiff
@@ -132,4 +146,4 @@
 xpm=image/x-xpixmap
 xwd=image/x-xwindowdump
 xyz=chemical/x-pdb
-zip=application/zip
\ No newline at end of file
+zip=application/zip
Index: jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java
===================================================================
--- jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java	(revision 452687)
+++ jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/LocatorFactoryImplEx.java	(working copy)
@@ -1,15 +1,18 @@
 /*
- * $Id$
+ * 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
  *
- * Copyright 1997-2005 Day Management AG
- * Barfuesserplatz 6, 4001 Basel, Switzerland
- * All Rights Reserved.
+ *      http://www.apache.org/licenses/LICENSE-2.0
  *
- * This software is the confidential and proprietary information of
- * Day Management AG, ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered into
- * with Day.
+ * 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.
  */
 package org.apache.jackrabbit.webdav.simple;
 
Index: jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/version/report/package.html
===================================================================
--- jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/version/report/package.html	(revision 452687)
+++ jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/version/report/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Contains JCR specific reports.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/version/package.html
===================================================================
--- jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/version/package.html	(revision 452687)
+++ jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/version/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Contains JCR specific implementations for the following interfaces:
 <ul>
@@ -6,4 +22,4 @@
 <li>VersionResource</li>
 <li>VersionHistoryResource</li>
 </ul>
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/package.html
===================================================================
--- jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/package.html	(revision 452687)
+++ jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Contains JCR specific implementations.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/project.properties
===================================================================
--- jcr-server/webdav/project.properties	(revision 452687)
+++ jcr-server/webdav/project.properties	(working copy)
@@ -1,2 +1,17 @@
+#  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.
+
 maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/
 maven.repo.remote = http://www.ibiblio.org/maven/,http://www.day.com/maven/
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Interfaces and classes related to WebDAV properties.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/lock/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/lock/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/lock/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Provides interfaces and classes for locking related issues.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/search/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/search/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/search/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Contains interfaces and classes used to cover the functionality defined by the
 <a href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html">Internet
@@ -2,2 +18,2 @@
 Draft WebDAV Search</a>.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/transaction/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/transaction/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/transaction/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Contains interfaces and classes related to transaction locks.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/package.html	(working copy)
@@ -1,4 +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.
+  -->
 <body>
 Interfaces and classes used to cover functionality defined by
 <a href="http://www.ietf.org/rfc/rfc3253.txt">RFC 3253: Versioning Extensions to WebDAV</a>.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Report interface and inplementation for default reports defined by RFC 3253.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/package.html	(working copy)
@@ -1,4 +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.
+  -->
 <body>
 Contains interfaces and classes related to observation, which is not covered
 by the WebDAV protocol.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/xml/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Xml utility classes.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/statuscode.properties
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/statuscode.properties	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/statuscode.properties	(working copy)
@@ -1,3 +1,18 @@
+#  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.
+
 100=Continue
 101=Switching Protocols
 102=Processing
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/ordering/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/ordering/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/ordering/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Contains interfaces and classes used to cover the functionality defined by the
 <a href="http://www.ietf.org/rfc/rfc3648.txt">RFC 3648: Web Distributed Authoring
@@ -2,2 +18,2 @@
 and Versioning (WebDAV) Ordered Collections Protocol </a>.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/util/package.html
===================================================================
--- jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/util/package.html	(revision 452687)
+++ jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/util/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Common utility classes.
-</body>
\ No newline at end of file
+</body>
Index: jcr-server/client/project.properties
===================================================================
--- jcr-server/client/project.properties	(revision 452687)
+++ jcr-server/client/project.properties	(working copy)
@@ -1,2 +1,17 @@
+#  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.
+
 maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/,http://www.day.com/maven/jsr170/javadocs/jcr-1.0/
 maven.repo.remote = http://www.ibiblio.org/maven/,http://www.day.com/maven/
Index: jcr-server/webapp/project.properties
===================================================================
--- jcr-server/webapp/project.properties	(revision 452687)
+++ jcr-server/webapp/project.properties	(working copy)
@@ -1,3 +1,33 @@
+#  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.
+
+#  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.
+
 maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/,http://www.day.com/maven/jsr170/javadocs/jcr-1.0/
 maven.repo.remote = http://www.ibiblio.org/maven/,http://www.day.com/maven/
 maven.multiproject.type = war
Index: jcr-server/webapp/src/webapp/index.jsp
===================================================================
--- jcr-server/webapp/src/webapp/index.jsp	(revision 452687)
+++ jcr-server/webapp/src/webapp/index.jsp	(working copy)
@@ -2,6 +2,22 @@
 		 org.apache.jackrabbit.j2ee.RepositoryAccessServlet,
 		 org.apache.jackrabbit.j2ee.SimpleWebdavServlet,
                  javax.jcr.Repository"%><%
+/*
+ * 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.
+ */
 %><html>
 <head>
 <title>Jackrabbit JCR-Server</title>
@@ -94,4 +110,4 @@
 
 %><hr size="1"><em>Powered by <a href="<%= rep.getDescriptor(Repository.REP_VENDOR_URL_DESC) %>"><%= rep.getDescriptor(Repository.REP_NAME_DESC)%></a> version <%= rep.getDescriptor(Repository.REP_VERSION_DESC) %>.</em>
 </body>
-</html>
\ No newline at end of file
+</html>
Index: jcr-server/webapp/src/webapp/WEB-INF/repository/log4j.properties
===================================================================
--- jcr-server/webapp/src/webapp/WEB-INF/repository/log4j.properties	(revision 452687)
+++ jcr-server/webapp/src/webapp/WEB-INF/repository/log4j.properties	(working copy)
@@ -1,3 +1,18 @@
+#  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.
+
 # Set root logger level to DEBUG and its only appender to A1.
 log4j.rootLogger=INFO, stdout
 #log4j.rootLogger=DEBUG, stdout, file
Index: jcr-server/webapp/src/webapp/WEB-INF/repository/repository.xml
===================================================================
--- jcr-server/webapp/src/webapp/WEB-INF/repository/repository.xml	(revision 452687)
+++ jcr-server/webapp/src/webapp/WEB-INF/repository/repository.xml	(working copy)
@@ -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.
+  -->
 <!-- <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Repository//EN" "file://config.dtd"> -->
 <!DOCTYPE Repository [
     <!--
Index: jcr-server/webapp/src/webapp/WEB-INF/config.xml
===================================================================
--- jcr-server/webapp/src/webapp/WEB-INF/config.xml	(revision 452687)
+++ jcr-server/webapp/src/webapp/WEB-INF/config.xml	(working copy)
@@ -1,5 +1,21 @@
 <?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.
+  -->
+<!--
 <!DOCTYPE config [
         <!ELEMENT config (iomanager , propertymanager, (collection | noncollection)? , filter?) >
 
Index: jcr-server/webapp/src/webapp/WEB-INF/web.xml
===================================================================
--- jcr-server/webapp/src/webapp/WEB-INF/web.xml	(revision 452687)
+++ jcr-server/webapp/src/webapp/WEB-INF/web.xml	(working copy)
@@ -1,5 +1,21 @@
 <?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.
+  -->
+
 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
 <web-app>
     <display-name>Jackrabbit JCR Server</display-name>
@@ -268,4 +284,4 @@
         <servlet-name>JCRWebdavServer</servlet-name>
         <url-pattern>/server/*</url-pattern>
     </servlet-mapping>
-</web-app>
\ No newline at end of file
+</web-app>
Index: jcr-server/webapp/src/webapp/WEB-INF/log4j.xml
===================================================================
--- jcr-server/webapp/src/webapp/WEB-INF/log4j.xml	(revision 452687)
+++ jcr-server/webapp/src/webapp/WEB-INF/log4j.xml	(working copy)
@@ -1,4 +1,20 @@
 <?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.
+  -->
 <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
 
Index: jcr-rmi/project.properties
===================================================================
--- jcr-rmi/project.properties	(revision 452687)
+++ jcr-rmi/project.properties	(working copy)
@@ -1,3 +1,18 @@
+# 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.
+
 maven.javadoc.links=http://java.sun.com/j2se/1.4.2/docs/api/,http://www.day.com/maven/jsr170/javadocs/jcr-1.0/
 maven.repo.remote=http://www.ibiblio.org/maven/,http://www.day.com/maven/
 maven.checkstyle.properties=checkstyle.xml
Index: jcr-rmi/src/test/org/apache/jackrabbit/test/rmi/package.html
===================================================================
--- jcr-rmi/src/test/org/apache/jackrabbit/test/rmi/package.html	(revision 452687)
+++ jcr-rmi/src/test/org/apache/jackrabbit/test/rmi/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Test cases for the JCR-RMI wrapper. The test cases use the EasyMock library
 to generate mock objects that are then wrapped into the remote client-server
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/xml/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Utility classes for importing SAX event streams.
 <p>
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/iterator/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/iterator/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/iterator/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Remote adapters for local iterators.
 </body>
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/jmx/JCRServer.java
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/jmx/JCRServer.java	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/jmx/JCRServer.java	(working copy)
@@ -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.
+ */
 package org.apache.jackrabbit.rmi.server.jmx;
 
 import java.io.ByteArrayInputStream;
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/jmx/JCRServerMBean.java
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/jmx/JCRServerMBean.java	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/jmx/JCRServerMBean.java	(working copy)
@@ -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.
+ */
 package org.apache.jackrabbit.rmi.server.jmx;
 
 public interface JCRServerMBean {
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/server/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Server implementation of the transparent JCR-RMI layer.
 <p>
@@ -61,4 +77,4 @@
     Naming.bind(name, remote);  // Make the RMI binding using java.rmi.Naming
 </pre>
 
-</body>
\ No newline at end of file
+</body>
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/iterator/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Utility classes for implementing JCR iterators based on static arrays.
 <p>
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/observation/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/observation/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/observation/package.html	(working copy)
@@ -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.
+  -->
 <body>
 
 <p>
@@ -64,4 +80,4 @@
 the event queue. Each such event is then dispatched to the client-side
 event listener by calling the EventListener.onEvent() method.
 
-</body
\ No newline at end of file
+</body
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/remote/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Remote interfaces of the transparent JCR-RMI layer.
 <p>
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/value/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/value/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/value/package.html	(working copy)
@@ -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.
+  -->
 <html>
 <body>
 Serializable implementation of the JCR Value interfaces.
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/iterator/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/iterator/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/iterator/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Local adapters for remote iterators.
 </body>
Index: jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/package.html
===================================================================
--- jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/package.html	(revision 452687)
+++ jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/package.html	(working copy)
@@ -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.
+  -->
 <body>
 Client implementation of the transparent JCR-RMI layer.
 <p>
Index: jcr-rmi/src/resources/jackrabbit-rmi-service.xml
===================================================================
--- jcr-rmi/src/resources/jackrabbit-rmi-service.xml	(revision 452687)
+++ jcr-rmi/src/resources/jackrabbit-rmi-service.xml	(working copy)
@@ -1,5 +1,22 @@
 <?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.
+  -->
+
 <server>
 	<mbean code="org.apache.jackrabbit.rmi.server.jmx.JCRServer"
 		name="Jackrabbit.services:RMIServer = JCR RMI Server">
Index: jcr-rmi/pom.xml
===================================================================
--- jcr-rmi/pom.xml	(revision 452687)
+++ jcr-rmi/pom.xml	(working copy)
@@ -1,4 +1,22 @@
 <?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 xmlns="http://maven.apache.org/POM/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd ">
Index: jackrabbit/applications/test/repository/namespaces/ns_reg.properties.install
===================================================================
--- jackrabbit/applications/test/repository/namespaces/ns_reg.properties.install	(revision 452748)
+++ jackrabbit/applications/test/repository/namespaces/ns_reg.properties.install	(working copy)
@@ -1,3 +1,18 @@
+#  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.
+
 #Tue Jan 17 18:27:06 CET 2006
 xs=http\://www.w3.org/2001/XMLSchema
 xml=http\://www.w3.org/XML/1998/namespace
Index: jackrabbit/applications/test/cnd-reader-test-input.cnd
===================================================================
--- jackrabbit/applications/test/cnd-reader-test-input.cnd	(revision 452748)
+++ jackrabbit/applications/test/cnd-reader-test-input.cnd	(working copy)
@@ -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.
+ */
 <ex = "http://example.org/jackrabbit/example">
 [ex:NodeType] > ex:ParentNodeType1, ex:ParentNodeType2
   orderable mixin
Index: jackrabbit/applications/test/workspaces/test/workspace.xml
===================================================================
--- jackrabbit/applications/test/workspaces/test/workspace.xml	(revision 452748)
+++ jackrabbit/applications/test/workspaces/test/workspace.xml	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   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.
+  -->
 <Workspace name="test">
   <!--
       virtual file system of the workspace:
Index: jackrabbit/applications/test/workspaces/default/workspace.xml
===================================================================
--- jackrabbit/applications/test/workspaces/default/workspace.xml	(revision 452748)
+++ jackrabbit/applications/test/workspaces/default/workspace.xml	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   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.
+  -->
 <Workspace name="default">
   <!--
       virtual file system of the workspace:
Index: jackrabbit/applications/test/log4j.properties
===================================================================
--- jackrabbit/applications/test/log4j.properties	(revision 452748)
+++ jackrabbit/applications/test/log4j.properties	(working copy)
@@ -1,3 +1,18 @@
+#  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.
+
 # Set root logger level to DEBUG and its only appender to A1.
 log4j.rootLogger=INFO, file
 #log4j.rootLogger=DEBUG, stdout, file
Index: jackrabbit/applications/test/repositoryStubImpl.properties
===================================================================
--- jackrabbit/applications/test/repositoryStubImpl.properties	(revision 452748)
+++ jackrabbit/applications/test/repositoryStubImpl.properties	(working copy)
@@ -1,4 +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.
+
+#
 # This is the configuration file for the jackrabbit repository test stub.
 #
 
Index: jackrabbit/applications/test/xsd-converter-test-input.xsd
===================================================================
--- jackrabbit/applications/test/xsd-converter-test-input.xsd	(revision 452748)
+++ jackrabbit/applications/test/xsd-converter-test-input.xsd	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?> 
+<!--
+   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.
+  -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:element name="name" type="xs:token"/>
   <xs:element name="qualification" type="xs:token"/>
@@ -70,4 +86,4 @@
       <xs:attribute ref="id"/>
     </xs:complexType>
   </xs:element>
-</xs:schema>
\ No newline at end of file
+</xs:schema>
Index: jackrabbit/applications/test/repository.xml
===================================================================
--- jackrabbit/applications/test/repository.xml	(revision 452748)
+++ jackrabbit/applications/test/repository.xml	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   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.
+  -->
 <!DOCTYPE Repository [
     <!--
         the Repository element configures a repository instance;
Index: jackrabbit/src/test/java/org/apache/jackrabbit/core/nodetype/xml/test_ns_cnd_nodetypes.cnd
===================================================================
--- jackrabbit/src/test/java/org/apache/jackrabbit/core/nodetype/xml/test_ns_cnd_nodetypes.cnd	(revision 452687)
+++ jackrabbit/src/test/java/org/apache/jackrabbit/core/nodetype/xml/test_ns_cnd_nodetypes.cnd	(working copy)
@@ -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.
+ */
+
 <testns3 = "test-namespace3">
 <testns4 = "test-namespace4">
 
Index: jackrabbit/src/test/java/org/apache/jackrabbit/core/config/workspace.xml
===================================================================
--- jackrabbit/src/test/java/org/apache/jackrabbit/core/config/workspace.xml	(revision 452687)
+++ jackrabbit/src/test/java/org/apache/jackrabbit/core/config/workspace.xml	(working copy)
@@ -1,4 +1,20 @@
 <?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.
+-->
 <Workspace name="default">
   <!--
       virtual file system of the workspace:
Index: jackrabbit/src/test/java/org/apache/jackrabbit/core/config/repository.xml
===================================================================
--- jackrabbit/src/test/java/org/apache/jackrabbit/core/config/repository.xml	(revision 452687)
+++ jackrabbit/src/test/java/org/apache/jackrabbit/core/config/repository.xml	(working copy)
@@ -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.
+-->
 <!DOCTYPE Repository [
     <!--
         the Repository element configures a repository instance;
Index: jackrabbit/src/main/java/org/apache/jackrabbit/uuid/package.html
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/uuid/package.html	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/uuid/package.html	(working copy)
@@ -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.
+-->
 <body>
   <p>
     <p>
@@ -11,4 +27,4 @@
      available. 
   </p>
  </p>
-</body>
\ No newline at end of file
+</body>
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/default.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/default.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/default.ddl	(working copy)
@@ -1,2 +1,16 @@
+#  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.
 create table ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH varchar not null, FSENTRY_NAME varchar not null, FSENTRY_DATA varbinary null, FSENTRY_LASTMOD bigint not null, FSENTRY_LENGTH bigint not null)
 create unique index ${schemaObjectPrefix}FSENTRY_IDX on ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH, FSENTRY_NAME)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/DatabaseFileSystem.java
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/DatabaseFileSystem.java	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/DatabaseFileSystem.java	(working copy)
@@ -1188,10 +1188,13 @@
             try {
                 String sql = reader.readLine();
                 while (sql != null) {
-                    // replace prefix variable
-                    sql = Text.replace(sql, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix);
-                    // execute sql stmt
-                    stmt.executeUpdate(sql);
+                    // Skip comments and empty lines
+                    if (!sql.startsWith("#") && sql.length() > 0) {
+                        // replace prefix variable
+                        sql = Text.replace(sql, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix);
+                        // execute sql stmt
+                        stmt.executeUpdate(sql);
+                    }
                     // read next sql stmt
                     sql = reader.readLine();
                 }
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/package.html
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/package.html	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/package.html	(working copy)
@@ -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.
+-->
 <body>
 This package contains the class <code>{@link DbFileSystem}</code>,
 a simple generic JDBC-based <code>FileSystem</code> implementation
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/mssql.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/mssql.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/mssql.ddl	(working copy)
@@ -1,2 +1,16 @@
+#  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.
 create table ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH varchar(2048) not null, FSENTRY_NAME varchar(255) not null, FSENTRY_DATA image null, FSENTRY_LASTMOD bigint not null, FSENTRY_LENGTH bigint not null)
 create unique index ${schemaObjectPrefix}FSENTRY_IDX on ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH, FSENTRY_NAME)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/postgresql.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/postgresql.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/postgresql.ddl	(working copy)
@@ -1,2 +1,16 @@
+#  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.
 create table ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH varchar not null, FSENTRY_NAME varchar not null, FSENTRY_DATA bytea null, FSENTRY_LASTMOD bigint not null, FSENTRY_LENGTH bigint not null)
 create unique index ${schemaObjectPrefix}FSENTRY_IDX on ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH, FSENTRY_NAME)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/derby.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/derby.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/derby.ddl	(working copy)
@@ -1,2 +1,16 @@
+#  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.
 create table ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH varchar(2048) not null, FSENTRY_NAME varchar(255) not null, FSENTRY_DATA blob(100M), FSENTRY_LASTMOD bigint not null, FSENTRY_LENGTH bigint not null)
 create unique index ${schemaObjectPrefix}FSENTRY_IDX on ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH, FSENTRY_NAME)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/mysql.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/mysql.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/mysql.ddl	(working copy)
@@ -1,2 +1,16 @@
+#  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.
 create table ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH text not null, FSENTRY_NAME varchar(255) not null, FSENTRY_DATA longblob null, FSENTRY_LASTMOD bigint not null, FSENTRY_LENGTH bigint not null)
 create unique index ${schemaObjectPrefix}FSENTRY_IDX on ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH(245), FSENTRY_NAME)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/oracle.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/oracle.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/oracle.ddl	(working copy)
@@ -1,2 +1,16 @@
+#  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.
 create table ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH varchar2(2048) not null, FSENTRY_NAME varchar2(255) not null, FSENTRY_DATA blob null, FSENTRY_LASTMOD number(38,0) not null, FSENTRY_LENGTH number(38,0) null)
 create unique index ${schemaObjectPrefix}FSENTRY_IDX on ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH, FSENTRY_NAME)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/db2.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/db2.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/db2.ddl	(working copy)
@@ -1,2 +1,16 @@
+#  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.
 create table ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH varchar(745) not null, FSENTRY_NAME varchar(255) not null, FSENTRY_DATA blob(100M), FSENTRY_LASTMOD bigint not null, FSENTRY_LENGTH bigint not null)
 create unique index ${schemaObjectPrefix}FSENTRY_IDX on ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH, FSENTRY_NAME)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/daffodil.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/daffodil.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/fs/db/daffodil.ddl	(working copy)
@@ -1,2 +1,16 @@
+#  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.
 create table ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH varchar(2048) not null, FSENTRY_NAME varchar(255) not null, FSENTRY_DATA blob, FSENTRY_LASTMOD bigint not null, FSENTRY_LENGTH bigint not null)
 create index ${schemaObjectPrefix}FSENTRY_IDX on ${schemaObjectPrefix}FSENTRY (FSENTRY_PATH, FSENTRY_NAME)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/repository.xml
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/repository.xml	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/repository.xml	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   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.
+-->
 <!DOCTYPE Repository [
     <!--
         the Repository element configures a repository instance;
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/mssql.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/mssql.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/mssql.ddl	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 create table ${schemaObjectPrefix}NODE (NODE_ID char(36) not null, NODE_DATA image not null)
 create unique index ${schemaObjectPrefix}NODE_IDX on ${schemaObjectPrefix}NODE (NODE_ID)
 create table ${schemaObjectPrefix}PROP (PROP_ID varchar(1024) not null, PROP_DATA image not null)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/DatabasePersistenceManager.java
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/DatabasePersistenceManager.java	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/DatabasePersistenceManager.java	(working copy)
@@ -961,10 +961,13 @@
             try {
                 String sql = reader.readLine();
                 while (sql != null) {
-                    // replace prefix variable
-                    sql = Text.replace(sql, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix);
-                    // execute sql stmt
-                    stmt.executeUpdate(sql);
+                    // Skip comments and empty lines
+                    if (!sql.startsWith("#") && sql.length() > 0) {
+                        // replace prefix variable
+                        sql = Text.replace(sql, SCHEMA_OBJECT_PREFIX_VARIABLE, schemaObjectPrefix);
+                        // execute sql stmt
+                        stmt.executeUpdate(sql);
+                    }
                     // read next sql stmt
                     sql = reader.readLine();
                 }
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/postgresql.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/postgresql.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/postgresql.ddl	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 create table ${schemaObjectPrefix}NODE (NODE_ID char(36) not null, NODE_DATA bytea not null)
 create unique index ${schemaObjectPrefix}NODE_IDX on ${schemaObjectPrefix}NODE (NODE_ID)
 create table ${schemaObjectPrefix}PROP (PROP_ID varchar not null, PROP_DATA bytea not null)
@@ -5,4 +19,4 @@
 create table ${schemaObjectPrefix}REFS (NODE_ID char(36) not null, REFS_DATA bytea not null)
 create unique index ${schemaObjectPrefix}REFS_IDX on ${schemaObjectPrefix}REFS (NODE_ID)
 create table ${schemaObjectPrefix}BINVAL (BINVAL_ID varchar not null, BINVAL_DATA bytea not null)
-create unique index ${schemaObjectPrefix}BINVAL_IDX on ${schemaObjectPrefix}BINVAL (BINVAL_ID)
\ No newline at end of file
+create unique index ${schemaObjectPrefix}BINVAL_IDX on ${schemaObjectPrefix}BINVAL (BINVAL_ID)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/default.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/default.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/default.ddl	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 create table ${schemaObjectPrefix}NODE (NODE_ID char(36) not null, NODE_DATA varbinary not null)
 create unique index ${schemaObjectPrefix}NODE_IDX on ${schemaObjectPrefix}NODE (NODE_ID)
 create table ${schemaObjectPrefix}PROP (PROP_ID varchar not null, PROP_DATA varbinary not null)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/derby.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/derby.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/derby.ddl	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 create table ${schemaObjectPrefix}NODE (NODE_ID char(36) not null, NODE_DATA blob not null)
 create unique index ${schemaObjectPrefix}NODE_IDX on ${schemaObjectPrefix}NODE (NODE_ID)
 create table ${schemaObjectPrefix}PROP (PROP_ID varchar(1024) not null, PROP_DATA blob not null)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/mysql.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/mysql.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/mysql.ddl	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 create table ${schemaObjectPrefix}NODE (NODE_ID char(36) not null, NODE_DATA blob not null)
 create unique index ${schemaObjectPrefix}NODE_IDX on ${schemaObjectPrefix}NODE (NODE_ID)
 create table ${schemaObjectPrefix}PROP (PROP_ID varchar(255) not null, PROP_DATA blob not null)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/oracle.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/oracle.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/oracle.ddl	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 create table ${schemaObjectPrefix}NODE (NODE_ID char(36) not null, NODE_DATA blob not null)
 create unique index ${schemaObjectPrefix}NODE_IDX on ${schemaObjectPrefix}NODE (NODE_ID)
 create table ${schemaObjectPrefix}PROP (PROP_ID varchar2(1024) not null, PROP_DATA blob not null)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/db2.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/db2.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/db2.ddl	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 create table ${schemaObjectPrefix}NODE (NODE_ID char(36) not null, NODE_DATA blob not null)
 create unique index ${schemaObjectPrefix}NODE_IDX on ${schemaObjectPrefix}NODE (NODE_ID)
 create table ${schemaObjectPrefix}PROP (PROP_ID varchar(1000) not null, PROP_DATA blob not null)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/daffodil.ddl
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/daffodil.ddl	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/daffodil.ddl	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 create table ${schemaObjectPrefix}NODE (NODE_ID char(36) not null, NODE_DATA blob not null)
 create index ${schemaObjectPrefix}NODE_IDX on ${schemaObjectPrefix}NODE (NODE_ID)
 create table ${schemaObjectPrefix}PROP (PROP_ID varchar(1024) not null, PROP_DATA blob not null)
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/package.html
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/package.html	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/state/db/package.html	(working copy)
@@ -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.
+-->
 <body>
 This package contains the class <code>{@link SimpleDbPersistenceManager}</code>,
 a simple generic JDBC-based <code>PersistenceManager</code> for Jackrabbit.
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/version/package.html
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/version/package.html	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/version/package.html	(working copy)
@@ -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.
+-->
 <body>
 The versioning framework in jackrabbit consists of 3 layers. A persistence layer,
 an application layer and an presentation layer.<p>
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/builtin_nodetypes.cnd	(working copy)
@@ -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.
+ */
+
 <rep='internal'>
 <jcr='http://www.jcp.org/jcr/1.0'>
 <nt='http://www.jcp.org/jcr/nt/1.0'>
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/test-repository.xml
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/test-repository.xml	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/test-repository.xml	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   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.
+-->
 <Repository>
     <!--
         virtual file system where the repository stores global state
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/package.html
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/package.html	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/package.html	(working copy)
@@ -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.
+-->
 <body>
 Contains the core classes that provide the implementation of the JCR API.
 <p>
Index: jackrabbit/src/main/java/org/apache/jackrabbit/core/config/package.html
===================================================================
--- jackrabbit/src/main/java/org/apache/jackrabbit/core/config/package.html	(revision 452687)
+++ jackrabbit/src/main/java/org/apache/jackrabbit/core/config/package.html	(working copy)
@@ -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.
+-->
 <body>
 Jackrabbit configuration handling.
 <p>
@@ -54,4 +70,4 @@
 configuration files.
 </p>
 
-</body>
\ No newline at end of file
+</body>
Index: jackrabbit/src/main/config/log4j.properties
===================================================================
--- jackrabbit/src/main/config/log4j.properties	(revision 452687)
+++ jackrabbit/src/main/config/log4j.properties	(working copy)
@@ -1,3 +1,18 @@
+#  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.
+
 # Set root logger level to DEBUG and its only appender to A1.
 #log4j.rootLogger=INFO, stdout, file
 #log4j.rootLogger=DEBUG, stdout, file
Index: jackrabbit/src/main/config/repository.xml
===================================================================
--- jackrabbit/src/main/config/repository.xml	(revision 452687)
+++ jackrabbit/src/main/config/repository.xml	(working copy)
@@ -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.
+-->
 <!DOCTYPE Repository [
     <!--
         the Repository element configures a repository instance;
Index: jackrabbit/src/site/xdoc/doap_Jackrabbit.rdf
===================================================================
--- jackrabbit/src/site/xdoc/doap_Jackrabbit.rdf	(revision 452687)
+++ jackrabbit/src/site/xdoc/doap_Jackrabbit.rdf	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   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.
+  -->
 <rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:asfext="http://projects.apache.org/ns/asfext#" xml:lang="en">
   <Project rdf:about="http://jackrabbit.apache.org/">
     <name>Apache Jackrabbit</name>
Index: jackrabbit/derby.properties
===================================================================
--- jackrabbit/derby.properties	(revision 452687)
+++ jackrabbit/derby.properties	(working copy)
@@ -1 +1,15 @@
+#  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.
 derby.storage.fileSyncTransactionLog=true
Index: jackrabbit/jdepend.properties
===================================================================
--- jackrabbit/jdepend.properties	(revision 452687)
+++ jackrabbit/jdepend.properties	(working copy)
@@ -1,3 +1,17 @@
+#  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.
 ignore.java=java.*,javax.*,org.w3c.*,org.xml.*
 ignore.sun=sun.*,com.sun.*
 ignore.jackrabbit=org.apache.jackrabbit.util
Index: jackrabbit/checkstyle-suppressions.xml
===================================================================
--- jackrabbit/checkstyle-suppressions.xml	(revision 452687)
+++ jackrabbit/checkstyle-suppressions.xml	(working copy)
@@ -1,5 +1,22 @@
 <?xml version="1.0"?>
 
+<!--
+   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.
+  -->
+
 <!DOCTYPE suppressions PUBLIC
     "-//Puppy Crawl//DTD Suppressions 1.0//EN"
     "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
Index: textfilters/checkstyle-suppressions.xml
===================================================================
--- textfilters/checkstyle-suppressions.xml	(revision 452687)
+++ textfilters/checkstyle-suppressions.xml	(working copy)
@@ -1,5 +1,22 @@
 <?xml version="1.0"?>
 
+<!--
+   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.
+  -->
+
 <!DOCTYPE suppressions PUBLIC
     "-//Puppy Crawl//DTD Suppressions 1.0//EN"
     "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
Index: jca/maven.xml
===================================================================
--- jca/maven.xml	(revision 452687)
+++ jca/maven.xml	(working copy)
@@ -1,4 +1,20 @@
 <?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="default">
 	<goal name="default" prereqs="rar:install"/>
     <preGoal name="rar:rar">
Index: jca/project.xml
===================================================================
--- jca/project.xml	(revision 452687)
+++ jca/project.xml	(working copy)
@@ -1,4 +1,20 @@
 <?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>
     <pomVersion>3</pomVersion>    
     <groupId>org.apache.jackrabbit</groupId>
Index: jca/applications/test/log4j.properties
===================================================================
--- jca/applications/test/log4j.properties	(revision 452687)
+++ jca/applications/test/log4j.properties	(working copy)
@@ -1,3 +1,18 @@
+#  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.
+
 # Set root logger level to DEBUG and its only appender to A1.
 log4j.rootLogger=INFO, file
 #log4j.rootLogger=DEBUG, stdout, file
Index: jca/applications/test/repository.xml
===================================================================
--- jca/applications/test/repository.xml	(revision 452687)
+++ jca/applications/test/repository.xml	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   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.
+  -->
 <!DOCTYPE Repository [
     <!--
         the Repository element configures a repository instance;
Index: jca/src/main/rar/META-INF/ra.xml
===================================================================
--- jca/src/main/rar/META-INF/ra.xml	(revision 452687)
+++ jca/src/main/rar/META-INF/ra.xml	(working copy)
@@ -1,4 +1,20 @@
 <?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.
+  -->
 <connector xmlns="http://java.sun.com/xml/ns/j2ee"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
Index: jca/src/main/rar/repository.xml
===================================================================
--- jca/src/main/rar/repository.xml	(revision 452687)
+++ jca/src/main/rar/repository.xml	(working copy)
@@ -1,4 +1,20 @@
 <?xml version="1.0"?>
+<!--
+   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.
+  -->
 <!DOCTYPE Repository [
     <!--
         the Repository element configures a repository instance;
Index: jca/src/main/rar10/META-INF/ra.xml
===================================================================
--- jca/src/main/rar10/META-INF/ra.xml	(revision 452687)
+++ jca/src/main/rar10/META-INF/ra.xml	(working copy)
@@ -1,4 +1,20 @@
 <?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.
+  -->
 <!DOCTYPE connector PUBLIC
     '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
     'http://java.sun.com/dtd/connector_1_0.dtd'>
@@ -32,4 +48,4 @@
 	<reauthentication-support>false</reauthentication-support>	
     </resourceadapter>
 </connector>
-	   
\ No newline at end of file
+	   
