File:  [mozdev] / booktextmark / www / development.html
Revision (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Apr 15 17:19:59 2007 UTC (11 years, 3 months ago) by romanmir
Branches: roman, MAIN
CVS tags: original, HEAD
original release

<div style="max-width: 575px !important;">
<H2>Development Setup</H2>

Use the following procedure to setup a uniform development environment:

<LI>I use java/ant for builds, so install <a href="">jre or jdk</a>.</LI>
<LI>Install <a href="">ant</a>, set ANT_HOME environment variable and add ant/bin to the Path environment variable, so you can run ant from command line.</LI>
<LI>Visit the <a href="">mozillazine knowledge base</a> and set the FireFox environment to allow debugging messages in the console, etc.</LI>
<LI>Follow <a href="">this procedure</a> to make sure you can open FireFox with a console running, so you will be able to see the 'dump' messages.</LI>
<LI>Setup a <a href="">cvs client</a>, check <a href="source.html">this page</a> for cvs settings.</LI>
<LI>Download the latest source from the source tree.</LI>
<LI>Find the '' file under the 'stockticker' folder, you will need to modify one property: 'extension_dir'.
Set it to wherever the extension's 'chrome' directory is stored on your system (use forward slashes as path seperators only.)
For example on a windows machine this line could look like this:
extension_dir=H:/Documents and Settings/roman/Application Data/Mozilla/Firefox/Profiles/default.0dn/extensions/{9A4B8FA6-5588-4a97-8383-FC145077896B}/chrome
<LI>In the 'stockticker' folder create a new executable script file such as 'make.bat' or '' for example that contains the following line: <i>ant update</i>.  When you run 'update' target from the build.xml, the stockticker.jar file in the extension chrome directory will be updated with the new one from your current source.  This means that in order to test your source, you can just close the browser, run the make script to update the stockticker.jar file and then open the browser.</LI>
Now you can be sure you are working within a uniform environment with the other developers on this project.
For editing you can use <a href="">java/Eclipse</a> plugin environment with <a href="">this Javascript plugin</a>.
Obviously you can skip this process and create your own build scripts, here is a <a href="">zip tool</a> that can be used from command line.

Useful reference links:
<LI><a href="">Javascript and XUL</a></LI>


FreeBSD-CVSweb <>