From heatherfrank@example.org Tue Mar 01 09:02:29 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 76911 invoked from network); 1 Mar 2005 09:02:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 09:02:28 -0000 Received: (qmail 92973 invoked by uid 500); 1 Mar 2005 09:02:22 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 92935 invoked by uid 500); 1 Mar 2005 09:02:22 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 92921 invoked by uid 99); 1 Mar 2005 09:02:22 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO pegasus.axiomsystems.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 01:02:21 -0800 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Subject: RE: if junit batchtest is skipped also skip junitreport? Date: Tue, 1 Mar 2005 09:02:15 -0000 Message-ID: <heatherfrank@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: if junit batchtest is skipped also skip junitreport? Thread-Index: AcUdpSvaWpTtwAvfSCWGHNmiQgetFwAE7rngAABPFSAAIJkt4A== From: "Keith Hatton" <heatherfrank@example.org> To: "Ant Users List" <heatherfrank@example.org> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Praise indeed! Thanks Dominique. I should add that I got the <pathconvert ... setonempty=3D"false"> tip from this list, somewhere. I wonder if I have encountered something similar to the scenario you describe. Every now and then (when something either in my code or my test environment is completely broken) the Junit task can generate a 0-byte XML file, which causes JUnitReport to barf. I haven't been too concerned about this, as it's mainly a sign that something of mine is wrong, but it is a bit unclean and might cause an unattented build to hang. Hasn't happened recently, maybe was an issue with 1.6.1 but I upgraded to 1.6.2 a few weeks ago, or maybe my code is better now :). Keith -----Original Message----- From: Dominique Devienne [mailto:heatherfrank@example.org]=20 Sent: 28 February 2005 17:28 To: Ant Users List Subject: RE: if junit batchtest is skipped also skip junitreport? This is an elegant solution IMHO. It has one little flaw, which really isn't; a test that crashes the VM (can happen with native code and JNI) prevents the XML file from being generated. So using forkmode=3D"perTest", you'd be missing one or more = of these XML files, and if all tests were of this category, you could in theory have run some tests, all of them failing. But what's the point of running the report when you have no input ;-) Which is why I say it's not really a flaw. The fact that <junit> missed such 'crashing' failures may have been fixed I think, as I vaguely recall a bug about this. --DD > -----Original Message----- > From: Keith Hatton [mailto:heatherfrank@example.org] > Sent: Monday, February 28, 2005 11:17 AM > To: Ant Users List > Subject: RE: if junit batchtest is skipped also skip junitreport? >=20 > I recently did this but was unable to do it with a purely macrodef-based > approach. > The gist of my solution was to define the fileset generated by Junit. >=20 > <fileset id=3D"junit.raw" dir=3D"${blah}" = includes=3D"TEST-*.xml"/> >=20 > Then check if it was actually there: >=20 > <target name=3D"junitcheck"> > <!-- did we actually run any unit tests? --> > <pathconvert targetos=3D"windows" refid=3D"junit.raw" > property=3D"report.junit" setonempty=3D"false"/> > </target> >=20 > Then only do the junitreport if the property was set: >=20 > <target name=3D"junitreports" depends=3D"junitcheck" if=3D"report.junit"> > <junitreport> > <fileset refid=3D"junit.raw"/> > <report format=3D"frames" todir=3D"${report}"/> > </junitreport> > </target> >=20 > Hope thie helps, and if anyone has more elegant solutions I'd be=20 > delighted to hear them! >=20 > Keith >=20 >=20 >=20 > -----Original Message----- > From: Jon Jagger [mailto:heatherfrank@example.org] > Sent: 28 February 2005 15:03 > To: heatherfrank@example.org > Subject: if junit batchtest is skipped also skip junitreport? >=20 >=20 > I have a package based ant setup which uses the following... >=20 > <macrodef name=3D"run-test" > <attribute name=3D"package"//> > ... > <sequential> > ... > <junit errorProperty=3D"test.failed" ...> > ... > <formatter type=3D"xml"/> > <batchtest todir=3D"..." > unless=3D"@{package}.tests.uptodate"> > ... > <batchtest> > </junit> > ... > <fail if=3D"test.failed"/> > ... > <junitreport todir=3D"....> > ... > </junitreport> > </sequential> > </macrodef> >=20 > This works but I'd like to run the junitreport only if batchtest=20 > actually runs some tests. In other words, I like an unless on=20 > junitreport to mirror the unless on batchtest. But there isn't one and I >=20 > can't see an obvious answer in chapter 4 of Erik & Steve's excellent ant >=20 > book. Is there a way to do this without resorting to the <if>=20 > ant-contrib? >=20 >=20 > Also, I'm using a flag file to indicate whether a test-run passed or=20 > failed. That way I can rerun the tests even if none of the code being=20 > tested or the code doing the tests has changed. Exactly as Erik and=20 > Steve suggest in chapter 4 (pages 106-108). Is there a way to stop the > <delete> task from echoing a successful deletion message to the console? >=20 > Many thanks > Jon >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: heatherfrank@example.org > For additional commands, e-mail: heatherfrank@example.org >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: heatherfrank@example.org > For additional commands, e-mail: heatherfrank@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 09:20:57 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 85402 invoked from network); 1 Mar 2005 09:20:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 09:20:56 -0000 Received: (qmail 23127 invoked by uid 500); 1 Mar 2005 09:20:51 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 23095 invoked by uid 500); 1 Mar 2005 09:20:51 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 23080 invoked by uid 99); 1 Mar 2005 09:20:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp1.freeola.net (HELO smtp1.freeola.net) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 01:20:50 -0800 Received: (from root@localhost) by smtp1.freeola.net (8.12.8p1/8.12.8) id j219MWxM020910 for heatherfrank@example.org; Tue, 1 Mar 2005 09:22:32 GMT (envelope-from heatherfrank@example.org) Received: from [83.161.120.155] (81-31-112-23.adsl.entanet.co.uk [83.161.120.155]) by smtp1.freeola.net (8.12.8p1/8.11.1) with ESMTP id j219MW57020881 for <heatherfrank@example.org>; Tue, 1 Mar 2005 09:22:32 GMT (envelope-from heatherfrank@example.org) Message-ID: <heatherfrank@example.org> Date: Tue, 01 Mar 2005 09:30:45 +0000 From: Jon Jagger <heatherfrank@example.org> User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List <heatherfrank@example.org> Subject: Re: if junit batchtest is skipped also skip junitreport? References: <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks to those whose suggested approaches. I have thought about it and decided that the most elegant solution is to unask the question. Viz I have decided not to run junitreport after each junit. Instead I'll have a separate task that reports on all existing TEST-*.xml files. I was using the index.html file from junitreport in an uptodate condition; instead I'm now simply creating a file if and when junit passes. Thanks Jon --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 14:30:16 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 58733 invoked from network); 1 Mar 2005 14:30:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 14:30:15 -0000 Received: (qmail 93663 invoked by uid 500); 1 Mar 2005 14:30:08 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 93627 invoked by uid 500); 1 Mar 2005 14:30:07 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 93614 invoked by uid 99); 1 Mar 2005 14:30:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mta3.swift.com (HELO besec550.swift.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 06:30:06 -0800 Received: from bemigl01.swift.com (bemigl01 [83.161.120.155]) by besec550.swift.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j21EPOgY012775 for <heatherfrank@example.org>; Tue, 1 Mar 2005 14:25:24 GMT Date: Tue, 01 Mar 2005 15:29:59 +0100 From: RADEMAKERS Tanguy <heatherfrank@example.org> Subject: RE: <delete dir="X/Y"> woes! To: Ant Users List <heatherfrank@example.org> Message-id: <heatherfrank@example.org> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.0.6556.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Thread-Topic: <delete dir="X/Y"> woes! Thread-Index: AcUeCISHABMhr4D7R3e1mJpmMu5paQAYfcqA content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 01 Mar 2005 14:29:59.0107 (UTC) FILETIME=[25996130:01C51E6B] X-MASF: 0.00% X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello Cyril, have you looked at using a combination of the <depth> and <type> selectors? /t >-----Original Message----- >From: Cyril Sagan [mailto:heatherfrank@example.org] >Sent: Tuesday, March 01, 2005 2:28 AM >To: heatherfrank@example.org >Cc: heatherfrank@example.org >Subject: <delete dir="X/Y"> woes! > > >I'm loosing my mind trying to get Ant to delete a directory! > >I thought this was easy, until I was sent a path property that >included multiple directory components. > >The obvious was working: > <delete dir="${base}" verbose="true" includeEmptyDirs="true" /> > >...until I was given a path in the form "dirX/dirY". > >The result was to remove "dirY" and all its contents, but leave an >empty "dirX". Yes, I could use <dirname>: > <dirname file="${base}" property="top"/> > <delete dir="${top}" verbose="true" includeEmptyDirs="true" /> > >...but this is no good for arbitrary paths, failing with something as >simple as "dirX/dirY/dirZ". > >I solved this with a trivial shell exec to return the "highest level" >directory component, but this didn't seem to be the "Ant way". If >anyone has any better ideas, I'd be very interested in hearing them. > >Thanks!! I'm stumped! > >--Cyril > >ps. I'm using Ant 1.6.2. The base directories are created as a >result of an <ftp> get operation embedded in my build.xml. The >problem would go away if <ftp> allowed the local path to be different >from the remote. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: heatherfrank@example.org >For additional commands, e-mail: heatherfrank@example.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 16:15:45 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 21034 invoked from network); 1 Mar 2005 16:15:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 16:15:45 -0000 Received: (qmail 22423 invoked by uid 500); 1 Mar 2005 16:15:37 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 22375 invoked by uid 500); 1 Mar 2005 16:15:36 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 22360 invoked by uid 99); 1 Mar 2005 16:15:36 -0000 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=FORGED_RCVD_HELO,HTML_MESSAGE,HTML_SHORT_COMMENT X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mailhost.bordersgroupinc.com (HELO corpex01.bgpcorp.net) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 08:15:36 -0800 Received: from corpex03.bgpcorp.net ([83.161.120.155]) by corpex01.bgpcorp.net with Microsoft SMTPSVC(5.0.2195.6713); Tue, 1 Mar 2005 11:15:33 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C51E79.E5194408" Subject: javac task to include properties file Date: Tue, 1 Mar 2005 11:15:33 -0500 Message-ID: <heatherfrank@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: javac task to include properties file Thread-Index: AcUeee0grIQofQHmS42a/lMgNwDKrA== From: "Michael Wang \(IT\)" <heatherfrank@example.org> To: "Ant Users List" <heatherfrank@example.org> X-OriginalArrivalTime: 01 Mar 2005 16:15:33.0748 (UTC) FILETIME=[E556E340:01C51E79] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C51E79.E5194408 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable any arg to include those properties which will copy them from srcdir to = targetdir? thanks. ------_=_NextPart_001_01C51E79.E5194408-- From heatherfrank@example.org Tue Mar 01 16:16:14 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 21465 invoked from network); 1 Mar 2005 16:16:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 16:16:13 -0000 Received: (qmail 25311 invoked by uid 500); 1 Mar 2005 16:16:04 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 25273 invoked by uid 500); 1 Mar 2005 16:16:04 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 25260 invoked by uid 99); 1 Mar 2005 16:16:04 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ns1.irishbroadband.ie (HELO ns1.irishbroadband.ie) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 08:16:02 -0800 Received: from tom (unknown [83.161.120.155]) by ns1.irishbroadband.ie (Postfix) with ESMTP id 7509512EE73 for <heatherfrank@example.org>; Tue, 1 Mar 2005 16:15:58 +0000 (GMT) Received: from longie by tom with local (Exim 4.34) id 1D69zd-0008Uc-Os for heatherfrank@example.org; Tue, 01 Mar 2005 16:13:05 +0000 Date: Tue, 1 Mar 2005 16:13:04 +0000 From: Longie <heatherfrank@example.org> To: heatherfrank@example.org Subject: Antelope Message-ID: <heatherfrank@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.6+20040722i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, Just wondering what peoples opinion are on using Antelope - any problems or improvements. Basically anything you can think of as i am trying to write up a report on its adv/disadv. Thank You, John -- ------------------------ U: http://www.dingleonline.com E: heatherfrank@example.org --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 16:29:10 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 31570 invoked from network); 1 Mar 2005 16:29:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 16:29:10 -0000 Received: (qmail 61354 invoked by uid 500); 1 Mar 2005 16:28:58 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 61284 invoked by uid 500); 1 Mar 2005 16:28:57 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 61232 invoked by uid 99); 1 Mar 2005 16:28:57 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from echo1.fast-servers.net (HELO echo1.fast-servers.net) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 08:28:57 -0800 Received: from alchemista by echo1.fast-servers.net with local (Exim 4.44) id 1D6AEu-0002Eh-8r for heatherfrank@example.org; Tue, 01 Mar 2005 11:28:52 -0500 From: "OpenLDAP User" <heatherfrank@example.org> To: heatherfrank@example.org Subject: <copy> task slow when copying *FROM* a mapped drive X-Mailer: NeoMail 1.26 X-IPAddress: 83.161.120.155 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-Id: <heatherfrank@example.org> Date: Tue, 01 Mar 2005 11:28:52 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - echo1.fast-servers.net X-AntiAbuse: Original Domain - ant.apache.org X-AntiAbuse: Originator/Caller UID/GID - [32015 32017] / [47 12] X-AntiAbuse: Sender Address Domain - dealraider.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, There was a recent post about using the <modified> selector when copying *TO* a mapped drive, to speed up the task. However, I have the reverse situation - I'm building *FROM* a mapped drive, and copying the files to a local directory if they've changed. This operation is incredibly slow. I'm trying to copy hundreds of files that are images / XML files. They rarely change. However, Ant takes a long time to determine whether they have been updated or not, even if it does not end up copying any of the files. I've tried using the modify selector here too, but it's just as slow because it does the hash check on the mapped drive. I also tried forcing an overwrite so that it would always copy the files rather than do the date check. This was actually slightly faster, but still horrendously slow. Is there any way to speed up the copy operation when copying FROM a mapped drive, or are all mechanisms slow on a mapped drive for determining whether the copy needs to happen? The only other option I can think of is to pull the copy operations out of the build path, and require the developer to do the copy manually when it's necessary. Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 16:41:19 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 37719 invoked from network); 1 Mar 2005 16:41:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 16:41:18 -0000 Received: (qmail 99113 invoked by uid 500); 1 Mar 2005 16:41:12 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 99077 invoked by uid 500); 1 Mar 2005 16:41:12 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 99062 invoked by uid 99); 1 Mar 2005 16:41:12 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_30_40,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from e31.co.us.ibm.com (HELO e31.co.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 08:41:11 -0800 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [83.161.120.155]) by e31.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j21Gf8ua193488 for <heatherfrank@example.org>; Tue, 1 Mar 2005 11:41:08 -0500 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [83.161.120.155]) by d03relay05.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j21Gf8vW186362 for <heatherfrank@example.org>; Tue, 1 Mar 2005 09:41:08 -0700 Received: from d03av01.boulder.ibm.com (loopback [83.161.120.155]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j21Gf8pw012593 for <heatherfrank@example.org>; Tue, 1 Mar 2005 09:41:08 -0700 Received: from d03nm119.boulder.ibm.com (d03nm119.boulder.ibm.com [83.161.120.155]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j21Gf8Lj012588 for <heatherfrank@example.org>; Tue, 1 Mar 2005 09:41:08 -0700 In-Reply-To: <heatherfrank@example.org> To: "Ant Users List" <heatherfrank@example.org> MIME-Version: 1.0 Subject: Re: javac task to include properties file X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 From: Jeffrey E Care <heatherfrank@example.org> Message-ID: <heatherfrank@example.org> Date: Tue, 1 Mar 2005 09:41:06 -0700 X-MIMETrack: Serialize by Router on D03NM119/03/M/IBM(Release 6.53HF294 | January 28, 2005) at 03/01/2005 09:41:07, Serialize complete at 03/01/2005 09:41:07 Content-Type: multipart/alternative; boundary="=_alternative 005BA6FE85256FB7_=" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=_alternative 005BA6FE85256FB7_= Content-Type: text/plain; charset="US-ASCII" AFAIK javac ignores non-Java files (you can see this in verbose or debug mode). If you need to have copies of other file types in your "classes" directory then the obvious solution would be to copy them. Implementation left as an exercise for the reader. JEC -- Jeffrey E. Care (heatherfrank@example.org) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis "Michael Wang \(IT\)" <heatherfrank@example.org> wrote on 03/01/2005 11:15:33 AM: > any arg to include those properties which will copy them from srcdir > to targetdir? thanks. --=_alternative 005BA6FE85256FB7_=-- From heatherfrank@example.org Tue Mar 01 18:04:56 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 78302 invoked from network); 1 Mar 2005 18:04:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 18:04:55 -0000 Received: (qmail 7085 invoked by uid 500); 1 Mar 2005 18:04:51 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 7032 invoked by uid 500); 1 Mar 2005 18:04:51 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 7018 invoked by uid 99); 1 Mar 2005 18:04:51 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web52907.mail.yahoo.com (HELO web52907.mail.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 01 Mar 2005 10:04:49 -0800 Received: (qmail 58977 invoked by uid 60001); 1 Mar 2005 18:04:47 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=yGVEg6rtyO7RgOsZPrcbi+SNoyiGA6Z7YE0xVB+UGmP8qizrfzfrJh67m9b8gxm2ccadzKUyQzP2jBSy1dc3tlPbRQD8xQ2dOlVMvhvJMa8yXAqdXDT3FF8HNtlnhb0n7TPC/66Z+QguWfXrf6lUZrJ39NJwnUs3hIr+bZeSM/Y= ; Message-ID: <heatherfrank@example.org> Received: from [83.161.120.155] by web52907.mail.yahoo.com via HTTP; Tue, 01 Mar 2005 10:04:46 PST Date: Tue, 1 Mar 2005 10:04:46 -0800 (PST) From: Ivan Ivanov <heatherfrank@example.org> Subject: Re: javac task to include properties file To: Ant Users List <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --- Jeffrey E Care <heatherfrank@example.org> wrote: > AFAIK javac ignores non-Java files (you can see this > in verbose or debug > mode). If you need to have copies of other file > types in your "classes" > directory then the obvious solution would be to copy > them. > > Implementation left as an exercise for the reader. <target name="compile" depends="copyProps, -init"> <javac srcdir="${project.src}" destdir="${project.classes}" classpath="..."> </target> <target name="copyProps" depends="-init"> <copy todir="${project.classes}"> <fileset dir="${project.src}"> <include name="**/*.properties"> </fileset> </copy> </target> It is a useful exercise :)) One of my very first errors when I started mastering Ant was that in compile target I did an <antcall> to copyProps instead of depending on it. As the build xml grew bigger, it ended to copying the properties file several times due to poor design and lots of <antcall>s. It is also worth noting that when an i18n'ed application is developed copyProps target is a possble place for doing <native2ascii> transformation. Regards Ivan > > JEC > -- > Jeffrey E. Care (heatherfrank@example.org) > WebSphere Build SWAT Team Lead > WebSphere Build Tooling Lead (Project Mantis) > https://w3.opensource.ibm.com/projects/mantis > > > "Michael Wang \(IT\)" <heatherfrank@example.org> > wrote on 03/01/2005 > 11:15:33 AM: > > > any arg to include those properties which will > copy them from srcdir > > to targetdir? thanks. > __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 18:40:41 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 6296 invoked from network); 1 Mar 2005 18:40:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 18:40:40 -0000 Received: (qmail 6277 invoked by uid 500); 1 Mar 2005 18:40:37 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 6209 invoked by uid 500); 1 Mar 2005 18:40:37 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 6170 invoked by uid 99); 1 Mar 2005 18:40:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from serio.al.rim.or.jp (HELO serio.al.rim.or.jp) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 10:40:34 -0800 Received: from mail4 by serio.al.rim.or.jp (3.7W/HMX-13) id DAA06374; Wed, 2 Mar 2005 03:40:28 +0900 (JST) Received: from localhost (ppp002.pas.jp.rim.or.jp [83.161.120.155]) by mail4 (8.9.3/3.7W) id DAA12001; Wed, 2 Mar 2005 03:39:20 +0900 (JST) Date: Wed, 02 Mar 2005 03:40:16 +0900 (JST) Message-Id: <heatherfrank@example.org> To: heatherfrank@example.org, heatherfrank@example.org Subject: Re: javac task From: Yuji Yamano <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> References: <heatherfrank@example.org> <heatherfrank@example.org> X-Mailer: Mew version 3.1.53 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Shigemoto FUJIKURA <heatherfrank@example.org> writes: > on the other hand, javac executed by exec task loads correct Zzz > class from jar file. It seems to be a class path issue. Could you try to unset CLASSPATH environment variable and run the javac task? -- Yuji Yamano <heatherfrank@example.org> --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 19:10:47 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 20327 invoked from network); 1 Mar 2005 19:10:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 19:10:47 -0000 Received: (qmail 69796 invoked by uid 500); 1 Mar 2005 19:10:40 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 69755 invoked by uid 500); 1 Mar 2005 19:10:40 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 69735 invoked by uid 99); 1 Mar 2005 19:10:39 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from astra.telenet-ops.be (HELO astra.telenet-ops.be) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 11:10:38 -0800 Received: from localhost (localhost.localdomain [83.161.120.155]) by astra.telenet-ops.be (Postfix) with SMTP id 031A43281E8 for <heatherfrank@example.org>; Tue, 1 Mar 2005 20:10:36 +0100 (MET) Received: from pc01 (d54C2DB2E.access.telenet.be [83.161.120.155]) by astra.telenet-ops.be (Postfix) with ESMTP id 2E56132807B for <heatherfrank@example.org>; Tue, 1 Mar 2005 20:10:35 +0100 (MET) Reply-To: <heatherfrank@example.org> From: "Willy De Waele" <heatherfrank@example.org> To: <heatherfrank@example.org> Subject: Sub-Target Date: Tue, 1 Mar 2005 20:10:38 +0100 Organization: N/A Message-ID: <002401c51e92$5b224c00$2edbc254@pc01> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Importance: Normal X-FID: PLAINTXT-NONE-0000-0000-000000000000 X-ImMailer: IncrediMail (3001509) IMItemGuid: {C0ED3306-B1F9-4EF2-B535-4130A92A91E1} X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, How can I call a target in a target? Example: <target name="target1" ...> ... </target> <target name="target2" ...> ---> how calling 'target1' here? </target> Please some help TIA Willy --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 19:31:37 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 33434 invoked from network); 1 Mar 2005 19:31:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 19:31:36 -0000 Received: (qmail 27328 invoked by uid 500); 1 Mar 2005 19:31:30 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 27181 invoked by uid 500); 1 Mar 2005 19:31:29 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 27164 invoked by uid 99); 1 Mar 2005 19:31:29 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_60_70,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of heatherfrank@example.org designates 83.161.120.155 as permitted sender) Received: from e32.co.us.ibm.com (HELO e32.co.us.ibm.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 11:31:28 -0800 Received: from westrelay01.boulder.ibm.com (westrelay01.boulder.ibm.com [83.161.120.155]) by e32.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j21JVQ5j685136 for <heatherfrank@example.org>; Tue, 1 Mar 2005 14:31:26 -0500 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [83.161.120.155]) by westrelay01.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j21JVQoc130722 for <heatherfrank@example.org>; Tue, 1 Mar 2005 12:31:26 -0700 Received: from d03av01.boulder.ibm.com (loopback [83.161.120.155]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j21JVPaJ010807 for <heatherfrank@example.org>; Tue, 1 Mar 2005 12:31:25 -0700 Received: from d03mc015.boulder.ibm.com (d03mc015.boulder.ibm.com [83.161.120.155]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j21JVPc6010802 for <heatherfrank@example.org>; Tue, 1 Mar 2005 12:31:25 -0700 In-Reply-To: <002401c51e92$5b224c00$2edbc254@pc01> To: "Ant Users List" <heatherfrank@example.org> MIME-Version: 1.0 Subject: Re: Sub-Target X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 From: Jeffrey E Care <heatherfrank@example.org> Message-ID: <heatherfrank@example.org> Date: Tue, 1 Mar 2005 14:31:16 -0500 X-MIMETrack: Serialize by Router on D03MC015/03/M/IBM(Release 6.51HF338 | June 21, 2004) at 03/01/2005 12:31:25, Serialize complete at 03/01/2005 12:31:25 Content-Type: multipart/alternative; boundary="=_alternative 006B3C4385256FB7_=" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=_alternative 006B3C4385256FB7_= Content-Type: text/plain; charset="US-ASCII" Even a _cursory_ reading of the Ant manual should reveal this. -- Jeffrey E. Care (heatherfrank@example.org) WebSphere Build SWAT Team Lead WebSphere Build Tooling Lead (Project Mantis) https://w3.opensource.ibm.com/projects/mantis "Willy De Waele" <heatherfrank@example.org> 03/01/2005 02:10 PM Please respond to "Ant Users List" To <heatherfrank@example.org> cc Subject Sub-Target Hi, How can I call a target in a target? Example: <target name="target1" ...> ... </target> <target name="target2" ...> ---> how calling 'target1' here? </target> Please some help TIA Willy --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org --=_alternative 006B3C4385256FB7_=-- From heatherfrank@example.org Tue Mar 01 19:32:04 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 33877 invoked from network); 1 Mar 2005 19:32:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 19:32:03 -0000 Received: (qmail 29687 invoked by uid 500); 1 Mar 2005 19:31:58 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 29641 invoked by uid 500); 1 Mar 2005 19:31:57 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 29627 invoked by uid 99); 1 Mar 2005 19:31:57 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from echo1.fast-servers.net (HELO echo1.fast-servers.net) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 11:31:56 -0800 Received: from alchemista by echo1.fast-servers.net with local (Exim 4.44) id 1D6D5y-0005jA-Vq; Tue, 01 Mar 2005 14:31:50 -0500 From: "OpenLDAP User" <heatherfrank@example.org> To: <heatherfrank@example.org>,<heatherfrank@example.org> Subject: Re: Sub-Target X-Mailer: NeoMail 1.26 X-IPAddress: 83.161.120.155 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-Id: <heatherfrank@example.org> Date: Tue, 01 Mar 2005 14:31:50 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - echo1.fast-servers.net X-AntiAbuse: Original Domain - ant.apache.org X-AntiAbuse: Originator/Caller UID/GID - [32015 32017] / [47 12] X-AntiAbuse: Sender Address Domain - dealraider.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 500/1000/N You can use antcall Or, better, you can do this with dependencies. If target2 depends on target1 being executed first, then add target1 to the depends list attribute of target2. > Hi, > How can I call a target in a target? > Example: > <target name="target1" ...> > ... > </target> > <target name="target2" ...> > ---> how calling 'target1' here? > </target> > Please some help > TIA > Willy > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: heatherfrank@example.org > For additional commands, e-mail: heatherfrank@example.org > > > -- --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 19:45:37 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 42378 invoked from network); 1 Mar 2005 19:45:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 19:45:37 -0000 Received: (qmail 71482 invoked by uid 500); 1 Mar 2005 19:45:32 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 71446 invoked by uid 500); 1 Mar 2005 19:45:32 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 71433 invoked by uid 99); 1 Mar 2005 19:45:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from asav.mercuryinsurance.com (HELO asav.mercuryinsurance.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 11:45:30 -0800 Received: from brexchfe02.int.mgc.com ([83.161.120.155]) by asav.mercuryinsurance.com (8.12.11/8.12.10) with ESMTP id j21Jd4w0007713 for <heatherfrank@example.org>; Tue, 1 Mar 2005 11:39:40 -0800 Received: from exchange6.int.mgc.com ([83.161.120.155]) by brexchfe02.int.mgc.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 1 Mar 2005 11:44:19 -0800 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: Writing out classpath from <javac> element Date: Tue, 1 Mar 2005 11:40:20 -0800 Message-ID: <heatherfrank@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Writing out classpath from <javac> element thread-index: AcUelVmTSMo4d4YtTFmEwknvI21lnwAAOv4w From: "Daniel Kalcevich" <heatherfrank@example.org> To: "Ant Users List" <heatherfrank@example.org> X-OriginalArrivalTime: 01 Mar 2005 19:44:19.0412 (UTC) FILETIME=[0F378940:01C51E97] X-mercuryinsurance-com-ASAV-Information: Please contact AffantCommunication for more information X-mercuryinsurance-com-ASAV: Found to be clean X-mercuryinsurance-com-ASAV-SCheck: not spam, SpamAssassin (Disabled due to 20 consecutive timeouts) X-ASAV-From: heatherfrank@example.org X-ASAV-To: heatherfrank@example.org X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I want to know if there is anyway I can write out what the <javac> element is using for it's classpath. I need to debug to see if all my .jar files exist or not. The element I have is: <javac srcdir=3D"${tmp.build.src.dir}" destdir=3D"${tmp.build.compiled.dir}" debug=3D"${debug}" deprecation=3D"${deprecation}" optimize=3D"${optimize}" target=3D"${target}"> <classpath> =09 <fileset dir=3D"${webcontent.web-inf.lib.dir}"> <include name=3D"*.jar"/> </fileset> </classpath> </javac> Any ideas? Thanks. Daniel This email and/or any files or attachments transmitted with it are = confidential and intended solely for the use of the individual or entity = to whom they are addressed, and may contain information that is = privileged, confidential and exempt from disclosure under applicable = law. If you are not the intended recipient, or the employee or agent = responsible for delivering the message to the intended recipient, you = are hereby notified that any dissemination, distribution or copying of = this e-mail and/or any files or attachments transmitted with it is = strictly forbidden. If you have received this email in error, please = delete the e-mail and/or any files or attachments, and also notify the = system manager (heatherfrank@example.org) of the error. Please = note that any views or opinions presented in this email are solely those = of the author and do not necessarily represent those of the company. = Finally, the recipient should check this email and any attachments for = the presence of viruses. The company accepts no liability for any damage = caused by any virus transmitted by this email and/or any files or = attachments transmitted with it. --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 20:08:23 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 54915 invoked from network); 1 Mar 2005 20:08:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 20:08:23 -0000 Received: (qmail 18062 invoked by uid 500); 1 Mar 2005 20:08:18 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 18028 invoked by uid 500); 1 Mar 2005 20:08:18 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 18006 invoked by uid 99); 1 Mar 2005 20:08:18 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from echo1.fast-servers.net (HELO echo1.fast-servers.net) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 12:08:16 -0800 Received: from alchemista by echo1.fast-servers.net with local (Exim 4.44) id 1D6Df9-0007oG-9G; Tue, 01 Mar 2005 15:08:11 -0500 From: "OpenLDAP User" <heatherfrank@example.org> To: "Ant Users List" <heatherfrank@example.org>,"Ant Users List" <heatherfrank@example.org> Subject: Re: Writing out classpath from <javac> element X-Mailer: NeoMail 1.26 X-IPAddress: 83.161.120.155 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-Id: <heatherfrank@example.org> Date: Tue, 01 Mar 2005 15:08:11 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - echo1.fast-servers.net X-AntiAbuse: Original Domain - ant.apache.org X-AntiAbuse: Originator/Caller UID/GID - [32015 32017] / [47 12] X-AntiAbuse: Sender Address Domain - dealraider.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Make the classpath a path reference that is declared at the top of the build file. Then, create a property that has the value as the classpath. This will cause the property to be set with a string representation of the path. You can then echo that property. > I want to know if there is anyway I can write out what the <javac> > element is using for it's classpath. I need to debug to see if all my > .jar files exist or not. The element I have is: > > <javac srcdir="${tmp.build.src.dir}" > destdir="${tmp.build.compiled.dir}" > debug="${debug}" > deprecation="${deprecation}" > optimize="${optimize}" > target="${target}"> > <classpath> > > <fileset dir="${webcontent.web-inf.lib.dir}"> > <include name="*.jar"/> > </fileset> > </classpath> > </javac> > > Any ideas? Thanks. > > Daniel > > > This email and/or any files or attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail and/or any files or attachments transmitted with it is strictly forbidden. If you have received this email in error, please delete the e-mail and/or any files or attachments, and also notify the system manager (heatherfrank@example.org) of the error. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email and/or any files or attachments transmitted with it. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: heatherfrank@example.org > For additional commands, e-mail: heatherfrank@example.org > > > -- --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 20:33:38 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 93152 invoked from network); 1 Mar 2005 20:33:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 20:33:37 -0000 Received: (qmail 64846 invoked by uid 500); 1 Mar 2005 20:33:24 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 63955 invoked by uid 500); 1 Mar 2005 20:33:21 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 63942 invoked by uid 99); 1 Mar 2005 20:33:21 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web13803.mail.yahoo.com (HELO web13803.mail.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 01 Mar 2005 12:33:20 -0800 Received: (qmail 46920 invoked by uid 60001); 1 Mar 2005 20:33:18 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=6o4FscxpTdMIbn44am3Q7UHiyflTMdp3P0bw4sKrwT1dqKhumgOs3KP2gsEcURQJjSJkYqVm1iWXqPvDJGQYPjypvNOm0X7xhT59v/rfIAcaqp2e672mUgRyNIn51gAXEXGkHR+ZskVv9mGV8qh+6aY51l9f9Kz/nVgkvLIOVZw= ; Message-ID: <heatherfrank@example.org> Received: from [83.161.120.155] by web13803.mail.yahoo.com via HTTP; Tue, 01 Mar 2005 12:33:17 PST Date: Tue, 1 Mar 2005 12:33:17 -0800 (PST) From: D Sledge <heatherfrank@example.org> Subject: Problem Manipulating a Jar File To: heatherfrank@example.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N First the basics: Ant v1.6.2 JRE v1.4.2_01 OS Windows XP Next the build file: <project name="jits" default="clean" basedir="."> <target name="sign"> <signjar jar="some.jar" keystore=".keystore" alias="alias" storepass="storepass" keypass="keypass"/> </target> <!-- Clean up crew --> <target name="clean"> <delete> <fileset dir="${basedir}" includes="some.jar"/> </delete> </target> </project> Now, the problem: I get an error anytime I try to manipulate the file "some.jar". When I run the signjar task, I get the following output: sign: [signjar] Signing JAR: C:\path\to\some.jar [signjar] jarsigner: attempt to rename C:\path\to\some.jar to C:\path\to\some.jar.orig failed BUILD FAILED C:\path\to\build.xml:7: exec returned: 1 And, when I run the delete task, I get the following: clean: [delete] Deleting 1 files from C:\path\to BUILD FAILED C:\path\to\build.xml:12: Unable to delete file C:\path\to\some.jar __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 21:29:48 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 32463 invoked from network); 1 Mar 2005 21:29:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 21:29:47 -0000 Received: (qmail 70394 invoked by uid 500); 1 Mar 2005 21:29:42 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 70358 invoked by uid 500); 1 Mar 2005 21:29:42 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 70342 invoked by uid 99); 1 Mar 2005 21:29:41 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web13808.mail.yahoo.com (HELO web13808.mail.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 01 Mar 2005 13:29:40 -0800 Received: (qmail 9814 invoked by uid 60001); 1 Mar 2005 21:29:38 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=n5H/aGgtwZsb20HknJy9/9W9O/sCcJNcwuVdiHBYy4yM0ManEKgzB91+3TBZjcn+Y471Kpm6doZcfa579k5dXFEZTv3+e03LMBKhNp7bCla44/NDcdC7+gQ31Enq/3hvnbQP0q5EL13My0+JrA/PtypFyviCAaQpRG31Gu4PqYs= ; Message-ID: <heatherfrank@example.org> Received: from [83.161.120.155] by web13808.mail.yahoo.com via HTTP; Tue, 01 Mar 2005 13:29:38 PST Date: Tue, 1 Mar 2005 13:29:38 -0800 (PST) From: D Sledge <heatherfrank@example.org> Subject: Problem Manipulating a Jar File -- P.S. To: Ant Users List <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Just a little more info on the problem; ant has no problem reading the file or creating some.jar.sig from it, so I checked the permissions on the file and made sure I had read and write permissions on the file. Any light that can be shed on the problem would be appreciated. Thanks, D Sledge --- D Sledge <heatherfrank@example.org> wrote: > First the basics: > > Ant v1.6.2 > JRE v1.4.2_01 > OS Windows XP > > Next the build file: > > <project name="jits" default="clean" basedir="."> > <target name="sign"> > <signjar jar="some.jar" keystore=".keystore" > alias="alias" storepass="storepass" keypass="keypass"/> > </target> > > <!-- Clean up crew --> > <target name="clean"> > <delete> > <fileset dir="${basedir}" includes="some.jar"/> > </delete> > </target> > </project> > > Now, the problem: I get an error anytime I try to manipulate the file "some.jar". When I run > the > signjar task, I get the following output: > > sign: > [signjar] Signing JAR: C:\path\to\some.jar > [signjar] jarsigner: attempt to rename C:\path\to\some.jar to C:\path\to\some.jar.orig failed > > BUILD FAILED > C:\path\to\build.xml:7: exec returned: 1 > > And, when I run the delete task, I get the following: > > clean: > [delete] Deleting 1 files from C:\path\to > > BUILD FAILED > C:\path\to\build.xml:12: Unable to delete file C:\path\to\some.jar __________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 21:41:12 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 38767 invoked from network); 1 Mar 2005 21:41:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 21:41:12 -0000 Received: (qmail 90659 invoked by uid 500); 1 Mar 2005 21:41:06 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 90617 invoked by uid 500); 1 Mar 2005 21:41:06 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 90604 invoked by uid 99); 1 Mar 2005 21:41:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO mail.mdli.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 13:40:59 -0800 Received: from exch-sl02.mdli.com (exch-sl02.mdli.com [83.161.120.155]) by mail.mdli.com (Postfix) with ESMTP id 04E68B5EB9 for <heatherfrank@example.org>; Tue, 1 Mar 2005 13:39:37 -0800 (PST) Received: from [83.161.120.155] (83.161.120.155 [83.161.120.155]) by exch-sl02.mdli.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id FZB3FCFV; Tue, 1 Mar 2005 13:39:36 -0800 Message-ID: <heatherfrank@example.org> Date: Tue, 01 Mar 2005 13:39:32 -0800 X-Sybari-Trust: 0cc13882 29743b25 d72cb15b 0000013d From: "Alexey N. Solofnenko" <heatherfrank@example.org> User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050301) MIME-Version: 1.0 To: Ant Users List <heatherfrank@example.org> Subject: Re: Problem Manipulating a Jar File -- P.S. References: <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It can be used by some process (maybe by ANT itself - there was a discussion that it can load all jar files in the current directory). Trying creating it in a different folder. - Alexey. D Sledge wrote: >Just a little more info on the problem; ant has no problem reading the file or creating >some.jar.sig from it, so I checked the permissions on the file and made sure I had read and write >permissions on the file. Any light that can be shed on the problem would be appreciated. > >Thanks, > >D Sledge > > > -- ------------------------------------------------------------------------ / Alexey N. Solofnenko home: http://trelony.cjb.net/ / --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 22:11:03 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 50878 invoked from network); 1 Mar 2005 22:11:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 22:11:02 -0000 Received: (qmail 47855 invoked by uid 500); 1 Mar 2005 22:10:50 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 47155 invoked by uid 500); 1 Mar 2005 22:10:48 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 47141 invoked by uid 99); 1 Mar 2005 22:10:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from lapis.wpds.com (HELO lapis.wpds.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 14:10:46 -0800 Received: from wpdslajolla.unigold (unverified [83.161.120.155]) by lapis.wpds.com (SurgeMail 2.1c7) with ESMTP id 1783605 for <heatherfrank@example.org>; Tue, 01 Mar 2005 14:14:57 -0800 Received: by localhost with Internet Mail Service (5.5.2653.19) id <F1BRKNB3>; Tue, 1 Mar 2005 14:08:55 -0800 Message-ID: <EC41DD8A52BBD7118FA800A0C9E56BB217978D@localhost> From: "Shatzer, Larry" <heatherfrank@example.org> To: "'heatherfrank@example.org'" <heatherfrank@example.org> Subject: setLevel on echo task in JavaScript Date: Tue, 1 Mar 2005 14:08:45 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Server: High Performance Mail Server - http://surgemail.com X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have this javascript: echo = project.createTask("echo"); echo.setLevel("info"); echo.setMessage("test message"); echo.perform(); It fails with this error: org.mozilla.javascript.EvaluatorException: Can't find method org.apache.tools.ant.taskdefs.Echo.setLevel(string). Any idea how I can call setLevel on the echo task via JavaScript? --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 22:13:59 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 52207 invoked from network); 1 Mar 2005 22:13:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 22:13:58 -0000 Received: (qmail 57957 invoked by uid 500); 1 Mar 2005 22:13:52 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 57912 invoked by uid 500); 1 Mar 2005 22:13:52 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 57899 invoked by uid 99); 1 Mar 2005 22:13:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from junior.lgc.com (HELO junior.lgc.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 14:13:50 -0800 Received: from lgchvw01.landmark.lgc.com (lgchvw01.lgc.com [83.161.120.155]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id j21MDlu29483 for <heatherfrank@example.org>; Tue, 1 Mar 2005 16:13:47 -0600 (CST) Received: from 83.161.120.155 by lgchvw01.landmark.lgc.com (InterScan E-Mail VirusWall NT); Tue, 01 Mar 2005 16:13:42 -0600 Received: from HOUEXCH903.landmark.lgc.com (houexch903 [83.161.120.155]) by junior.lgc.com (8.11.7/8.11.3) with ESMTP id j21MDgN29462 for <heatherfrank@example.org>; Tue, 1 Mar 2005 16:13:42 -0600 (CST) Received: from HOUEXCH902.landmark.lgc.com ([83.161.120.155]) by HOUEXCH903.landmark.lgc.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 1 Mar 2005 16:13:36 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: setLevel on echo task in JavaScript Date: Tue, 1 Mar 2005 16:13:36 -0600 Message-ID: <heatherfrank@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: setLevel on echo task in JavaScript Thread-Index: AcUeq41VMare75kKTaGQCYKmZ8olLQAAC25w From: "Dominique Devienne" <heatherfrank@example.org> To: "Ant Users List" <heatherfrank@example.org> X-OriginalArrivalTime: 01 Mar 2005 22:13:36.0683 (UTC) FILETIME=[EA2A9FB0:01C51EAB] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > From: Shatzer, Larry [mailto:heatherfrank@example.org] >=20 > I have this javascript: >=20 > echo =3D project.createTask("echo"); > echo.setLevel("info"); > echo.setMessage("test message"); > echo.perform(); >=20 > It fails with this error: >=20 > org.mozilla.javascript.EvaluatorException: Can't find method > org.apache.tools.ant.taskdefs.Echo.setLevel(string). >=20 > Any idea how I can call setLevel on the echo task via JavaScript? setLevel probably takes an EnumeratedAttribute-derived type, not a String. Lookup the code to find out which class to 'new', and call setName("info") on this enum instance, prior to send it to echo. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 22:24:24 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 56162 invoked from network); 1 Mar 2005 22:24:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 22:24:23 -0000 Received: (qmail 77324 invoked by uid 500); 1 Mar 2005 22:24:17 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 77283 invoked by uid 500); 1 Mar 2005 22:24:17 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 77269 invoked by uid 99); 1 Mar 2005 22:24:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO mail.mdli.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 14:24:12 -0800 Received: from exch-sl02.mdli.com (exch-sl02.mdli.com [83.161.120.155]) by mail.mdli.com (Postfix) with ESMTP id F22A0B5EBD for <heatherfrank@example.org>; Tue, 1 Mar 2005 14:22:49 -0800 (PST) Received: from [83.161.120.155] (83.161.120.155 [83.161.120.155]) by exch-sl02.mdli.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id FZB3FCMR; Tue, 1 Mar 2005 14:22:49 -0800 Message-ID: <heatherfrank@example.org> Date: Tue, 01 Mar 2005 14:22:45 -0800 X-Sybari-Trust: 7bb72937 29743b25 d72cb15b 0000013d From: "Alexey N. Solofnenko" <heatherfrank@example.org> User-Agent: Mozilla Thunderbird 1.0+ (Windows/20050301) MIME-Version: 1.0 To: Ant Users List <heatherfrank@example.org> Subject: Re: setLevel on echo task in JavaScript References: <heatherfrank@example.org> In-Reply-To: <heatherfrank@example.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It is Echo.EchoLevel and the method is setValue(). - Alexey. Dominique Devienne wrote: >>From: Shatzer, Larry [mailto:heatherfrank@example.org] >> >>I have this javascript: >> >>echo = project.createTask("echo"); >>echo.setLevel("info"); >>echo.setMessage("test message"); >>echo.perform(); >> >>It fails with this error: >> >>org.mozilla.javascript.EvaluatorException: Can't find method >>org.apache.tools.ant.taskdefs.Echo.setLevel(string). >> >>Any idea how I can call setLevel on the echo task via JavaScript? >> >> > >setLevel probably takes an EnumeratedAttribute-derived type, not >a String. Lookup the code to find out which class to 'new', and call >setName("info") on this enum instance, prior to send it to echo. > >--DD > >--------------------------------------------------------------------- >To unsubscribe, e-mail: heatherfrank@example.org >For additional commands, e-mail: heatherfrank@example.org > > -- ------------------------------------------------------------------------ / Alexey N. Solofnenko MDL Information Systems, Inc. work: 442-873-5642 home: http://trelony.cjb.net/ / --------------------------------------------------------------------- To unsubscribe, e-mail: heatherfrank@example.org For additional commands, e-mail: heatherfrank@example.org From heatherfrank@example.org Tue Mar 01 22:33:49 2005 Return-Path: <heatherfrank@example.org> Delivered-To: heatherfrank@example.org Received: (qmail 60621 invoked from network); 1 Mar 2005 22:33:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Mar 2005 22:33:49 -0000 Received: (qmail 94296 invoked by uid 500); 1 Mar 2005 22:33:44 -0000 Delivered-To: heatherfrank@example.org Received: (qmail 94252 invoked by uid 500); 1 Mar 2005 22:33:44 -0000 Mailing-List: contact heatherfrank@example.org; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:heatherfrank@example.org> List-Subscribe: <mailto:heatherfrank@example.org> List-Help: <mailto:heatherfrank@example.org> List-Post: <mailto:heatherfrank@example.org> List-Id: "Ant Users List" <user.ant.apache.org> Reply-To: "Ant Users List" <heatherfrank@example.org> Delivered-To: mailing list heatherfrank@example.org Received: (qmail 94239 invoked by uid 99); 1 Mar 2005 22:33:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from junior.lgc.com (HELO junior.lgc.com) (83.161.120.155) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 14:33:43 -0800 Received: from lgchvw01.landmark.lgc.com (lgchvw01.lgc.com [83.161.120.155]) by junior.lgc.com (8.11.7/8.11.3) with SMTP id j21MXfu02527 for <heatherfrank@example.org>; Tue, 1 Mar 2005 16:33:41 -0600 (CST) Received: from 83.161.120.155 by lgchvw01.landmark.lgc.com (InterScan E-Mail VirusWall NT); Tue, 01 Mar 2005 16:33:36 -0600 Received: from HOUEXCH903.landmark.lgc.com (houexch903 [83.161.120.155]) by junior.lgc.com (8.11.7/8.11.3) with ESMTP id j21MXZN02504 for <heatherfrank@example.org>; Tue, 1 Mar 2005 16:33:35 -0600 (CST) Received: from HOUEXCH902.landmark.lgc.com ([83.161.120.155]) by HOUEXCH903.landmark.lgc.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 1 Mar 2005 16:33:29 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain;
{'source': 'Apache Software Foundation Public Mail Archives'}