ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: scriptdef with nested fileset and mapper
Date Tue, 21 Oct 2008 11:40:52 GMT



-----Original Message-----
From: stefanb@starnberg-mail.de [mailto:stefanb@starnberg-mail.de]
Sent: Tuesday, October 21, 2008 12:47 PM
To: user@ant.apache.org
Subject: Re: scriptdef with nested fileset and mapper

/*
[...]
I need to patch/stamp a number of binary files during copy (packing
a release product). Since the replace-filters in ant are all
text-based I cannot use the normal ant tasks.
*/

Yup, in Ruby a string is a string, whether it's binary or text data, so both
kind of strings may be processed the same way. There's only one gotcha,
if you're on windows you have to append 'b' to the file mode, so newline
characters are ignored.

/*
Also I wanted to see how ruby-inside-ant looks as a replacement
for our large collection of gmake,ruby,batch,tcl etc. scripts
I would like to have only one file per component (build.xml).
*/

Did you look on 'buildr' ?

/*
Maybe you know:
Currently I'm using eclipse to write ruby-scripts inside ant-xml.
Is there a way to configure eclipse to have better
debugging/development output (like the line of error, debug stepping
etc.) ?
*/

also using eclipse 3.4 for editing ant files here @ work on windows.
The ant support is fairly good, but ruby support s*cks
I've tried a ruby plugin with eclipse 3.2.2 but it was very disappointing.
Normally i check ruby snippets in irb or jirb (ships with jruby) without debugging
and in ant script i use low level debugging, means puts ...
I always check my scripts in and outside from eclipse as sometimes
there are differences.

If you have the choice, i strongly recommend NetBeans 6.1,
the Ruby support is amazing !!
There's also a Ruby only NetBeans IDE, you'll get the Ruby NetBeans Pack on =
http://www.netbeans.org/downloads/index.html

btw, NetBeans also has a great Ant support :-)


Regards, Gilbert


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message