Blame commons-beanutils-build-other-jars.xml

05c6efc
05c6efc
   Licensed to the Apache Software Foundation (ASF) under one or more
05c6efc
   contributor license agreements.  See the NOTICE file distributed with
05c6efc
   this work for additional information regarding copyright ownership.
05c6efc
   The ASF licenses this file to You under the Apache License, Version 2.0
05c6efc
   (the "License"); you may not use this file except in compliance with
05c6efc
   the License.  You may obtain a copy of the License at
05c6efc
05c6efc
       http://www.apache.org/licenses/LICENSE-2.0
05c6efc
05c6efc
   Unless required by applicable law or agreed to in writing, software
05c6efc
   distributed under the License is distributed on an "AS IS" BASIS,
05c6efc
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
05c6efc
   See the License for the specific language governing permissions and
05c6efc
   limitations under the License.
05c6efc
-->
05c6efc
<project name="Bean Utilities (Other jars)" default="other-jars" basedir=".">
05c6efc
05c6efc
05c6efc
05c6efc
        $Id$
05c6efc
-->
05c6efc
05c6efc
05c6efc
05c6efc
05c6efc
05c6efc
  
05c6efc
  <property name="component.version"       value=""/>
05c6efc
05c6efc
  
05c6efc
  <property name="build.home"              value="target"/>
05c6efc
05c6efc
  
05c6efc
  <property name="dist.home"               value="dist"/>
05c6efc
05c6efc
  
05c6efc
  <property name="maven.compile.source"    value=""/>
05c6efc
  <property name="maven.compile.target"    value=""/>
05c6efc
05c6efc
05c6efc
05c6efc
05c6efc
  <target name="other-jars" depends="core-jar,bean-collections-jar">
05c6efc
  </target>
05c6efc
05c6efc
  <target name="core-jar" description="Create BeanUtils Core jar">
05c6efc
    <mkdir      dir="${dist.home}"/>
05c6efc
    <mkdir      dir="${build.home}/classes/META-INF"/>
05c6efc
    <copy      file="LICENSE.txt" tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
05c6efc
    <copy      file="NOTICE.txt"  tofile="${build.home}/classes/META-INF/NOTICE.txt"/>
05c6efc
    <jar    jarfile="${dist.home}/commons-beanutils-core-${component.version}.jar">
05c6efc
        <manifest>
05c6efc
            <attribute name="Specification-Title" value="Commons BeanUtils Core"/>
05c6efc
            <attribute name="Specification-Version" value="${component.version}"/>
05c6efc
            <attribute name="Specification-Vendor" value="The Apache Software Foundation"/>
05c6efc
            <attribute name="Implementation-Title" value="Commons BeanUtils Core"/>
05c6efc
            <attribute name="Implementation-Version" value="${component.version}"/> 
05c6efc
            <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
05c6efc
            <attribute name="Implementation-Vendor-Id" value="org.apache"/>
05c6efc
            <attribute name="X-Compile-Source-JDK" value="${maven.compile.source}"/>
05c6efc
            <attribute name="X-Compile-Target-JDK" value="${maven.compile.target}"/>
05c6efc
        </manifest>
05c6efc
        <fileset dir="${build.home}/classes">
05c6efc
            <include name="**/*.class"/>
05c6efc
            <include name="**/LICENSE.txt"/>
05c6efc
            <include name="**/NOTICE.txt"/>
05c6efc
            <exclude name="**/BeanComparator*.class"/>
05c6efc
            <exclude name="**/BeanMap*.class"/>
05c6efc
            <exclude name="**/BeanPredicate*.class"/>
05c6efc
            <exclude name="**/BeanPropertyValueChangeClosure*.class"/>
05c6efc
            <exclude name="**/BeanPropertyValueEqualsPredicate*.class"/>
05c6efc
            <exclude name="**/BeanToPropertyValueTransformer*.class"/>
05c6efc
        </fileset>
05c6efc
    </jar>
05c6efc
  </target>
05c6efc
05c6efc
  <target name="bean-collections-jar" description="Create Bean Collections jar">
05c6efc
    <mkdir      dir="${dist.home}"/>
05c6efc
    <mkdir      dir="${build.home}/classes/META-INF"/>
05c6efc
    <copy      file="LICENSE.txt" tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
05c6efc
    <copy      file="NOTICE.txt"  tofile="${build.home}/classes/META-INF/NOTICE.txt"/>
05c6efc
    <jar    jarfile="${dist.home}/commons-beanutils-bean-collections-${component.version}.jar">
05c6efc
        <manifest>
05c6efc
            <attribute name="Specification-Title" value="Commons BeanUtils Bean Collections"/>
05c6efc
            <attribute name="Specification-Version" value="${component.version}"/>
05c6efc
            <attribute name="Specification-Vendor" value="The Apache Software Foundation"/>
05c6efc
            <attribute name="Implementation-Title" value="Commons BeanUtils Bean Collections"/>
05c6efc
            <attribute name="Implementation-Version" value="${component.version}"/> 
05c6efc
            <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
05c6efc
            <attribute name="Implementation-Vendor-Id" value="org.apache"/>
05c6efc
            <attribute name="X-Compile-Source-JDK" value="${maven.compile.source}"/>
05c6efc
            <attribute name="X-Compile-Target-JDK" value="${maven.compile.target}"/>
05c6efc
        </manifest>
05c6efc
        <fileset dir="${build.home}/classes">
05c6efc
            <include name="**/LICENSE.txt"/>
05c6efc
            <include name="**/NOTICE.txt"/>
05c6efc
            <include name="**/BeanComparator*.class"/>
05c6efc
            <include name="**/BeanMap*.class"/>
05c6efc
            <include name="**/BeanPredicate*.class"/>
05c6efc
            <include name="**/BeanPropertyValueChangeClosure*.class"/>
05c6efc
            <include name="**/BeanPropertyValueEqualsPredicate*.class"/>
05c6efc
            <include name="**/BeanToPropertyValueTransformer*.class"/>
05c6efc
        </fileset>
05c6efc
    </jar>
05c6efc
  </target>
05c6efc
05c6efc
</project>