| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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="elasticsearch" default="all"> |
| |
| <import file="../connector-build.xml"/> |
| |
| <target name="download-dependencies"> |
| |
| <mkdir dir="build/download"/> |
| <get src="http://cloud.github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.0.tar.gz" |
| dest="build/download/elasticsearch.tar.gz"/> |
| <gunzip src="build/download/elasticsearch.tar.gz"/> |
| <untar src="build/download/elasticsearch.tar" dest="test-materials-proprietary"/> |
| |
| <!-- download and install the attachment plugin --> |
| <mkdir dir="test-materials-proprietary/elasticsearch-0.19.0/plugins"/> |
| |
| <get src="http://cloud.github.com/downloads/elasticsearch/elasticsearch-mapper-attachments/elasticsearch-mapper-attachments-1.2.0.zip" |
| dest="test-materials-proprietary/elasticsearch-0.19.0/plugins/mapper-attachments.zip"/> |
| |
| <unzip src="test-materials-proprietary/elasticsearch-0.19.0/plugins/mapper-attachments.zip" dest="test-materials-proprietary/elasticsearch-0.19.0/plugins/mapper-attachments"/> |
| |
| <chmod dir="test-materials-proprietary/elasticsearch-0.19.0" perm="ugo+rxw"> |
| <fileset dir="**/*"/> |
| </chmod> |
| <chmod file="test-materials-proprietary/elasticsearch-0.19.0/bin/plugin" perm="ugo+rx"/> |
| <chmod file="test-materials-proprietary/elasticsearch-0.19.0/bin/elasticsearch" perm="ugo+rx"/> |
| <chmod file="test-materials-proprietary/elasticsearch-0.19.0/bin/elasticsearch.in.sh" perm="ugo+rx"/> |
| |
| </target> |
| |
| <target name="download-cleanup"> |
| <delete> |
| <fileset dir="test-materials-proprietary" excludes="README*.txt"/> |
| </delete> |
| </target> |
| |
| </project> |