| <?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:define="jelly:define" |
| xmlns:velocity="jelly:velocity"> |
| |
| <!-- ==================== --> |
| <!-- Default Global Goals --> |
| <!-- ==================== --> |
| |
| <goal name="default"> |
| <attainGoal name="build"/> |
| </goal> |
| |
| <goal name="build"> |
| <attainGoal name="jar:install"/> |
| </goal> |
| |
| <goal name="rebuild"> |
| <attainGoal name="clean"/> |
| <attainGoal name="build"/> |
| </goal> |
| |
| <!-- Construct dependency lists for inclusion in generated jar. --> |
| <postGoal name="java:compile"> |
| <attainGoal name="geronimo:dependency"/> |
| </postGoal> |
| |
| <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/resources/META-INF/geronimo-tomcat/var/catalina/conf/web.xml"/> |
| <copy todir="${maven.build.dir}/var/catalina/webapps"> |
| <fileset dir="src/test-resources/deployables"> |
| <include name="war1/**"/> |
| <include name="war3/**"/> |
| </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> |