|
From: brian z. <bz...@zi...> - 2001-10-19 13:02:41
|
Phil, I've not tried it, but a couple weeks ago I audited the Ant code just to see what I needed to pull out and make available in Jython. It's on my short list, of course my free time right now is even shorter. I know they do some funky stuff with calling out to 'cmd' on Windows and other such magic, but I think they are able to cover a lot of ground. Are you going to start working on it? I would be willing to help out if you are or I'll work on when I get some time. thanks, brian -----Original Message----- From: jyt...@li... [mailto:jyt...@li...]On Behalf Of Phil Surette Sent: Friday, October 19, 2001 4:38 AM To: jyt...@li... Subject: [Jython-dev] javaos.py I've just learned that ant has the ability to get at environment variables. The ant solution (which is in org.apache.tools.ant.taskdefs.Execute.java) works by defining CommandLaunchers for each platform. What I was wondering is, why doesn't jython incorporate the same mechanism? It seems to me that you should be able to define os.system, some os.exec variants, and os.environ with some smart usage of java.lang.Runtime. This would obviate the need for jnios. Has anyone already tried this and failed? _______________________________________________ Jython-dev mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-dev |