ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: command line front end.
Date Mon, 14 Oct 2002 05:41:07 GMT
Hi Shivaken,

Thanks for that info.  Now it works for me.  I just can't believe how fast 
the build process goes with this!  Very cool!

I've attached an "antshell.bat" script (inside the 
file).  It is mostly ripped off from the ant.bat script.

BTW, here are a couple of nits....

1.  If the Readline library doesn't exist, maybe you could output a warning 
about that rather than letting it display the following that I get:

couldn't load readline lib. Using simple stdin.
java.lang.UnsatisfiedLinkError: no JavaReadline in java.library.path
         at java.lang.ClassLoader.loadLibrary(
         at java.lang.Runtime.loadLibrary0(
         at java.lang.System.loadLibrary(
         at org.gnu.readline.Readline.load(
         at GnuReadline.<init>(Unknown Source)
         at Shell.<init>(Unknown Source)
         at Shell.main(Unknown Source)

2.  Is "exist" a possible keyword that might be used as an Ant target 
name?  Probably not, but something to think about.

3.  When I just hit "enter" without actually typing anything to the command 
line, I get the following error after which antshell abruptly exits.  Might 
want to ignore that and just do nothing except show another prompt like any 
other command line program:

Exception in thread "main" java.lang.NullPointerException
         at java.util.regex.Matcher.getTextLength(
         at java.util.regex.Matcher.find(
         at java.util.regex.Pattern.split(
         at java.util.regex.Pattern.split(
         at CommandManager.getArguments(Unknown Source)
         at CommandManager.createCommands(Unknown Source)
         at Shell.start(Unknown Source)
         at Shell.main(Unknown Source)

4.  I can't type stuff like "-projecthelp" to see the available targets.  I 
just get "no such commands.".  Might want to enable that as well as being 
able to add other command line switches like -Dmysystemproperty=foobar

The 4th one is the only real usability killer here.  All the others are 
just comments about making it more user friendly.  Nice tool!!!!


At 04:57 PM 10/13/2002 +0900, you wrote:
>If your targets in build.xml are build, clean, javadoc...,
>When you want to build, just do
>java $ build
>If you type,
>java $ clean build javadoc
>antshell execute "clean, build, javadoc".
>command "ant" will call default target only.
>But I think that you said is bug.
>I will fix that.
>On Sunday 13 October 2002 16:26, Jacob Kjome wrote:
> > Ok, I got it working, sort of.  I built an antshell.bat script based on the
> > bash script you wrote and it runs.  However, the only thing I can do is
> > type "ant" and use the project's default target.  If I type any switches or
> > targets antshell gives me "no such commands".  Would the Readline native
> > library have fixed that?  It isn't much use to me if I can't define targets
> > to run.
> >
> > I have to say, it really is nice to have the JVM stay up and running before
> > and after running ant.  It is just lightning fast!  Ant should have this
> > capability by default, I think.  Any Ant developers want to adapt this to
> > the standard Ant package?
>I'm very glad to hear that. Thank you.
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

View raw message