Thanks for the update. The reason I suggested a .bat file is to mirror the
behavior of Apache Ant - which has an ant.bat as well as an SH launcher
called just "ant".
It may be more complicated than it's worth however to just make a DOS batch
script - DOS is weak compared to *nix shells. The right solution may be to
make a mostly-complete native Java launcher, then stripped down "nutch" and
"nutch.bat" files for the bin directory.
Another open-source Java-based search utility I've been using lately is
OpenGrok [http://www.opensolaris.org/os/project/opengrok/]. The OpenGrok
indexer doesn't even have a launcher - just a JAR, so a native Java lanucher
could be just fine ... as long as the entire Classpath doesn't have to be
fed to it on the command line.
-- Jim
On 9/11/06, Andrzej Bialecki <[EMAIL PROTECTED]> wrote:
Tomi NA wrote:
> On 9/11/06, Jim Wilson <[EMAIL PROTECTED]> wrote:
>> Dear Nutch User Community,
>>
>> Does anyone have a nutch.bat file to use in the bin directory? I
>> find it
>> bemusing that Java (cross-platform) was chosen as the development
>> language,
>> but the launcher is written in Bash.
>
> As much as I hate to say it, but you're right, it doesn't make any
> sense to hobble such a great body of platform independent code with a
> couple of short bit vital *n*x-only scripts. ...even if we are talking
> about windows.
> Would it make sense to go java all the way and use groovy or
> beanshell? My knowledge of these projects is rather superficial, but
> someone else might know more...
Originally Cygwin was needed to ensure the presence of some of the Unix
utilities, such as df(1), which get the info from OS that Java cannot
get; and of course to run the shell scripts.
Recently the dependency on POSIX-compatible df(1) has been removed. And
scripts can be rewritten in Java - although unless you use another type
of launcher (again, based on scripts!) there is no way to build
single-argument applications in Java; so, you always have to type more
than you would when starting a native application.
Anyway, I believe it should be possible now to get rid of Cygwin
dependency. If it's a high priority for you, please submit a patch.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general