Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 51006 invoked from network); 1 Dec 2006 03:53:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2006 03:53:09 -0000 Received: (qmail 16264 invoked by uid 500); 1 Dec 2006 03:53:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 16230 invoked by uid 500); 1 Dec 2006 03:53:15 -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 16219 invoked by uid 99); 1 Dec 2006 03:53:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 19:53:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [203.91.201.15] (HELO wip-cdctls-mx1.wipro.com) (203.91.201.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 19:53:02 -0800 Received: from wip-cdctls-mx1.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id C7CD13C408B for ; Fri, 1 Dec 2006 09:19:50 +0530 (IST) Received: from chn-snr-bh2.wipro.com (chn-snr-bh2.wipro.com [10.145.50.92]) by wip-cdctls-mx1.wipro.com (Postfix) with ESMTP id BAC423C4003 for ; Fri, 1 Dec 2006 09:19:50 +0530 (IST) Received: from PNE-HJN-MBX01.wipro.com ([10.111.50.181]) by chn-snr-bh2.wipro.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Dec 2006 09:23:07 +0530 Received: from HJNPNE118625 ([198.152.144.80]) by PNE-HJN-MBX01.wipro.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Dec 2006 09:22:39 +0530 From: "Pritesh Saharey" To: "'Ant Users List'" Subject: RE: Changing Date format Date: Fri, 1 Dec 2006 09:24:57 +0530 Message-ID: <002a01c714fc$77841f10$509098c6@HJNPNE118625> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Thread-Index: AccUk2H72v7wOnR8Tx2CCs7/rmQtJAAZwM2g In-Reply-To: X-OriginalArrivalTime: 01 Dec 2006 03:52:39.0172 (UTC) FILETIME=[25325C40:01C714FC] X-Virus-Checked: Checked by ClamAV on apache.org I had the following library in my path bsf.jar (2.4.0) commons-logging-1.1.jar commons-logging-adapters-1.1.jar Js.jar Still I am getting the following error message: //------- chg-date: [dateConvert] Dec 1, 2006 9:16:45 AM org.apache.bsf.BSFManager exec [dateConvert] SEVERE: Exception : [dateConvert] java.security.PrivilegedActionException: org.apache.bsf.BSFException: JavaScript Error: syntax error (scriptdef_dateConvert#4) [dateConvert] at java.security.AccessController.doPrivileged(Native Method) [dateConvert] at org.apache.bsf.BSFManager.exec(BSFManager.java:491) [dateConvert] at org.apache.tools.ant.util.ScriptRunner.executeScript(ScriptRunner.java:128) [dateConvert] at org.apache.tools.ant.taskdefs.optional.script.ScriptDef.executeScript(Script Def.java:317) [dateConvert] at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDe fBase.java:47) [dateConvert] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [dateConvert] at org.apache.tools.ant.Task.perform(Task.java:364) [dateConvert] at org.apache.tools.ant.Target.execute(Target.java:341) [dateConvert] at org.apache.tools.ant.Target.performTasks(Target.java:369) [dateConvert] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [dateConvert] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [dateConvert] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.j ava:40) [dateConvert] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [dateConvert] at org.apache.tools.ant.Main.runBuild(Main.java:668) [dateConvert] at org.apache.tools.ant.Main.startAnt(Main.java:187) [dateConvert] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) [dateConvert] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) [dateConvert] Caused by: org.apache.bsf.BSFException: JavaScript Error: syntax error (scriptdef_dateConvert#4) [dateConvert] at org.apache.bsf.engines.javascript.JavaScriptEngine.handleError(JavaScriptEng ine.java:195) [dateConvert] at org.apache.bsf.engines.javascript.JavaScriptEngine.eval(JavaScriptEngine.jav a:147) [dateConvert] at org.apache.bsf.util.BSFEngineImpl.exec(BSFEngineImpl.java:141) [dateConvert] at org.apache.bsf.BSFManager$6.run(BSFManager.java:493) [dateConvert] ... 17 more BUILD FAILED D:\AvayaTraining\LFCG\sortdata.xml:27: org.mozilla.javascript.EvaluatorException : syntax error (scriptdef_dateConvert#4) //------- Is this error due to my code, I am not able to get where I am wrong (I am not familiar with JavaScript)? My code looks like this: Sortdata.xml ------------ //*********************************************************************** //*********************************************************************** -----Original Message----- From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com] Sent: Thursday, November 30, 2006 8:51 PM To: Ant Users List Subject: Re: Changing Date format On 11/30/06, Steve Loughran wrote: > Peter Reilly wrote: > > On 11/30/06, Pritesh Saharey wrote: > >> > >> Thanks for quick reply, but when I tried to use the code like this: > >> > >> //---------------------------------------------- > >> //---------------------------------------------- > >> When I tried running my build file, it's giving me logging error > >> > > . > > . > > > >> //------------------------------------------------- > >> BUILD FAILED > >> java.lang.NoClassDefFoundError: > >> org/apache/commons/logging/LogFactory > > > > You are using the new BSF library (2.4.0) For some reason, the BSF > > people have added a new dependence on > > > > commons-logging-1.1.jar, you need to add this jar to the directory > > with bsf.jar > > oh, no, that's the version of commons-logging whose maven dependencies > (that ivy picks up) includes junit and avalon logkit. > > I have nothing against the artifact, but its metadata is wrong., Ok, I meant to say that bsf 2.4.0 now depends on commons-logging. and commons-logging-1.1.jar works for me! Peter > > --------------------------------------------------------------------- > 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 The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. 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. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org