Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 41316 invoked from network); 26 Nov 2007 13:20:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 13:20:39 -0000 Received: (qmail 72868 invoked by uid 500); 26 Nov 2007 13:20:27 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 72855 invoked by uid 500); 26 Nov 2007 13:20:27 -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 72846 invoked by uid 99); 26 Nov 2007 13:20:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 05:20:26 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcaii-ivy-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 13:20:04 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IwdsR-0006zu-LS for ivy-user@incubator.apache.org; Mon, 26 Nov 2007 13:19:55 +0000 Received: from 83-244-179-210.cust-83.exponential-e.net ([83.244.179.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Nov 2007 13:19:55 +0000 Received: from teknokrat by 83-244-179-210.cust-83.exponential-e.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Nov 2007 13:19:55 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: ivy-user@incubator.apache.org From: teknokrat Subject: How to publish file? Date: Mon, 26 Nov 2007 13:19:48 +0000 Lines: 20 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 83-244-179-210.cust-83.exponential-e.net User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org I am writing some code to publish jars using a filesystem resolver for a plugin. So far I have tried String path = IvyPatternHelper.substitute("", organisation, module, revision, "ivy", "ivy", "xml"); File ivyFile = new File(path); if (!ivyFile.exists()) { IvyDeliver deliver = new IvyDeliver(); deliver.setModule(module); deliver.setOrganisation(organisation); deliver.setRevision(revision); deliver.execute(); } This throws NPEs. How can I use the Ivy API to publish a jar file from a java program? What fields are mandatory and how do i add the configuration details? There does not appear to be any javadoc link on the main site. cheers