| <!-- |
| |
| Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| |
| <project name="JDBCRA bundler" default="build"> |
| <property name="pkg.dir" value="com/sun/gjc/spi"/> |
| |
| <property file="./build.properties"/> |
| |
| <target name="all" depends="build"/> |
| |
| <target name="build" depends="assemble"/> |
| |
| <target name="assemble"> |
| |
| <!-- build JDBC RAR of type javax.sql.DataSource --> |
| <mkdir dir="${component.lib.home}"/> |
| |
| <jar jarfile="${component.lib.home}/__ds_jdbc_ra.rar" |
| basedir="${component.lib.home}" excludes="**/*"> |
| <manifest> |
| <attribute name="Specification-Title" value="JDBC Specification"/> |
| <attribute name="Specification-Vendor" value="Sun Microsystems, Inc.,"/> |
| <attribute name="Specification-Version" value="3.0, 4.0"/> |
| <attribute name="Implementation-Vendor" value="Sun Microsystems, Inc.,"/> |
| <attribute name="Implementation-Version" value="V3"/> |
| <attribute name="Implementation-Title" value="GlassFish"/> |
| <attribute name="probe-provider-class-names" value="com.sun.gjc.monitoring.StatementCacheProbeProvider,com.sun.gjc.monitoring.SQLTraceProbeProvider,com.sun.gjc.monitoring.StatementLeakProbeProvider"/> |
| </manifest> |
| </jar> |
| |
| <jar jarfile="${component.lib.home}/__ds_jdbc_ra.jar" update="true" basedir="${component.classes.dir}" |
| includes="${pkg.dir}/**/*, com/sun/gjc/util/**/*, com/sun/gjc/monitoring/**/*, com/sun/gjc/common/**/*, **/LocalStrings.properties"> |
| <exclude name="com/sun/gjc/spi/XAManagedConnectionFactory.class"/> |
| <exclude name="com/sun/gjc/spi/CPManagedConnectionFactory.class"/> |
| <exclude name="com/sun/gjc/spi/DMManagedConnectionFactory.class"/> |
| </jar> |
| <echo message="Assembling __ds rar"/> |
| <jar jarfile="${component.lib.home}/__ds_jdbc_ra.rar" update="true" basedir="${component.lib.home}"> |
| <include name="__ds_jdbc_ra.jar"/> |
| </jar> |
| |
| |
| <!-- build JDBC RAR of type javax.sql.ConnectionPoolDataSource --> |
| <jar jarfile="${component.lib.home}/__cp_jdbc_ra.rar" |
| basedir="${component.lib.home}" excludes="**/*"> |
| <manifest> |
| <attribute name="Specification-Title" value="JDBC Specification"/> |
| <attribute name="Specification-Vendor" value="Sun Microsystems, Inc.,"/> |
| <attribute name="Specification-Version" value="3.0, 4.0"/> |
| <attribute name="Implementation-Vendor" value="Sun Microsystems, Inc.,"/> |
| <attribute name="Implementation-Version" value="V3"/> |
| <attribute name="Implementation-Title" value="GlassFish"/> |
| <attribute name="probe-provider-class-names" value="com.sun.gjc.monitoring.StatementCacheProbeProvider,com.sun.gjc.monitoring.SQLTraceProbeProvider,com.sun.gjc.monitoring.StatementLeakProbeProvider"/> |
| </manifest> |
| </jar> |
| |
| |
| <jar jarfile="${component.lib.home}/__cp_jdbc_ra.jar" update="true" basedir="${component.classes.dir}" |
| includes="${pkg.dir}/**/*, com/sun/gjc/util/**/*, com/sun/gjc/monitoring/**/*, com/sun/gjc/common/**/*, **/LocalStrings.properties"> |
| <exclude name="com/sun/gjc/spi/XAManagedConnectionFactory.class"/> |
| <exclude name="com/sun/gjc/spi/DSManagedConnectionFactory.class"/> |
| <exclude name="com/sun/gjc/spi/DMManagedConnectionFactory.class"/> |
| </jar> |
| |
| <echo message="Assembling __cp rar"/> |
| |
| <jar jarfile="${component.lib.home}/__cp_jdbc_ra.rar" update="true" basedir="${component.lib.home}"> |
| <include name="__cp_jdbc_ra.jar"/> |
| </jar> |
| |
| |
| <!-- build JDBC RAR of type javax.sql.XADataSource --> |
| <jar jarfile="${component.lib.home}/__xa_jdbc_ra.rar" |
| basedir="${component.lib.home}" excludes="**/*"> |
| <manifest> |
| <attribute name="Specification-Title" value="JDBC Specification"/> |
| <attribute name="Specification-Vendor" value="Sun Microsystems, Inc.,"/> |
| <attribute name="Specification-Version" value="3.0, 4.0"/> |
| <attribute name="Implementation-Vendor" value="Sun Microsystems, Inc.,"/> |
| <attribute name="Implementation-Version" value="V3"/> |
| <attribute name="Implementation-Title" value="GlassFish"/> |
| <attribute name="probe-provider-class-names" value="com.sun.gjc.monitoring.StatementCacheProbeProvider,com.sun.gjc.monitoring.SQLTraceProbeProvider,com.sun.gjc.monitoring.StatementLeakProbeProvider"/> |
| </manifest> |
| </jar> |
| |
| |
| <jar jarfile="${component.lib.home}/__xa_jdbc_ra.jar" update="true" basedir="${component.classes.dir}" |
| includes="${pkg.dir}/**/*, com/sun/gjc/util/**/*, com/sun/gjc/monitoring/**/*, com/sun/gjc/common/**/*, **/LocalStrings.properties"> |
| <exclude name="com/sun/gjc/spi/CPManagedConnectionFactory.class"/> |
| <exclude name="com/sun/gjc/spi/DSManagedConnectionFactory.class"/> |
| <exclude name="com/sun/gjc/spi/DMManagedConnectionFactory.class"/> |
| </jar> |
| |
| <echo message="Assembling __xa rar"/> |
| |
| <jar jarfile="${component.lib.home}/__xa_jdbc_ra.rar" update="true" basedir="${component.lib.home}"> |
| <include name="__xa_jdbc_ra.jar"/> |
| </jar> |
| |
| <!-- build JDBC RAR of type java.sql.Driver --> |
| <jar jarfile="${component.lib.home}/__dm_jdbc_ra.rar" |
| basedir="${component.lib.home}" excludes="**/*"> |
| <manifest> |
| <attribute name="Specification-Title" value="JDBC Specification"/> |
| <attribute name="Specification-Vendor" value="Sun Microsystems, Inc.,"/> |
| <attribute name="Specification-Version" value="3.0, 4.0"/> |
| <attribute name="Implementation-Vendor" value="Sun Microsystems, Inc.,"/> |
| <attribute name="Implementation-Version" value="V3"/> |
| <attribute name="Implementation-Title" value="GlassFish"/> |
| <attribute name="probe-provider-class-names" value="com.sun.gjc.monitoring.StatementCacheProbeProvider,com.sun.gjc.monitoring.SQLTraceProbeProvider,com.sun.gjc.monitoring.StatementLeakProbeProvider"/> |
| </manifest> |
| </jar> |
| |
| <jar jarfile="${component.lib.home}/__dm_jdbc_ra.jar" update="true" basedir="${component.classes.dir}" |
| includes="${pkg.dir}/**/*, com/sun/gjc/util/**/*, com/sun/gjc/monitoring/**/*, com/sun/gjc/common/**/*, **/LocalStrings.properties"> |
| <exclude name="com/sun/gjc/spi/DSManagedConnectionFactory.class"/> |
| <exclude name="com/sun/gjc/spi/CPManagedConnectionFactory.class"/> |
| <exclude name="com/sun/gjc/spi/XAManagedConnectionFactory.class"/> |
| </jar> |
| <echo message="Assembling __dm rar"/> |
| <jar jarfile="${component.lib.home}/__dm_jdbc_ra.rar" update="true" basedir="${component.lib.home}"> |
| <include name="__dm_jdbc_ra.jar"/> |
| </jar> |
| |
| <echo message="Assembling templates jar"/> |
| |
| <jar jarfile="${component.lib.home}/templates.jar" update="true" basedir="${component.classes.dir}/templates" |
| includes="glassfish/lib/install/templates/resources/jdbc/*, glassfish/lib/install/databases/dbvendormapping/*"> |
| </jar> |
| |
| <delete dir="${component.classes.dir}"/> |
| |
| <unjar src="${component.lib.home}/__xa_jdbc_ra.rar" dest="${component.classes.dir}/glassfish/lib/install/applications/__xa_jdbc_ra"/> |
| <unjar src="${component.lib.home}/__ds_jdbc_ra.rar" dest="${component.classes.dir}/glassfish/lib/install/applications/__ds_jdbc_ra"/> |
| <unjar src="${component.lib.home}/__cp_jdbc_ra.rar" dest="${component.classes.dir}/glassfish/lib/install/applications/__cp_jdbc_ra"/> |
| <unjar src="${component.lib.home}/__dm_jdbc_ra.rar" dest="${component.classes.dir}/glassfish/lib/install/applications/__dm_jdbc_ra"/> |
| <unjar src="${component.lib.home}/templates.jar" dest="${component.classes.dir}"/> |
| |
| <zip basedir="${component.classes.dir}" file="${component.target.dir}/jdbc-ra.zip"/> |
| |
| <delete dir="${component.lib.home}"/> |
| <!--delete dir="${component.target.rar}"/--> |
| </target> |
| |
| </project> |