cziegeler 2004/03/10 01:11:50
Modified: tools/src/anttasks ManifestToolTask.java
tools/src/loader Loader.java
Log:
Add missing license
Revision Changes Path
1.3 +14 -10 cocoon-2.1/tools/src/anttasks/ManifestToolTask.java
Index: ManifestToolTask.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/tools/src/anttasks/ManifestToolTask.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ManifestToolTask.java 8 Mar 2004 07:57:06 -0000 1.2
+++ ManifestToolTask.java 10 Mar 2004 09:11:50 -0000 1.3
@@ -61,8 +61,9 @@
/**
* Scan recursive
*/
- private void process(final File directoryFile, final String manifest)
- throws IOException, BuildException {
+ private void process(final File directoryFile,
+ final String manifest)
+ throws IOException, BuildException {
System.out.println("Writing: " + manifest);
FileWriter w = new FileWriter(this.project.resolveFile(manifest));
@@ -72,19 +73,22 @@
w.write("Cocoon-Libs: ");
final File[] files = directoryFile.listFiles();
- for (int i = 0; i < files.length; i++) {
+ for(int i = 0; i < files.length; i++) {
if (files[i].getName().endsWith(".jar")) {
- w.write(files[i].getName() + " ");
+ w.write(files[i].getName());
+ w.write(" ");
}
}
w.write("\n");
- for (int i = 0; i < files.length; i++) {
+ for(int i = 0; i < files.length; i++) {
if (files[i].getName().endsWith(".jar")) {
- w.write("Cocoon-Lib-" +
- files[i].getName().replace('.', '_') +
- ": " + String.valueOf(files[i].lastModified()) +
- "\n");
+ w.write("Cocoon-Lib-");
+ String s = files[i].getName().replace('.', '_');
+ w.write(s);
+ w.write(": ");
+ w.write(String.valueOf(files[i].lastModified()));
+ w.write("\n");
}
}
}
1.4 +16 -9 cocoon-2.1/tools/src/loader/Loader.java
Index: Loader.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/tools/src/loader/Loader.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Loader.java 5 Mar 2004 02:24:26 -0000 1.3
+++ Loader.java 10 Mar 2004 09:11:50 -0000 1.4
@@ -1,11 +1,18 @@
-/*****************************************************************************
- * Copyright (C) The Apache Software Foundation. All rights reserved.
*
- * -------------------------------------------------------------------------
*
- * This software is published under the terms of the Apache Software License
*
- * version 1.1, a copy of which has been included with this distribution in
*
- * the LICENSE file.
*
-
*****************************************************************************/
-
+/*
+ * Copyright 1999-2004 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
import java.io.File;
import java.net.MalformedURLException;