RE: BeanShell and ant
"Lendvai Attila" <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <E12F73E3BF124B45A118F3323DEB4955443A6E@netvisorpdc.intranet.netvisor.hu> |
:: If it were _much_ more flexible... well, I doubt since you
:: can add your own
:: scripted tasks (as BeanShell classes) to ANT and
:: gain the same
:: functionality. I also personally like ANT's declarative
after you have wasted hoursread documentation, takes some time to
itegrate, etc...
ant is heavyweight, and i'm fed up with continuous ant documentation
reading. it's obvious that there was no design when ant was written...
and i'm talking about big projects here. i need to compile generators,
then run them, compile their output, partially deploy ear's based on
what was recompiled, etc... and it would be a lot of help if i could
write my custom dirty-check code, that can avoid some recompilation in
some cases. currently i have to turn off dependencies in my build files
because it would always end up in a complete recompile that takes some
time...
and i try to share build logic/configuration between projects which is
again a pain with ant...
:: style, so your concept is not appealing to me. The more
:: complicated such scripts get, the harder it is to maintain them...
my example below is declarative.
and with proper helper classes those scripts would be simpler then an
ant build file.
101
:: Dawid
::
::
:: LA> hello all,
::
:: LA> did anyone tought of creating some helper classes that
:: help building
:: LA> java (and all the usual things ant can do), and use
:: beanshell build
:: LA> scripts to replace ant?
::
:: LA> creating some dependency resolver, and things and we are
:: there where
:: LA> ant is now, plus the flexibility of a script language.
::
:: LA> things like:
::
:: LA> JavaCompiler jc = new JavaCompile(); jc.addClassPath("asd");
::
:: LA> DependencyResolver dr = new DependencyResolver();
::
:: LA> dr.add(
:: LA> new Task("mytask") {
:: LA> public void run()
:: LA> {
:: LA> jc.compile(new FileSet("asd"));
:: LA> }
:: LA> }
:: LA> );
::
:: LA> dr.addDependency("mytask", "othertask,othertask2,asd");
::
:: LA> dr.run();
::
:: LA> etc... this is just a really quick brainstorm. how the
:: actual helper
:: LA> classes should work needs some thinking, but it would be
:: a lot much
:: LA> more flexible then ant.
::
:: LA> any ideas?
::
:: LA> 101
::
:: LA> ps: yes, i don't like ant and writing xml's only to make my life
:: LA> harder... :)
-------------------------------------------------------
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