Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1ED31D263 for ; Fri, 18 Jan 2013 06:35:34 +0000 (UTC) Received: (qmail 16206 invoked by uid 500); 18 Jan 2013 06:35:33 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 15824 invoked by uid 500); 18 Jan 2013 06:35:31 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 15758 invoked by uid 99); 18 Jan 2013 06:35:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 06:35:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 06:35:18 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.4/8.14.4) with ESMTP id r0I6YwAS012856 for ; Fri, 18 Jan 2013 07:34:58 +0100 Received: from z011101.bk.fin.local ([130.11.7.101]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Jan 2013 07:34:58 +0100 Received: from Y011022.bk.fin.local ([130.11.50.22]) by z011101.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Jan 2013 07:34:58 +0100 Received: from Y011021.bk.fin.local ([fe80::7d49:4821:dadd:23e7]) by Y011022.bk.fin.local ([fe80::9cce:2f7b:f0b6:ed29%13]) with mapi id 14.02.0318.001; Fri, 18 Jan 2013 07:34:57 +0100 From: =?iso-8859-1?Q?Mat=E8rne=2C_Jan_=28RZF=2C_SG_481=29?= To: Ant Users List Subject: AW: Packaging ant scripts into a jar Thread-Topic: Packaging ant scripts into a jar Thread-Index: AQHN9JxKmSS9162Ed0+ryObMkGC0aphOocxw Date: Fri, 18 Jan 2013 06:34:57 +0000 Message-ID: <74024AE017E8E844923ED34D7A79284E6E74F8E0@Y011021.bk.fin.local> References: In-Reply-To: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [130.11.50.56] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 18 Jan 2013 06:34:58.0155 (UTC) FILETIME=[EF653BB0:01CDF545] X-Virus-Checked: Checked by ClamAV on apache.org If I read the source of Ants main class [1] I would think, that the buildfi= le must be a real file on the file system. It cannot be run from the classp= ath. What do you expect from bundling the buildfile in a jar? A workaround is using a "launcher buildfile" which extracts the content oft= he jar (maybe download the jar before from a repository) and the dow= nloaded file. Viele Gr=FC=DFe Jan [1] http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tool= s/ant/Main.java -----Urspr=FCngliche Nachricht----- Von: jrojas@redlinesolutions.biz [mailto:jrojas@redlinesolutions.biz] Im Au= ftrag von Jose Rojas Gesendet: Donnerstag, 17. Januar 2013 11:01 An: Ant Users List Betreff: Packaging ant scripts into a jar Hello, I have an ant build process that I would like bundle into a jar. Is it possible for ant to run a build.xml found within a jar file instead of a file within the local file system? I know I can script Ant within a custom Java program to possibly handle some of this, but I also have special hooks within my custom build.xml that use the 'ant' task to call external ant scripts for extra customization. It would be nice if Ant could look within the current classpath/jar to find these, or if not within the classpath/jar, then look for it within the file system. Is this architecture possible with Ant? Thanks for the help. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org