Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 5542 invoked from network); 26 Feb 2009 15:51:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 15:51:39 -0000 Received: (qmail 85351 invoked by uid 500); 26 Feb 2009 15:51:29 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 85318 invoked by uid 500); 26 Feb 2009 15:51:29 -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 85284 invoked by uid 99); 26 Feb 2009 15:51:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 07:51:28 -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: local policy) Received: from [12.11.148.84] (HELO irp2.ptc.com) (12.11.148.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 15:51:20 +0000 X-IronPort-AV: E=Sophos;i="4.38,271,1233550800"; d="scan'208";a="33203894" Received: from unknown (HELO hq-ex3fe3.ptcnet.ptc.com) ([132.253.201.67]) by irp2.ptc.com with ESMTP; 26 Feb 2009 10:50:47 -0500 Received: from HQ-MAIL3.ptcnet.ptc.com ([132.253.202.91]) by hq-ex3fe3.ptcnet.ptc.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 26 Feb 2009 10:50:47 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Classpath Wildcards Date: Thu, 26 Feb 2009 10:49:46 -0500 Message-ID: In-Reply-To: <9EE86F1965E19E499C80DE52AC807B5502A47B54@z011021.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Classpath Wildcards Thread-Index: AcmXvPRnYPDispvET0W0xmTuTGQIugAGdNowABRt7QA= References: <9EE86F1965E19E499C80DE52AC807B5502A47B54@z011021.bk.fin.local> From: "Murray, Mike" To: "Ant Users List" X-OriginalArrivalTime: 26 Feb 2009 15:50:47.0299 (UTC) FILETIME=[FDA04530:01C99829] X-Virus-Checked: Checked by ClamAV on apache.org I'm setting up a classpath for a forked . I understand how Ant wildcards work. I was previously using ant wildcards to define the classpath, but the cmd line exceeds the windows limit when ${srclib} is deep. I want the classpath to include the literal string "wnc/*", which is a valid java classpath element. Since I used "pathelement path", shouldn't it take this as a literal? I think it does, except that it appears to validating it, and throwing it out as non-existent. I would expect this validation with "pathelement location", but not "pathelement path". Thanks, Mike -----Original Message----- From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]=20 Sent: Thursday, February 26, 2009 12:02 AM To: user@ant.apache.org Subject: AW: Classpath Wildcards >I'm trying to use Java's Classpath wildcards to limit the cmd length on >forked java calls. > > =20 That's not a Java wildcard, it's an Ant wildcard. Because is an Ant construct and Java wildcard can only be used from the command line. >But, Ant is throwing it out. > dropping L:\Windchill\srclib\wnc\* from path as it doesn't exist > [java] Executing 'D:\programs\jdk1.6.0_10\jre\bin\java.exe' with arguments: >Is there any way to do this? Ant doesnt pass all found classfiles to the program - it sets up a classloader. Therefore it can handle large numbers of files itself. So use an Ant wildcard: =20 (add one star ;) '*' every file in the directory '**' every file somewhere under the directory Jan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org