Re: svn commit: r496842 - in /xmlgraphics/fop/trunk: fop.cmd fop.js

2007-01-17 Thread Simon Pepping
On Tue, Jan 16, 2007 at 10:13:16PM +0100, Jeremias Maerki wrote:
> Wow! That looks like an awful lot of work. It seems to work but it is
> just a little irritating that it opens a new terminal window.

For me it was, because I had to browse the documentation
endlessly. For an experienced JScript programmer it may not be too
difficult. It was an old wish of mine to get some more experience with
JScript, which I got with this script. JScript has access to the Win32
API and ActiveX objects, which provides access to running processes,
installed applications and all sorts of other stuff on a Windows
desktop.

The final run call was my greatest problem. I did not like the extra
window either. You also see a function which uses the exec call. It
does not open a new window, but it runs asynchronously and without a
terminal. You have to poll the process regulary, and check its
status. You have to catch its STDOUT and STDERR and print that on the
script's STDOUT and STDERR. There does not seem to be a way to let the
process communicate directly with the user. I hope someone with more
experience with JScript can improve this.

Simon

-- 
Simon Pepping
home page: http://www.leverkruid.eu


Re: svn commit: r496842 - in /xmlgraphics/fop/trunk: fop.cmd fop.js

2007-01-16 Thread Jeremias Maerki
Wow! That looks like an awful lot of work. It seems to work but it is
just a little irritating that it opens a new terminal window.

On 16.01.2007 21:16:33 Simon Pepping wrote:
> On Tue, Jan 16, 2007 at 07:59:13PM -, [EMAIL PROTECTED] wrote:
> > Author: spepping
> > Date: Tue Jan 16 11:59:13 2007
> > New Revision: 496842
> > 
> > URL: http://svn.apache.org/viewvc?view=rev&rev=496842
> > Log:
> > Two scripts to start FOP on MS Windows
> > 
> > Added:
> > xmlgraphics/fop/trunk/fop.cmd   (with props)
> > xmlgraphics/fop/trunk/fop.js   (with props)
> 
> The JScript mimicks the Bash shell script as much as possible.
> 
> It reads the following variables: "FOP_HOME", "CLASSPATH",
> "FOP_HYPHENATION_PATH", "FOP_OPTS", "JAVA_OPTS", "LOGCHOICE",
> "LOGLEVEL".
> 
> For that purpose it reads the following sources in order:
> 
> Environment
> Configuration file \Application Data\Fop\fop.conf
> Configuration file \Application Data\Fop\fop.conf
> Registry key HKCU\Software\Fop\
> Registry key HKLM\Software\Fop\
> 
> The first hit for a variable counts.
> 
> "LOGCHOICE" and "LOGLEVEL" may also be set by uncommenting the
> appropriate line in the script.
> 
> Enjoy, Simon
> 
> -- 
> Simon Pepping
> home page: http://www.leverkruid.eu



Jeremias Maerki



Re: svn commit: r496842 - in /xmlgraphics/fop/trunk: fop.cmd fop.js

2007-01-16 Thread Simon Pepping
On Tue, Jan 16, 2007 at 07:59:13PM -, [EMAIL PROTECTED] wrote:
> Author: spepping
> Date: Tue Jan 16 11:59:13 2007
> New Revision: 496842
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=496842
> Log:
> Two scripts to start FOP on MS Windows
> 
> Added:
> xmlgraphics/fop/trunk/fop.cmd   (with props)
> xmlgraphics/fop/trunk/fop.js   (with props)

The JScript mimicks the Bash shell script as much as possible.

It reads the following variables: "FOP_HOME", "CLASSPATH",
"FOP_HYPHENATION_PATH", "FOP_OPTS", "JAVA_OPTS", "LOGCHOICE",
"LOGLEVEL".

For that purpose it reads the following sources in order:

Environment
Configuration file \Application Data\Fop\fop.conf
Configuration file \Application Data\Fop\fop.conf
Registry key HKCU\Software\Fop\
Registry key HKLM\Software\Fop\

The first hit for a variable counts.

"LOGCHOICE" and "LOGLEVEL" may also be set by uncommenting the
appropriate line in the script.

Enjoy, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.eu