Personal tools

WindowsBuildNotes

From OpenLaszlo

Contents

Classpaths

Cygwin and ant are not passing around classpaths well. So, I've started invoking the build from the standard windows command prompt, like this:

  ant -lib c:\cygwin\home\Laszlo\lib\rhino1_5R3\js.jar -lib c:\cygwin\home\Laszlo\src\svn\vendor\bsf.jar -lib c:\cygwin\home\Laszlo\lib\catalina-ant.jar webapp.deploy

Passing in -lib adds a jar to the classpath. I also needed to add -lib tags for jing.jar and trang.jar.

Starting and Stopping Tomcat

I don't know much about windows services. I do

  ant -lib (blah blah blah) tomcat.start

and a windows service seems to be launched, in a separate window. Then I have to Ctrl-C the ant task to get my prompt back; the service keeps running.

Exec tasks

exec tasks in ant don't work well on windows. We mostly use them to invoke scripts which invoke java; better to call the java directly, for more portability.

Documentation

The doc build is turned off. It doesn't work, so it's turned off.

dtd

The dtd task takes a long time. Wait it out.

Building the installer

We seem to need NSIS, which I just snagged from http://nsis.sourceforge.net. Something is weird here, something about the working directory.