0N/A<?
xml version="1.0"?>
0N/A Licensed to the Apache Software Foundation (ASF) under one or more 0N/A contributor license agreements. See the NOTICE file distributed with 0N/A this work for additional information regarding copyright ownership. 2362N/A The ASF licenses this file to You under the Apache License, Version 2.0 0N/A (the "License"); you may not use this file except in compliance with 2362N/A the License. You may obtain a copy of the License at 0N/A Unless required by applicable law or agreed to in writing, software 0N/A distributed under the License is distributed on an "AS IS" BASIS, 0N/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A See the License for the specific language governing permissions and 0N/A limitations under the License. 0N/A ======================================================================= 2362N/A ======================================================================= 0N/A<
project name="get-m2" default="get-m2" basedir=".">
0N/A This build file downloads the Maven2 Ant tasks,
0N/A and installs them in the location specified by the
m2.dest.dir property.
0N/A You may need to set proxy settings. On Java1.5, Ant tries to get
0N/A this from the OS, unless you use the -noproxy option.
0N/A Proxies can be configured manually setting the JVM proxy values in the
0N/A ANT_OPTS environment variable.
0N/A For example, to set the proxy up in the tcsh shell, the command would be
0N/A For Windows, set the environment variable in the appropriate dialog box
0N/A and open a new console. or, by hand
0N/A <
macrodef name="require">
0N/A <
attribute name="property" />
0N/A <
fail unless="@{property}">$${@{property}} not specified</
fail>
0N/A <
target name="probe-m2">
0N/A <!-- Look for M2 ant tasks in our classpath--> 0N/A <!-- fetch M2 ant tasks into our repository, if it is not there--> 0N/A usetimestamp="false" />
0N/A <
target name="dont-validate-m2-checksum" depends="probe-m2" 0N/A <
target name="validate-m2-checksum" 0N/A depends="download-m2,dont-validate-m2-checksum" 0N/A <
target name="checksum-mismatch" depends="validate-m2-checksum" 0N/A The local copy has been deleted, for security reasons
0N/A <
target name="checksum-match" depends="checksum-mismatch" 0N/A <
target name="get-m2" depends="checksum-match" 0N/A description="Download the Maven2 Ant tasks" />