Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stellation-res] Scripts in Stellation

On Sun, 2002-09-15 at 23:16, Florin Iucha wrote:
> On Sun, Sep 15, 2002 at 06:42:01PM -0400, Jonathan Gossage wrote:
> > Scripts are used in a number of places in Stellation, both as application
> > launchers and as test harnesses. Currently these scripts are implemented as
> > shell scripts, either for bash or sh. This presents a problem on Windows
> > platforms even those where Cygwin is installed. Basically, any *nix script
> > that deals with file manipulation needs modification in Cygwin to handle
> > translation between DOS and *nix paths using Cygwin specific extensions.
> > While it would be possible to modify these scripts so that they could run
> > native in a *nix environment or in Cygwin, I do not believe that we should
> > be relying on Cygwin as a Windows environent over the long term.
> > 
> > I would like to propose that the current scripts be rewritten in a platform
> > independent scripting language such as Perl or Python. If this is done right
> > we will have one set of scripts that can be used on all platforms, perhaps
> > with some conditional platform dependent code in them.
> 
> No! There is no point to require another scripting language.
> 
> The way to do it is to create .bat files for windows, the way the
> jakarta project has done: for each "command" there is a "command.sh" and
> "command.bat".

This is basically what I prefer: put essentially all of the
functionality into the Java code, and have the scripts do nothing
more than set the classpath and call the appropriate Java class. 
Right now, most of the scripts outside of the tests are like this - the
one exception being stellationd, which is a perl script. (And I need
to do something about the stellationd script, because its reason for
existence is to clean up and respawn a server should the Java code
crash, and it's not doing that.)

As for the tests, as I said in another message: the script tests really
need to get replaced with unit tests. 

	-Mark


> 
> florin
> 
> -- 
> 
> "If it's not broken, let's fix it till it is."
> 
> 41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
-- 
Mark Craig Chu-Carroll,  IBM T.J. Watson Research Center  
*** The Stellation project: Advanced SCM for Collaboration
***		http://www.eclipse.org/stellation
*** Work Email: mcc@xxxxxxxxxxxxxx  ------- Personal Email:
markcc@xxxxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part


Back to the top