| <?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-tomcat-1.1.xsd,schema/geronimo-tomcat-config-1.0.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"> |
| <fileset dir="${basedir}/target/classes/schemaorg_apache_xmlbeans"/> |
| </copy> |
| </preGoal> |
| |
| <preGoal name="test:test"> |
| |
| <j:set var="endorsed.dir" value="${maven.build.dir}/endorsed"/> |
| |
| <mkdir dir="${endorsed.dir}"/> |
| <mkdir dir="${maven.build.dir}/var"/> |
| <mkdir dir="${maven.build.dir}/var/catalina"/> |
| <mkdir dir="${maven.build.dir}/var/catalina/webapps"/> |
| <mkdir dir="${maven.build.dir}/var/catalina/conf"/> |
| <copy todir="${maven.build.dir}/var/catalina/conf" file="src/var/web.xml"/> |
| <copy todir="${maven.build.dir}/var/catalina/webapps"> |
| <fileset dir="src/test-resources/deployables"> |
| <include name="war1/**"/> |
| <include name="war3/**"/> |
| <include name="war4/**"/> |
| </fileset> |
| </copy> |
| |
| <j:forEach var="dep" items="${pom.dependencies}"> |
| <j:if test="${dep.artifactId.equals('xercesImpl') || dep.artifactId.equals('xml-apis')}"> |
| <copy file="${maven.repo.local}/${dep.groupId}/jars/${dep.artifact}" todir="${endorsed.dir}"/> |
| </j:if> |
| </j:forEach> |
| </preGoal> |
| |
| </project> |