Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 10221 invoked from network); 23 Jul 2007 07:00:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2007 07:00:46 -0000 Received: (qmail 24867 invoked by uid 500); 23 Jul 2007 07:00:39 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 24814 invoked by uid 500); 23 Jul 2007 07:00:39 -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 24803 invoked by uid 99); 23 Jul 2007 07:00:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2007 00:00:38 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.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; Mon, 23 Jul 2007 00:00:36 -0700 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id l6N70B0v029389 for ; Mon, 23 Jul 2007 09:00:11 +0200 Received: from z011034.bk.fin.local ([130.11.7.34]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Mon, 23 Jul 2007 09:00:11 +0200 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="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: random number generator Date: Mon, 23 Jul 2007 09:00:10 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: random number generator Thread-Index: AcfLow7uEVuY6LDVT7Sjj+q4NlVkKQBVAmKw From: To: X-OriginalArrivalTime: 23 Jul 2007 07:00:11.0128 (UTC) FILETIME=[1C8C1780:01C7CCF7] X-Virus-Checked: Checked by ClamAV on apache.org =20 Jan=20 >-----Urspr=FCngliche Nachricht----- >Von: Mario Madunic [mailto:hajduk@imag.net]=20 >Gesendet: Samstag, 21. Juli 2007 16:25 >An: Ant Users List >Betreff: Re: random number generator > >Thank you Gilbert, > >it works like a charm. > >Mario > >Quoting Gilbert Rebhan : > >> Hi, >>=20 >> Mario Madunic wrote: >> > Hi, >> >=20 >> > I'm trying to generate a random number to be used as a=20 >temporary directory >> name >> > through a multi step xslt process. I'm using Ant 1.6.5 and=20 >Java 1.6.0-b105 >>=20 >> > I receive the following error >> >=20 >> > [random] Jul 20, 2007 9:11:27 PM org.apache.bsf.BSFManager exec >> > [random] SEVERE: Exception : >> > [random] java.security.PrivilegedActionException: >> > org.apache.bsf.BSFException: JavaScript Error: Internal Error: >> > org.mozilla.javascript.EcmaError: ReferenceError: "self"=20 >is not defined. >>=20 >>=20 >> if you're already use BSF with >> >>=20 >> >> >> $${myrand} =3D=3D ${myrand} >> >> >>=20 >> main: >> [echo] ${myrand} =3D=3D 718 >> BUILD SUCCESSFUL >> Total time: 1 second >>=20 >> Just put an integer to the Kernel#rand method. >> If you want a floating point number, just use >> rand without (integer) =3D >>=20 >> >>=20 >>=20 >> Regards, Gilbert >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >>=20 >>=20 > > > >--------------------------------------------------------------------- >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