File:  [mozdev] / anykey / www / development.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Fri Apr 28 18:19:18 2006 UTC (12 years, 2 months ago) by taye
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

<html><head><!-- MAIN CONTENT --></head><body><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="file:///C:/Documents%20and%20Settings/Administrateur/Bureau/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 'anykey' 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:
<textarea rows="3" cols="70">extension_dir=H:/Documents and
<li>In the 'anykey' 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 anykey.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
anykey.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 <>