Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 24151 invoked from network); 9 Sep 2008 13:51:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 13:51:05 -0000 Received: (qmail 98800 invoked by uid 500); 9 Sep 2008 13:51:03 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 98538 invoked by uid 500); 9 Sep 2008 13:51:02 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 98527 invoked by uid 99); 9 Sep 2008 13:51:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 06:51:02 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adrian@last.fm designates 170.20.116.181 as permitted sender) Received: from [170.20.116.181] (HELO mail181.tvc.fw.cbsig.net) (170.20.116.181) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 09 Sep 2008 13:50:04 +0000 Received: (qmail 12636 invoked from network); 9 Sep 2008 13:50:35 -0000 Received: from unknown (HELO ?10.180.255.218?) (10.180.255.218) by mail.cbs.com with SMTP; 9 Sep 2008 13:50:35 -0000 Message-ID: <48C67F28.90700@last.fm> Date: Tue, 09 Sep 2008 14:50:32 +0100 From: Adrian Woodhead User-Agent: Thunderbird 1.5.0.14ubu (X11/20080724) MIME-Version: 1.0 To: ivy-user@ant.apache.org Subject: Re: How to publish source JAR? References: <29DE525B13BE37498D586B0124322CE906B59E82@ipipsc1068.ipip.ch> In-Reply-To: <29DE525B13BE37498D586B0124322CE906B59E82@ipipsc1068.ipip.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Well, assuming your build creates two jar files, say acme.jar and acme-source.jar I would do the following... In ivy.xml add two publications: Then your publish target should have one pattern like so: pattern="${target.dir}/[artifact]-[revision].[ext]" /> and that should publish both jar files. What you tried to do with having two "artifacts" patterns within publish doesn't work as Ivy only uses the first pattern and ignores the other one. Let us know if that works for you. Regards, Adrian Lewis, Eric wrote: > Newbie is back :-) > > Somehow I don't get it: How can I publish my JAR with the source files? > From what I understand, I can publish my JAR locally, by using > > pubrevision="${project.version}"> > pattern="${target.dir}/[artifact]-[revision].[ext]" /> > > > This works fine, but I also want to publish my source JAR. But > > pubrevision="${project.version}"> > pattern="${target.dir}/[artifact]-[revision].[ext]" /> > pattern="${target.dir}/[artifact]-[revision]-sources.[ext]" /> > > > doesn't publish the util-3.0.5-sources.jar from my util project. > > Also, is there any reference for the [] variables? I thought (from > looking at my IvyDE configuration) that perhaps the following could work > > ... > pattern="${target.dir}/[artifact]-[revision][source].[ext]" /> > ... > > or > ... > pattern="${target.dir}/[artifact]-[revision]-[source].[ext]" /> > ... > ? > > Any help is greatly appreciated! > > Thanks, > Eric >