Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2008-04-30 Thread Ittay Dror
Stefano Marsili wrote: > > Hi everybody, > I'm really no Ant expert, but I'm working on a project > that might be of interest to this thread. > It defines an expression language that extends > Ant's property expansion. At the moment the language > is limited and is still subject to heavy cha

Scripting Reality - Request for Ant Usage Questionnaire

2007-07-27 Thread Eanna Butler
Hi, For those on the Ant Mailing List, I'd be very interested if you could arrange a 'questionnaire' on Ant usage. Something along the lines of How do you use scripting features in Ant? - I don't use any procedural features in my Ant scripts - I use AntContr

Re: JRake - replacing build.xml files with a scripting language...

2006-12-18 Thread Jeffrey E Care
E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS 7.0 Lead Release Engineer "Kevin Jackson" <[EMAIL PROTECTED]> 12/18/2006 09:01 AM Please respond to "Ant Developers List" To "Ant Developers List" cc Subject JRake - r

JRake - replacing build.xml files with a scripting language...

2006-12-18 Thread Kevin Jackson
http://martinfowler.com/bliki/JRake.html As I mentioned earlier this year, I can see this kind of thing becoming more popular Kev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: javax scripting for ant 1.7.0

2006-12-01 Thread Kevin Jackson
Hi all, Having just got back from hols and getting up to speed on this, my initial thoughts are -1 for including this in 1.7.0, given that we are in the release candidate stage and Antoine wants to do the full release in 9 days. I know it's bad form to veto when I may not be 100% sure of all the

Re: javax scripting for ant 1.7.0

2006-11-30 Thread Stefan Bodewig
use of javax.scripting without > having a negative impact on the current scripting code. +1 on making the script manager configurable, +0 on supporting javax.scripting in 1.7.0. And I'm in the use-a-separate-attribute-instead-of-a-prefix camp. Stefan ---

Re: javax scripting for ant 1.7.0

2006-11-29 Thread Peter Reilly
er will have configured up bsf, and every thing works, then update to java6 and the script tasks stop working. This may be a 1.7.1 level change, if its done with a new attribute and not a new language string. Maybe, but I would still like it for 1.7.0. This gives us a chance to look

Re: javax scripting for ant 1.7.0

2006-11-29 Thread Steve Loughran
other aspects of scripting, to make it more useful. -better fault handing -better default values -ways of passing params to conditions (and for reuse) PS, script performance tests from the netkernel team: http://www.mail-archive.com/jruby-devel@lists.sourceforge.net/msg01110.html conclusion

Re: javax scripting for ant 1.7.0/ release of ant 1.7.0

2006-11-28 Thread Antoine Levy-Lambert
Hello Peter, and others I am thinking of building Ant 1.7.0 on Sunday, December 10. This would mean a release date for the public of Sunday, December 17. Would this fit with the work to add this scripting support ? Concerning the contents of the scripting support, I trust you. :-) Regards

Re: javax scripting for ant 1.7.0

2006-11-28 Thread Jesse Glick
Peter Reilly wrote: If the attribute is not specified a default path will be used - all the scriptapi's that ant known about. - bsf, jsr. So why add the API attribute at all? Just do the right thing without having to be told. Legacy scripts will expect to use BSF and they will get it. New scr

Re: javax scripting for ant 1.7.0

2006-11-28 Thread Peter Reilly
the box) > usage of a scripting language with ant on java6 and > allow scripting with languages that only have javax.scripting > engines (F3 for example - I think). +1 to oob. > I had proposed before to use the convention > language="jsr:javascript" to denote the jaxax.sc

Re: javax scripting for ant 1.7.0

2006-11-28 Thread Dominique Devienne
On 11/27/06, Peter Reilly <[EMAIL PROTECTED]> wrote: As java6 will be released shortly (I think in december) it would be nice to allow ant to use javax.scripting for a script engine. I would allow oob (out of the box) usage of a scripting language with ant on java6 and allow scriptin

Re: javax scripting for ant 1.7.0

2006-11-28 Thread Steve Loughran
Peter Reilly wrote: As java6 will be released shortly (I think in december) it would be nice to allow ant to use javax.scripting for a script engine. I would allow oob (out of the box) usage of a scripting language with ant on java6 and allow scripting with languages that only have

javax scripting for ant 1.7.0

