Re[2]: BeanShell and ant
Dawid Weiss <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Organization | Poznan University of Technology |
| Message-ID | <[email protected]> |
One of the beautiful things in OpenSource software is that anyone can come
up with initiatives... they either catch up or don't. Of course ANT has
some drawbacks. I also sometimes need simple conditionals which are
difficult to make in ANT, although possible. Same thing with, mentioned by
you, imports of reusable components - ANT people are working on it, btw.
I can only wish you good luck with your idea. Don't get me wrong - I _am_
using BeanShell as a scripting language and I love it. I just don't believe
the application mentioned by you would be any better than what is available
already.
I really hope you will prove me wrong ;)
Dawid
LA> :: If it were _much_ more flexible... well, I doubt since you
LA> :: can add your own
LA> :: scripted tasks (as BeanShell classes) to ANT and
LA> :: gain the same
LA> :: functionality. I also personally like ANT's declarative
LA> after you have wasted hoursread documentation, takes some time to
LA> itegrate, etc...
LA> ant is heavyweight, and i'm fed up with continuous ant documentation
LA> reading. it's obvious that there was no design when ant was written...
LA> and i'm talking about big projects here. i need to compile generators,
LA> then run them, compile their output, partially deploy ear's based on
LA> what was recompiled, etc... and it would be a lot of help if i could
LA> write my custom dirty-check code, that can avoid some recompilation in
LA> some cases. currently i have to turn off dependencies in my build files
LA> because it would always end up in a complete recompile that takes some
LA> time...
LA> and i try to share build logic/configuration between projects which is
LA> again a pain with ant...
LA> :: style, so your concept is not appealing to me. The more
LA> :: complicated such scripts get, the harder it is to maintain them...
LA> my example below is declarative.
LA> and with proper helper classes those scripts would be simpler then an
LA> ant build file.
LA> 101
LA> :: Dawid
LA> ::
LA> ::
:: LA>> hello all,
LA> ::
:: LA>> did anyone tought of creating some helper classes that
LA> :: help building
:: LA>> java (and all the usual things ant can do), and use
LA> :: beanshell build
:: LA>> scripts to replace ant?
LA> ::
:: LA>> creating some dependency resolver, and things and we are
LA> :: there where
:: LA>> ant is now, plus the flexibility of a script language.
LA> ::
:: LA>> things like:
LA> ::
:: LA>> JavaCompiler jc = new JavaCompile(); jc.addClassPath("asd");
LA> ::
:: LA>> DependencyResolver dr = new DependencyResolver();
LA> ::
:: LA>> dr.add(
:: LA>> new Task("mytask") {
:: LA>> public void run()
:: LA>> {
:: LA>> jc.compile(new FileSet("asd"));
:: LA>> }
:: LA>> }
:: LA>> );
LA> ::
:: LA>> dr.addDependency("mytask", "othertask,othertask2,asd");
LA> ::
:: LA>> dr.run();
LA> ::
:: LA>> etc... this is just a really quick brainstorm. how the
LA> :: actual helper
:: LA>> classes should work needs some thinking, but it would be
LA> :: a lot much
:: LA>> more flexible then ant.
LA> ::
:: LA>> any ideas?
LA> ::
:: LA>> 101
LA> ::
:: LA>> ps: yes, i don't like ant and writing xml's only to make my life
:: LA>> harder... :)
LA> -------------------------------------------------------
LA> This SF.net email is sponsored by: SF.net Giveback Program.
LA> SourceForge.net hosts over 70,000 Open Source Projects.
LA> See the people who have HELPED US provide better services:
LA> Click here: http://sourceforge.net/supporters.php
LA> _______________________________________________
LA> Beanshell-developers mailing list
LA> Beanshell-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
LA> https://lists.sourceforge.net/lists/listinfo/beanshell-developers
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php