Hi Jonathan,

building Batik from the SVN repository is very simple and straigthforward. I initially thought it would be complicated, since I am not a java developer, but it's not.

First, you need to install the JDK from Sun (versions 1.4 and 1.5 should work) - make sure that the java compiler ("java") is available in the path and that the $JAVA_HOME variable is set.

Next you need to install an "svn" client - well, I guess as an mozilla developer you might already have one.

You check out the sources with the following command:

svn co http://svn.apache.org/repos/asf/xml/[project]/trunk/ xml-[project]

as written at http://xml.apache.org/svn.html


Once you checked out the sources go to the trunk/ directory and edit the "build.xml" file and add more memory to Batik. Watch out for the line <jvmarg value="-Xmx512m" /> and uncomment that line. Add as much memory as you want to. 64 megs is not enough, usually, I usually allocate 256M or 512M on big machines.

Finally, run the file "build.sh module-name" on Linux/MacOSX or "build.bat" on Windows and enjoy ... For the batik-squiggle SVG viewer you would run

"./build.sh squiggle"

------------

If you want to debug scripts there are two tricks:
1) the builtin javascript debugger (Menu "Tools --> Script Debugger") where you can set break-points, watch-variables and can see the context of a function (which function called the other). To enable the script debugger you first need to go to "edit --> preferences --> Browser Options --> Security Settings and deselect the "Enforce secure scripting" checkbox, so it is turned off
2) you can write out messages to the console/dos window by using
"System.out.println(variable)"
This is especially useful for debugging mouse events.

Finally, if you want to update the sources just go to directory "trunk" and type "svn update".

Hope this helps. Good luck!

Andreas

Jonathan Watt wrote:

Hi Thomas,

Thomas DeWeese wrote:

  We make nightly dumps of the SVN repository available:
    http://svn.apache.org/builds/xml-batik/

  If you want to 'build' this it's as simple as going into
the extracted xml-batik directory and typing:

  % build.sh jars

  This will create a directory xml-batik/batik-1.6  which is
roughly equivalent to a binary release.


I only have the JRE installed so that didn't work for me. Hopefully getting everything set up to build Batik is a lot simpler than it is for Mozilla. I'll have a look at your online docs to see how to do it later. If it's not so simple it would be nice if you would consider making nightly builds available.

All the best,
Jonathan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to