Yeah thats true... I was just thinking of the case where the Java app may need to be built first - just complexity from that perspective...

I've been known to use Beanshell in my work, but solely because I am writing a build environment around Ant - and didn't feel like compiling some Java code first for my needed functionality. Of course I am also using Ivy - so it is downloading Jars for me :)

Your point is definitely well taken :)

On Tue, 21 Jul 2009, David Weintraub wrote:

On Tue, Jul 21, 2009 at 11:11 AM, Scot P. Floess<sflo...@nc.rr.com> wrote:

You can probably also script it using beanshell vs writing an external Java
application.

Just a word of warning: To write beanshell scripts, you need to add in
bsf.jar and bsh.jar into your $ANT_HOME/lib which makes your build
process a bit less portable. See:
<http://ant.apache.org/manual/install.html#librarydependencies>.

Personally, I prefer a Java program to a Beanshell script. Both are
pretty much identical in syntax and effort to write. But unlike
Beanshell, the environment here probably already has the tools to
compile a Java program and execute it.

But, for me, the biggest reason for choosing Java over Beanshell is
quite simple: If I use Beanshell, it's part of the build.xml file, and
I am the one stuck writing the task and getting blamed when it doesn't
work. However, if insist upon a  Java program, a developer gets stuck
with the task and the blame when it doesn't work.

--
David Weintraub
qazw...@gmail.com

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



Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

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

Reply via email to