2006-11-27 Thread Peter Reilly
As java6 will be released shortly (I think in december) it would be nice to allow ant to use javax.scripting for a script engine. I would allow oob (out of the box) usage of a scripting language with ant on java6 and allow scripting with languages that only have javax.scripting engines (F3 for

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-21 Thread Paul King
to keep them? I'd actually be interested to know if it's simply because Java programmers are used to braces? Well, I wasn't involved at the time when many of these things were set in concrete. One of the goals though was to be a scripting language friendly to Java developers. als

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-21 Thread Paul King
Kevin Jackson wrote: On 9/16/06, Jesse Glick <[EMAIL PROTECTED]> wrote: [...] (I'd steer away from groovy before anyone suggests it ;)) Kevin, anything in particular you don't like about Groovy? In my experience it is an excellent scripting language and has excellent An

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-21 Thread Kevin Jackson
Kevin, anything in particular you don't like about Groovy? Hi Paul, Nice to 'chat' to you :) My major problem with groovy was it's instability - every time I looked at it previously, something was mentioned as still being unstable etc. def scanner = ant.fileScanner { fileset(dir: propert

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-21 Thread Paul King
Kevin Jackson wrote: On 9/16/06, Jesse Glick <[EMAIL PROTECTED]> wrote: [...] (I'd steer away from groovy before anyone suggests it ;)) Kevin, anything in particular you don't like about Groovy? In my experience Groovy is an excellent scripting language and has excellent An

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-18 Thread Kevin Jackson
obably would have been miserable as a > teenager were it not for CLtLR2. ? Common Lisp the Language Release 2 (I guess) [snip] demonstrates my biggest problem with using a scripting language instead of something abstracted away from scripting (like our current XML format). You start to use the

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-17 Thread Stefan Bodewig
ke a fileset, but you have a path, not a fileset, > and there is no root. You certainly know that 1.7 can copy paths just as well. > for (jar in classpath.split(':;')) { > copy({file: jar, todir: destdir}) > } demonstrates my biggest problem with using a scripting language i

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-17 Thread Stefan Bodewig
On Sun, 17 Sep 2006, Peter Reilly <[EMAIL PROTECTED]> wrote: > On 9/17/06, Stefan Bodewig <[EMAIL PROTECTED]> wrote: >> >> On Sat, 16 Sep 2006, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: >> >> > What about, if the members of ant-contrib were to agree to this, >> > merge ant and ant-contrib to

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-17 Thread Antoine Levy-Lambert
Hi, Is Stefan the author of ? Antoine Original-Nachricht Datum: Sun, 17 Sep 2006 22:01:32 +0100 Von: "Peter Reilly" <[EMAIL PROTECTED]> An: "Ant Developers List" Betreff: Re: suggestion : Ant 1.8 full dist to include a \'scripting lang\'

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-17 Thread Stefano Marsili
Hi everybody, I'm really no Ant expert, but I'm working on a project that might be of interest to this thread. It defines an expression language that extends Ant's property expansion. At the moment the language is limited and is still subject to heavy changes (I like to experiment and I'm still

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-17 Thread Peter Reilly
On 9/17/06, Stefan Bodewig <[EMAIL PROTECTED]> wrote: On Sat, 16 Sep 2006, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > What about, if the members of ant-contrib were to agree to this, > merge ant and ant-contrib to have the ... Has anybody ever asked them? I think that the author of

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-17 Thread Stefan Bodewig
of the least verbose languages (apart from the ()) Actually Lisp isn't much less verbose, macros are the key. And "real macros" are what the other scripting languages I've looked into are lacking. Stefan

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-17 Thread Stefan Bodewig
On Sat, 16 Sep 2006, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > What about, if the members of ant-contrib were to agree to this, > merge ant and ant-contrib to have the ... Has anybody ever asked them? Stefan - To unsub

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-16 Thread Antoine Levy-Lambert
using ant. Most of the build files of the individual projects were generated, either using velocity and templates, or by a java command line program using a macro language as its input. Talking about a scripting language to "marry" with ant, I am surprised no one mentioned groovy. Rega

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-15 Thread Kevin Jackson
to people at the conference, they mainly mentioned that maven was better as they didn't have to think about getting started, whereas Ant provided much more flexibility - in that vein, I think we should concentrate on Ant's strengths: - flexibility (add a scripting language would increase this

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-15 Thread Alexey Solofnenko
m your own. I too would like to have an official and easy to use scripting language always available in Ant (and ECMAScript is a good condidate), but as a way to extend the default Ant behavior or do a one off thing for a given build, not to replace the current Ant. What you describe (Ant in Jav

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-15 Thread Dominique Devienne
e. [...] Whao, it's good you got that off your chest Jesse ;-) Great post! I don't agree on all your points, but my experience is not far from your own. I too would like to have an official and easy to use scripting language always available in Ant (and ECMAScript is a good condidate)

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-15 Thread Jesse Glick
I was wondering if anyone would bring it up... +1 (is >1 allowed?) for including a scripting language implementation in the standard Ant distribution, so that we can rely on it being there. In fact I would suggest making Ant 2.0 assume a script as its input, and have a compatibility mode

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-13 Thread Steve Loughran
Kevin Jackson wrote: >> (project :name "Ant" :default "echo" >> (target :name "echo" >> (echo :message "Hello World"))) >> >> Tasks would be functions or macros. > > Anyone interested in a CLISP version of Ant? You'd be surprised how much less lines of code you'd need when compared to the

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-13 Thread Steve Loughran
eal macros and a time-tested "scripting" language for free. and we could get rid of XML: (project :name "Ant" :default "echo" (target :name "echo" (echo :message "Hello World"))) Tasks would be functions or macros. ...And make is an AI r

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-13 Thread Peter Reilly
On 9/13/06, Kevin Jackson <[EMAIL PROTECTED]> wrote: > According to https://scripting.dev.java.net/ > SCSI (http://sisc.sourceforge.net/) a scheme implementation > is supported by JDK6 scripting via an engine provided by > https://scripting.dev.java.net/servlets/ProjectDocumen

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-13 Thread Matt Benson
The easiest thing would be a re-implementation of > Ant in Common Lisp, > > we'd get real macros and a time-tested "scripting" > language for free. > > and we could get rid of XML: > > +1 ;) > > s-expressions are basically a 'better' xml, but

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-13 Thread Kevin Jackson
According to https://scripting.dev.java.net/ SCSI (http://sisc.sourceforge.net/) a scheme implementation is supported by JDK6 scripting via an engine provided by https://scripting.dev.java.net/servlets/ProjectDocumentList Cool, one more to look at As a SideNote, does anyone know the state of

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-13 Thread Peter Reilly
.sourceforge.net/) a scheme implementation is supported by JDK6 scripting via an engine provided by https://scripting.dev.java.net/servlets/ProjectDocumentList As a SideNote, does anyone know the state of the apache BSF project - it seems to have gone asleep. BSF is usefull for people that do not use JDK6+ ;-()

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Kevin Jackson
>> (project :name "Ant" :default "echo" >> (target :name "echo" >> (echo :message "Hello World"))) >> >> Tasks would be functions or macros. > > Anyone interested in a CLISP version of Ant? You'd be surprised how much less lines of code you'd need when compared to the Java version, really.

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Stefan Bodewig
On Wed, 13 Sep 2006, Kevin Jackson <[EMAIL PROTECTED]> wrote: > On 9/13/06, Stefan Bodewig <[EMAIL PROTECTED]> wrote: >> On Tue, 12 Sep 2006, Matt Benson <[EMAIL PROTECTED]> wrote: >> (project :name "Ant" :default "echo" >> (target :name "echo" >> (echo :message "Hello World"))) >> >> Tasks

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Kevin Jackson
mplementation of Ant in Common Lisp, we'd get real macros and a time-tested "scripting" language for free. and we could get rid of XML: +1 ;) s-expressions are basically a 'better' xml, but implementing Ant in Common Lisp would be: a - cool b - completely barmy (I doubt

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Stefan Bodewig
On Tue, 12 Sep 2006, Jan Materne <[EMAIL PROTECTED]> wrote: > Oh - Gump3 is over? Let's call it dormant. Large parts of Gump are stable, there isn't much need for active development. Maven 2 is the most pressing problem and it would either need (more) support by the Maven community or me sittin

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Stefan Bodewig
cros and a time-tested "scripting" language for free. and we could get rid of XML: (project :name "Ant" :default "echo" (target :name "echo" (echo :message "Hello World"))) Tasks would be functions or macros. Stefan

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Stefan Bodewig
On Tue, 12 Sep 2006, Kevin Jackson <[EMAIL PROTECTED]> wrote: > As a data point it's important to note that the python re-write > didn't attract more developers I think that's because Gump still hasn't managed to prove it's not a "those Java people" thing. > - having said that if you wanted apac

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Kevin Jackson
> > Talking about flamebait, I'll toss this out there: > we > > could create our own scripting language... with > > domain-specific slants if/where applicable... this > > would extricate us from any distribution issues, > and, > > dare I say it, could be

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Matt Benson
--- Steve Loughran <[EMAIL PROTECTED]> wrote: > Matt Benson wrote: > > > > > Talking about flamebait, I'll toss this out there: > we > > could create our own scripting language... with > > domain-specific slants if/where applicable... this > &g

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Steve Loughran
Matt Benson wrote: Talking about flamebait, I'll toss this out there: we could create our own scripting language... with domain-specific slants if/where applicable... this would extricate us from any distribution issues, and, dare I say it, could be fun if we could find ways to make

Re: Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Matt Benson
t; > > Biggest problem might be that the language needs > to be license > > compatible. > > Yes I can see this as a problem - sorry didn't > consider it before. > Talking about flamebait, I'll toss this out there: we could create our own scripting language...

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-12 Thread Peter Reilly
;I'm not convinced that script languages are more appropriate 8-) Me neither. IMHO its easier to do more complicated checks, e.g. if attribute combination is ok eg. with check*() methods. But maybe I am not familiar enough with scripting >> Downsides are of course that the implementa

AW: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-11 Thread Jan.Materne
e tool/lang > >I'm not convinced that script languages are more appropriate 8-) Me neither. IMHO its easier to do more complicated checks, e.g. if attribute combination is ok eg. with check*() methods. But maybe I am not familiar enough with scripting >> Downsides are of cour

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-11 Thread Stefan Bodewig
t attract developers from the non-Java parts of the ASF. The result today is that the number of active developers has dropped from about two to about zero. If we chose a "standard" scripting language for Ant, it means the Ant developer community must feel

Re: Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-11 Thread Kevin Jackson
y don't care about Gump (Maven uses continuum for example). As a data point it's important to note that the python re-write didn't attract more developers - having said that if you wanted apache developers I would have thought perl would have been the safer language (given mod_perl et

Re: suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-11 Thread Alexey Solofnenko
+1 I think we need a scriptdef library. Having a standard scripting language would help too. - Alexey. On 9/11/06, Kevin Jackson <[EMAIL PROTECTED]> wrote: Hi all, Coming in too work today I was thinking about how although scriptdef is a very handy way of quickly specifying tasks w

suggestion : Ant 1.8 full dist to include a 'scripting lang'

2006-09-11 Thread Kevin Jackson
Hi all, Coming in too work today I was thinking about how although scriptdef is a very handy way of quickly specifying tasks without having to compile code, and how it can be used within an antlib, but that no-one at apachecon asia had used it. The reasons they gave was: 1 - didn't know about it

Re: scripting

2006-06-26 Thread Stefan Bodewig
On Mon, 26 Jun 2006, Steve Loughran <[EMAIL PROTECTED]> wrote: > Stefan Bodewig wrote: >> On Fri, 23 Jun 2006, Alexey Solofnenko <[EMAIL PROTECTED]> wrote: >> >>> About property expansion - many languages use the same syntax for >>> inline property substitution. It may be good not to expand >>> pro

Re: scripting

2006-06-26 Thread Steve Loughran
Stefan Bodewig wrote: On Fri, 23 Jun 2006, Alexey Solofnenko <[EMAIL PROTECTED]> wrote: About property expansion - many languages use the same syntax for inline property substitution. It may be good not to expand properties automatically. That's the reason it hasn't been implemented, exactly.

Re: scripting

2006-06-25 Thread Stefan Bodewig
On Fri, 23 Jun 2006, Alexey Solofnenko <[EMAIL PROTECTED]> wrote: > About property expansion - many languages use the same syntax for > inline property substitution. It may be good not to expand > properties automatically. That's the reason it hasn't been implemented, exactly. Just imagine a scr

Re: scripting

2006-06-23 Thread Alexey Solofnenko
About property expansion - many languages use the same syntax for inline property substitution. It may be good not to expand properties automatically. - Alexey. On 6/23/06, Steve Loughran <[EMAIL PROTECTED]> wrote: Having been doing some work documenting scripting recently, I want t

scripting

2006-06-23 Thread Steve Loughran
Having been doing some work documenting scripting recently, I want to note some current limitations with ant's script support. -no automatic check for attributes/elements declared. The script code needs to do that themselves, which leads to... -bad handling of BuildExceptions rais

Re: Microsoft XML scripting patent

2004-02-16 Thread Peter Reilly
Costin Manolache wrote: [EMAIL PROTECTED] wrote: Not only . You can do the same (storing) with Exactly, the patent descibes the contents of the ant "script" manual page: http://ant.apache.org/manual/OptionalTasks/script.html Peter And on [1] you ca

Re: Microsoft XML scripting patent

2004-02-14 Thread Costin Manolache
[EMAIL PROTECTED] wrote: Not only . You can do the same (storing) with ]]>
Exactly, the patent descibes the contents of the ant "script" manual page: http://ant.apache.org/manual/OptionalTasks/script.html Peter And on [1] you can see, that´s

Re: Microsoft XML scripting patent

2004-02-13 Thread Steve Loughran
all sitting on the same file separated by XML tags and being able to call each separate script in the collection from a menu. So, it sound not like a pattent on scripting, but on how to store collections of scripts in one file and being able to execute them. Any pattent layer around? I do know

RE: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
> But is not a collection of scripts. > is a collection of tasks in Java. > That is what ANT provides, not scripts. Correct. The right equivalent is . But can (nearly) be rewritten with a containing only one

RE: Microsoft XML scripting patent

2004-02-13 Thread Jose Alberto Fernandez
But is not a collection of scripts. is a collection of tasks in Java. That is what ANT provides, not scripts. In the worst case scenario, we are talking about wether the

RE: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
> > > > > > > >>-Original Message- > >>From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED] > >>Sent: Friday, February 13, 2004 3:14 PM > >>To: Ant Developers List > >>Subject: Re: Microsoft XML scripting patent > >> >

Re: Microsoft XML scripting patent

2004-02-13 Thread Peter Reilly
er Does the ASF have a layer to check that? Jan -Original Message- From: Antoine Lévy-Lambert [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 3:14 PM To: Ant Developers List Subject: Re: Microsoft XML scripting patent [EMAIL PROTECTED] wrote: So, it sound not like a pattent

RE: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
14 PM > To: Ant Developers List > Subject: Re: Microsoft XML scripting patent > > > [EMAIL PROTECTED] wrote: > > >>So, it sound not like a pattent on scripting, but on > >>how to store collections of scripts in one file and being > >>able to execute them

Re: Microsoft XML scripting patent

2004-02-13 Thread Antoine Lévy-Lambert
[EMAIL PROTECTED] wrote: So, it sound not like a pattent on scripting, but on how to store collections of scripts in one file and being able to execute them. as collection of scripts? Jan The example provided on the web page showing MS's patent show an xml file containing a .bat

RE: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
> So, it sound not like a pattent on scripting, but on > how to store collections of scripts in one file and being > able to execute them. as collection of scripts? Jan > > Any pattent layer around? > > Jose Alberto > > > -Original Message- > >

RE: Microsoft XML scripting patent

2004-02-13 Thread Jose Alberto Fernandez
separated by XML tags and being able to call each separate script in the collection from a menu. So, it sound not like a pattent on scripting, but on how to store collections of scripts in one file and being able to execute them. Any pattent layer around? Jose Alberto > -Original Mess

FW: Microsoft XML scripting patent

2004-02-13 Thread Jan . Materne
XML scripting patent I haven't had a chance to do more than skim the news.com article on Microsoft's recently granted patent on the use of XML to hold scripting content... http://news.com.com/2100-7345-5158432.html ... but does anyone else think this poses a problem for

Re: Ant scripting with Jython (Phase 2)

2003-06-20 Thread Jonathan Simon
Sorry... forgot to send a complete script! Here is one I ran from my machine... ant = Ant() ant.echo(message="hello world") ant.delete(quiet="1", dir="D:\\java\\jython_ant\\temp") ant.mkdir(dir="D:\\java\\jython_ant\\temp") ant.touch(file="D:\\java\\jython_ant\\src\\HelloJython.java") ant.copy(fil

Re: Ant scripting with Jython (Phase 2)

2003-06-20 Thread Jonathan Simon
Sorry... forgot to send a complete script! Here is one I ran from my machine... ant = Ant() ant.echo(message="hello world") ant.delete(quiet="1", dir="D:\\java\\jython_ant\\temp") ant.mkdir(dir="D:\\java\\jython_ant\\temp") ant.touch(file="D:\\java\\jython_ant\\src\\HelloJython.java") ant.copy(fil

Ant scripting with Jython (Phase 2)

2003-06-20 Thread Jonathan Simon
All- First off, Special thanks to Peter Reilly for his last post. Im still relatively new to Jython (and Ant dev for that matter!) so his last code snippet got me thinking in the right direction about the extreme reflection in Jython! Allright. So I took Peter's code and tried to mimic the Ant Ma

Re: Ant scripting from Jython.

2003-06-16 Thread Jonathan Simon
r a in args.keys(): > > > setattr( t, a, args[a] ) > > > which turns your wrapper calls into: > > > > > > twrapper('echo', message='hello world') > > > twrapper('delete', quiet=1, dir=File('todir

Re: Ant scripting from Jython.

2003-06-16 Thread peter reilly
gt; twrapper('copy', file=File("fromfile"), todir=File("todir")) > > > > > -Original Message- > > > From: peter reilly [mailto:[EMAIL PROTECTED] > > > Sent: Friday, June 13, 2003 4:59 AM > > > To: Ant Developers

Re: Ant scripting from Jython.

2003-06-14 Thread mpfoemme
If anyone's curious, I've recently posted some code at sourceforge for a project called Pynt. It's a java-based scripting language designed for running builds, and it integrates fairly well with ant tasks. The code is in pretty rough shape, as I've been sort of "thin

RE: Ant scripting from Jython.

2003-06-13 Thread Jonathan Simon
ete', quiet=1, dir=File('todir')) > twrapper('mkdir', dir=File("todir")) > twrapper('copy', file=File("fromfile"), todir=File("todir")) > > > -Original Message----- > > From: peter reilly [mailto:[EMAIL

Re: Ant scripting from Jython.

2003-06-13 Thread Bruce Atherton
. It is a tradeoff. I'm curious about this tradeoff and about the "XML Burden" you mention in your blog. Is the issue using XML or is it better access to scripting facilities within Ant? The reason I ask is that Jelly already provides an XML scripting language that can run Ant tas

RE: Ant scripting from Jython.

2003-06-13 Thread Albrecht, Matt
ile("todir")) twrapper('copy', file=File("fromfile"), todir=File("todir")) > -Original Message- > From: peter reilly [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2003 4:59 AM > To: Ant Developers List > Subject: Re: Ant scripting f

Re: Ant scripting from Jython.

2003-06-13 Thread James Duncan Davidson
On Thursday, Jun 12, 2003, at 22:23 US/Pacific, Conor MacNeill wrote: http://marc.theaimsgroup.com/?l=ant-dev&m=105516662409107&w=2 Instead of the "script driving Ant tasks" approach, is more like a script within a task. As such, the scripts would potentially be more focussed on the things that

Re: Ant scripting from Jython.

2003-06-13 Thread peter reilly
pection > facilities. One problem is that most Ant tasks support a multitude of > attributes. As I said above, XML is quite nice there as it allows > attributes to be named. You only provide the attributes you want and mostly > everything else takes sensible defaults. In the copy example, th

Re: Ant scripting from Jython.

2003-06-13 Thread Conor MacNeill
butes to be named. You only provide the attributes you want and mostly everything else takes sensible defaults. In the copy example, think about what the wrapper would look like that exposes all the capabilities of (http://ant.apache.org/manual/CoreTasks/copy.html). I think it could be quite

Re: Ant scripting from Jython.

2003-06-13 Thread James Duncan Davidson
while it's worthwhile to look at using a first class scripting language to actually build real "build-scripts". Of course, I haven't moved anywhere with it because I've been having way too much fun over with Mac OS X and Cocoa lately. :) Lack of itch to scratch leads to

Ant scripting from Jython.

2003-06-12 Thread Jonathan Simon
Hello all, Ive been working alot with the idea of scripting languages and how they fit into the community (especially Java scripting languages). I started to look at when XML is misused and when something like Jython might be a better idea. The end result was an article on the new java.net site