| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- |
| |
| Copyright 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. |
| --> |
| |
| |
| <!-- $Rev$ $Date$ --> |
| |
| <project default="default" |
| xmlns:j="jelly:core" |
| xmlns:ant="jelly:ant" |
| xmlns:maven="jelly:maven" |
| xmlns:xmlbeans="xmlbeans2:maven" |
| > |
| |
| <preGoal name="java:compile"> |
| <xmlbeans:schema2java |
| maven.xmlbeans2.sourceschema="schema/geronimo-connector-1.1.xsd"/> |
| <mkdir dir="${basedir}/target/xmlbeans-classes"/> |
| <mkdir dir="${basedir}/target/xmlbeans-classes/schemaorg_apache_xmlbeans"/> |
| <copy todir="${basedir}/target/xmlbeans-classes/schemaorg_apache_xmlbeans"> |
| <ant:fileset dir="${basedir}/target/classes/schemaorg_apache_xmlbeans"/> |
| </copy> |
| </preGoal> |
| |
| <preGoal name="test:compile"> |
| <!-- Build test-rar-10 --> |
| <ant:mkdir dir="${basedir}/target/test-rar-10/META-INF"/> |
| <copy todir="${basedir}/target/test-rar-10/META-INF"> |
| <fileset dir="${basedir}/src/test-data/connector_1_0"/> |
| </copy> |
| |
| <ant:jar destfile="${basedir}/target/test-rar-10.rar" |
| basedir="${basedir}/target/test-rar-10"/> |
| |
| <!-- Build test-rar-15 --> |
| <ant:mkdir dir="${basedir}/target/test-rar-15/META-INF"/> |
| <copy todir="${basedir}/target/test-rar-15/META-INF"> |
| <fileset dir="${basedir}/src/test-data/connector_1_5"/> |
| </copy> |
| |
| <ant:jar destfile="${basedir}/target/test-rar-15.rar" |
| basedir="${basedir}/target/test-rar-15"/> |
| |
| <ant:mkdir dir="${basedir}/target/test-rar-15-notx/META-INF"/> |
| <copy todir="${basedir}/target/test-rar-15-notx/META-INF"> |
| <fileset dir="${basedir}/src/test-data/connector_1_5_notx"/> |
| </copy> |
| |
| <ant:jar destfile="${basedir}/target/test-rar-15-notx.rar" |
| basedir="${basedir}/target/test-rar-15-notx"/> |
| |
| <ant:mkdir dir="${basedir}/target/test-rar-15-localtx/META-INF"/> |
| <copy todir="${basedir}/target/test-rar-15-localtx/META-INF"> |
| <fileset dir="${basedir}/src/test-data/connector_1_5_localtx"/> |
| </copy> |
| |
| <ant:jar destfile="${basedir}/target/test-rar-15-localtx.rar" |
| basedir="${basedir}/target/test-rar-15-localtx"/> |
| |
| <!-- Build test-ear --> |
| <ant:jar destfile="${basedir}/target/test-ear.ear"> |
| <fileset dir="${basedir}/target"> |
| <include name="test-rar-10.rar"/> |
| <include name="test-rar-15.rar"/> |
| </fileset> |
| <zipfileset dir="${basedir}/src/test-data/ear" prefix="META-INF"/> |
| </ant:jar> |
| <!--do it again without geronimo dds--> |
| <!-- Build test-rar-10 --> |
| <ant:mkdir dir="${basedir}/target/test-rar-10-noger/META-INF"/> |
| <copy todir="${basedir}/target/test-rar-10-noger/META-INF"> |
| <fileset dir="${basedir}/src/test-data/connector_1_0"> |
| <exclude name="geronimo-ra.xml"/> |
| </fileset> |
| </copy> |
| |
| <ant:jar destfile="${basedir}/target/test-rar-10-noger.rar" |
| basedir="${basedir}/target/test-rar-10"/> |
| |
| <!-- Build test-rar-15 --> |
| <ant:mkdir dir="${basedir}/target/test-rar-15-noger/META-INF"/> |
| <copy todir="${basedir}/target/test-rar-15-noger/META-INF"> |
| <fileset dir="${basedir}/src/test-data/connector_1_5"> |
| <exclude name="geronimo-ra.xml"/> |
| </fileset> |
| </copy> |
| |
| <ant:jar destfile="${basedir}/target/test-rar-15-noger.rar" |
| basedir="${basedir}/target/test-rar-15"/> |
| |
| <!-- Build test-ear --> |
| <ant:jar destfile="${basedir}/target/test-ear-noger.ear"> |
| <fileset dir="${basedir}/target"> |
| <include name="test-rar-10-noger.rar"/> |
| <include name="test-rar-15-noger.rar"/> |
| </fileset> |
| <zipfileset dir="${basedir}/src/test-data/ear" prefix="META-INF"> |
| <exclude name="geronimo-application.xml"/> |
| </zipfileset> |
| </ant:jar> |
| |
| </preGoal> |
| </project> |