mirror of https://github.com/apache/lucene.git
64 lines
3.2 KiB
XML
64 lines
3.2 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
Copyright 2004, 2005 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.
|
|
-->
|
|
|
|
<project name="dependency">
|
|
|
|
<target name="display-download-warning" unless="download-warning-marker-displayed">
|
|
<echo>
|
|
**************************************************************************************************
|
|
* *
|
|
* D O W N L O A D W A R N I N G *
|
|
* *
|
|
* Dependent libraries will be downloaded. These are NOT necessarily downloaded from apache.org, *
|
|
* and may use other licences besides the Apache Software License. Dependencies will use an *
|
|
* open-source license compatible with the ASL, such as Berkeley Software Distribution (BSD) or *
|
|
* Mozilla Public License (MPL). *
|
|
* *
|
|
**************************************************************************************************
|
|
</echo>
|
|
<!-- <input
|
|
validargs="continue"
|
|
message="Enter 'continue' to continue with the build:"/>
|
|
|
|
<mkdir dir="${external.package.dir}"/>
|
|
<echo file="${download-warning-marker.file}">Download warning accepted.</echo>-->
|
|
</target>
|
|
<macrodef name="ibiblio-dependency">
|
|
<attribute name="artifact" description="The name of the JAR artfiact to download." />
|
|
<attribute name="version" description="The version number of the artifact to download." />
|
|
<attribute name="group" description="The Maven group-id containing the JAR." />
|
|
<attribute name="use" default="compile" description="Useage of the dependency: compile, test or run. Subdirectory to place the artifact in." />
|
|
<attribute name="folder" default="jars"/>
|
|
<attribute name="reposurl" default="http://www.ibiblio.org/maven2"/>
|
|
|
|
<sequential>
|
|
<mkdir dir="${gdata.external.lib.dir}" />
|
|
<antcall target="display-download-warning" inheritAll="true"/>
|
|
<download-file dldest="${gdata.external.lib.dir}/@{artifact}-@{version}.jar" dlsrc="@{reposurl}/@{group}/@{folder}/@{artifact}-@{version}.jar" />
|
|
<property name="download-warning-marker-displayed" value="true"/>
|
|
</sequential>
|
|
|
|
</macrodef>
|
|
|
|
<macrodef name="download-file">
|
|
<attribute name="dlsrc" description="The URL of the file to download." />
|
|
<attribute name="dldest" description="The directory and file to copy to." />
|
|
<sequential>
|
|
<get src="@{dlsrc}" dest="@{dldest}" verbose="true" usetimestamp="true" ignoreerrors="true" />
|
|
</sequential>
|
|
</macrodef>
|
|
</project> |