Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 85904 invoked from network); 9 Nov 2007 19:01:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 19:01:26 -0000 Received: (qmail 11056 invoked by uid 500); 9 Nov 2007 19:01:14 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 10892 invoked by uid 500); 9 Nov 2007 19:01:14 -0000 Mailing-List: contact ivy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@incubator.apache.org Delivered-To: mailing list ivy-user@incubator.apache.org Received: (qmail 10883 invoked by uid 99); 9 Nov 2007 19:01:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 11:01:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xavier.hanin@gmail.com designates 64.233.162.228 as permitted sender) Received: from [64.233.162.228] (HELO nz-out-0506.google.com) (64.233.162.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 19:01:14 +0000 Received: by nz-out-0506.google.com with SMTP id o37so562535nzf for ; Fri, 09 Nov 2007 11:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=BKhRi0Q0nWGfD2chJLt+xb+puuBiDahbVZcl4dnLUTc=; b=OBEMXlXKqar8ABGGPClTPt0RskfSQdoXMKYZYPIfT4cpg04U+73h5GHD0HoVQTNxYWxynLPcQI0eoqO4gzUNlSN4pjn99gfCDrNNRgMhfAbh0OkXZYbK06+eqBJc/QgXRvs2sYTukVb/iGBMtAnmZU/hvKo1dQseRdUSBErSOyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AofZAY05guI7YVVu1dzA07dXyZFd/OEKQpiMQnu+af14Vc+UMviNc2hQp8xg6HZBE6/vj2a40NDDK02fHN7hfXq6WMfMJdeiBz39I1tPpCzGae3CXolGBPaU8AyfVO/PQLC7Y1nv2ljVfOlxn0aTrKyRiHlmcmGjIZig57X0AIM= Received: by 10.114.204.7 with SMTP id b7mr26694wag.1194634850597; Fri, 09 Nov 2007 11:00:50 -0800 (PST) Received: by 10.114.120.20 with HTTP; Fri, 9 Nov 2007 11:00:50 -0800 (PST) Message-ID: <635a05060711091100k543ef892t7361a29b48471e54@mail.gmail.com> Date: Fri, 9 Nov 2007 20:00:50 +0100 From: "Xavier Hanin" To: ivy-user@incubator.apache.org Subject: Re: Custom Repository In-Reply-To: <6AA43581-7B5A-41D5-92CE-853130DBB354@interface21.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <930609C7-A54E-4A01-AE4C-74861185688A@nebhale.com> <635a05060711081421h3683d521i9089dcf7bc09d83d@mail.gmail.com> <6AA43581-7B5A-41D5-92CE-853130DBB354@interface21.com> X-Virus-Checked: Checked by ClamAV on apache.org On Nov 9, 2007 2:35 PM, Ben Hale wrote: > > > Maybe if you tell us more about what you wan't to do we could guide > > you in the right direction? > > I'm trying to implement a repository that can communicate with > Amazon's S3 service ( http://s3.amazonaws.com). Basically it works as > a normal HTTP server for download, but I need to use a special REST- > ful service for upload (which is really what I want to focus on). So overriding the URLRepository should be a good start. All you should have to do is override: public void put(File source, String destination, boolean overwrite) throws IOException Have a look at how other repository implementation implement this method, and you should get a good idea of what to do. The FileRepository is the simplest example, the SFTP or SSH repositories are good examples of how to use some security settings. HTH, Xavier > > > For this, I don't think a custom dependency resolver is quite what I > need, but I'm open to suggestions. > > > -Ben -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/