Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Steve Loughran
Morgan Kinne wrote: Thanks Steve. You were correct of course. I was evidently trying to delete files in a directory that didn't exist! Who would have thought that would result in a security related exception. Bad on me for jumping to the conclusion I jumped to. All is working properly now. we

Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Morgan Kinne
Thanks Steve. You were correct of course. I was evidently trying to delete files in a directory that didn't exist! Who would have thought that would result in a security related exception. Bad on me for jumping to the conclusion I jumped to. All is working properly now.

Re: java.security.PrivilegedActionException in Jython scriptdef

2008-10-28 Thread Steve Loughran
Morgan Kinne wrote: Hi, I'm a newbie here and a newbie to Jython and scripting in Ant. In that vein: I've created a scriptdef task which I wrote in Jython. I'm using BSF as the manager. My intent was to delete files within this task. Everything works right up to the point whe

java.security.PrivilegedActionException in Jython scriptdef

2008-10-27 Thread Morgan Kinne
Hi, I'm a newbie here and a newbie to Jython and scripting in Ant. In that vein: I've created a scriptdef task which I wrote in Jython. I'm using BSF as the manager. My intent was to delete files within this task. Everything works right up to the point where a file is to be dele

is broken with Jython in 1.7.1

2008-10-07 Thread ext-simon.steiner
ct.getPr operty('build.errors.total')")) errorsTotal = project.getProperty('build.errors.total') self.setValue(True) Thanks List: ant-dev Subject: is broken with Jython in the recent trunk builds From: "Alexey N. Solofnenko" Date: 2

is broken with Jython in 1.7.1

2008-09-22 Thread ext-simon.steiner
ct.getPr operty('build.errors.total')")) errorsTotal = project.getProperty('build.errors.total') self.setValue(True) Thanks List: ant-dev Subject: is broken with Jython in the recent trunk builds From: "Alexey N. Solofnenko" Date: 2

RE: RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
Antoine, Thanks for the correction and explanation, I'll give it a go. Cheers, Hoos -Original Message- From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] Sent: 10 August 2006 23:24 To: Ant Users List Subject: Re: RE: Calling ant tasks from jython Hello Hussein, the first ve

Re: RE: Calling ant tasks from jython

2006-08-10 Thread Antoine Levy-Lambert
Von: "Hussein Badakhchani" <[EMAIL PROTECTED]> An: "Ant Users List" Betreff: RE: Calling ant tasks from jython > Peter, > > Many thanks for your help, here are my findings: > > In your first example you suggested: > > > import org

RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
dir.execute() Thanks again, you have streamlined my weblogic build process greatly :) Cheers, Hoos -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: 10 August 2006 16:51 To: Ant Users List Subject: Re: Calling ant tasks from jython I normally use project.createTas

RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
That's interesting, you are in-lining Jython in your build script, I don't: I'll try your approach just to see if it works although I'd much rather keep the jython outside of my build.xml in .py files. Perhaps this is a bug. -Original Message- From: Peter R

RE: Calling ant tasks from jython

2006-08-10 Thread LIRA Olavo
Hello everyone, I'm new in here and I know the basic of ANT. I use it for compiling javacard applets. Well my problem is that I would like to know if it is possible with ANT to run the same ANT with multiple different .properties that I pass in my init target? Now I'm using one ANT for ea

Re: Calling ant tasks from jython

2006-08-10 Thread Peter Reilly
t. Does anyone have an example of using an ant task in some custom Java code, this might shed some light on what I need to do. -Original Message- From: Hussein Badakhchani [mailto:[EMAIL PROTECTED] Sent: 10 August 2006 14:38 To: Ant Users List Subject: RE: Calling ant tasks from jyth

Re: Calling ant tasks from jython

2006-08-10 Thread Peter Reilly
6, Hussein Badakhchani <[EMAIL PROTECTED]> wrote: Thanks, your right that was a typo in my message. I still have the error. -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: 10 August 2006 14:32 To: Ant Users List Subject: Re: Calling ant tasks from jython

RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
- From: Hussein Badakhchani [mailto:[EMAIL PROTECTED] Sent: 10 August 2006 14:38 To: Ant Users List Subject: RE: Calling ant tasks from jython Thanks, your right that was a typo in my message. I still have the error. -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: 10

RE: Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
Thanks, your right that was a typo in my message. I still have the error. -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: 10 August 2006 14:32 To: Ant Users List Subject: Re: Calling ant tasks from jython just a quick look: Mkdir.setDir(testDir) should be

Re: Calling ant tasks from jython

2006-08-10 Thread Peter Reilly
just a quick look: Mkdir.setDir(testDir) should be mkdir.setDir(testDir) Peter On 8/10/06, Hussein Badakhchani <[EMAIL PROTECTED]> wrote: Hello, I am calling a jython script from my build.xml file using the script task e.g: I want to use ant tasks from antCallTest.py. W

Calling ant tasks from jython

2006-08-10 Thread Hussein Badakhchani
Hello, I am calling a jython script from my build.xml file using the script task e.g: I want to use ant tasks from antCallTest.py. While I don't seem to have any problems retrieving my projects properties it seems that any call I make to an ant task method requires an extra arg

RE: "import re" with jython

2005-02-28 Thread David Resnick
For the record, here is the very simple solution to the problem: I was trying to use jython.jar without any of the other files that come with Jython. Jython automatically sets as its import path a sub-directory below jython.jar named Lib. This directory needs to hold the Lib dir from the Jython

"import re" with jython

2005-02-24 Thread David Resnick
I'm trying to use the jython re module in ant from a script task. I have added the jython.jar library to my classpath, and can use various function of python. But when I try to import re, I get the following: check: [script] Traceback (innermost last): [script] File "&qu

Re: Java task executing embedded jython fails to find scripting module

2005-01-19 Thread Alexey N. Solofnenko
I have had a similar problem. In my situation I execute ANT preprocessor written in Jython, then ANT itself, then some script within ANT. The problem was that Jython launcher used a single state class and did not reinitialize it when a script is executed from ANT. To fix the problem I had to

Java task executing embedded jython fails to find scripting module

2005-01-19 Thread Karr, David
I'm having an issue which seems to be caused by my Ant configuration, but it's involving some other tools. If you're not familiar with these other tools, either ignore this or try to muddle through it. I'm using WebLogic's WLST tool, which uses Jython (Python interpreter

integrating Jython with JUnit in ANT

2003-06-12 Thread Sebastien Blanc
Hello ! I previously wrote jython tests with PyUnit but this is not well integrated into ANT and the report output is not as good as Junit one, applying a satisfying stylesheet then not really feasible. I made few tries to write jython tests inheriting from junit, generating the .class with

Re: jython

2003-05-28 Thread Stefan Bodewig
On Wed, 28 May 2003, Sebastien Blanc <[EMAIL PROTECTED]> wrote: > when you say server, you mean HTPP server or any kind of server ? Any kind of server whose availability can be tested by connecting to a single socket 8-) In case of a HTTP server, the condition may be better suited. Stefan --