]> source.dussan.org Git - vaadin-framework.git/commitdiff
License parametrized
authorJani Laakso <jani.laakso@itmill.com>
Tue, 4 Dec 2007 19:52:39 +0000 (19:52 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Tue, 4 Dec 2007 19:52:39 +0000 (19:52 +0000)
svn changeset:3163/svn branch:trunk

build/Apache2LicenseForJavaFiles.txt [new file with mode: 0644]
build/build.xml

diff --git a/build/Apache2LicenseForJavaFiles.txt b/build/Apache2LicenseForJavaFiles.txt
new file mode 100644 (file)
index 0000000..f32820a
--- /dev/null
@@ -0,0 +1,13 @@
+ * Copyright 2007 IT Mill Ltd.
+ * 
+ * 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.
\ No newline at end of file
index 82b6ffa31888ea3d2cb66f30ff2db475272fee25..e2c2ffd39b0c1095e7528b4aed19fcf89c471589 100644 (file)
        <target name="build" depends="demo" description="Build package required files, without packing them.">
        </target>
 
-
        <!-- Copy and preprocess sources for packaging 
        NOTE: Replaces <version></version> tags with build version tag for some "textual" files
        -->
        <target name="preprocess-src">
+               <loadfile property="ITMillApache2LicenseForJavaFiles" srcFile="build/ITMillApache2LicenseForJavaFiles.txt" />
                <mkdir dir="${result-path}/src" />
                <echo>Copying src directory and processing copied files.</echo>
                <echo>Replacing &lt;version&gt; tag with build version for java/html/css/xml files.</echo>
                <copy todir="${result-path}/src">
                        <filterset>
+                               <filter token="ITMillApache2LicenseForJavaFiles" value="${ITMillApache2LicenseForJavaFiles}" />
                                <filter token="VERSION" value="${version}" />
                        </filterset>
                        <fileset dir="src">
                                <include name="META-INF/**/*" />
                        </fileset>
                </copy>
-               
+
                <!-- Add package specific WebContent files from build/package/WebContent -->
                <copy todir="${output-dir}/WebContent">
                        <fileset dir="build/package/WebContent">
                                <include name="${toolkit-package}/launcher/**" />
                        </fileset>
                </copy>
-               
+
                <!--
                <echo>Building WAR</echo>
                <war warfile="${output-dir}/${product-file}.war">