extension build environment
This is the Ant environment that I am using to build my extensions.
It's basically just an automated way of packaging all required files. However, it has some fancy specials:
- A simple preproccessor that can handle conditional code;
e.g. <#mozilla mozilla only #> - Template style syntax for text replacement (regexp)
a la ${author} or ${extension.version} - Optional removal of debug code
- Optional tasks to sign extensions (at least unit my HD broke and I lost some stuff...)
It's good enough to build individual .xpi files for both Mozilla and Firefox while preserving the customizability in Firefox and adding/removing stuff for Mozilla using a single code base.
The nice thing is, that the build.xml file can stay the same for most extensions and all that is required is a custom build.properties file.
I guess it could be don more efficient, but it works for me ;)