Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ant build script. Fixes issue 23. #35

Merged
merged 1 commit into from
Mar 13, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,2 +1,3 @@
{8620c15f-30dc-4dba-a131-7c5d20cf4a29} {8620c15f-30dc-4dba-a131-7c5d20cf4a29}
*.xpi *.xpi
.DS_Store
14 changes: 10 additions & 4 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ then add a file titled '{8620c15f-30dc-4dba-a131-7c5d20cf4a29}' to the "extensio


or whatever the path to your nightlytt folder is. or whatever the path to your nightlytt folder is.


To bundle the extension into an xpi for distribution, run this command to get a `nightlytt.xpi` file: To package the extension into an xpi for distribution simply `ant` and the default build script/target will be invoked:


``` ant
cd extension; zip -r ../nightlytt.xpi * -x@../zipexclude.lst; cd ..
``` You can override the build number used in the filename:

ant -Dbuild.number=1

To build for release (no build version in filename):

ant -Drelease=true


# Development # Development
All bugs are reported to the Nightly Tester Tools component at bugzilla.mozilla.org. [bug list](https://bugzilla.mozilla.org/buglist.cgi?query_format=advanced&component=Nightly%20Tester%20Tools&product=Other%20Applications), [file a bug](https://bugzilla.mozilla.org/enter_bug.cgi?product=Other%20Applications&component=Nightly%20Tester%20Tools). Check out [the wiki](https://wiki.mozilla.org/Auto-tools/Projects/NightlyTesterTools) for a list of current and proposed features and feel free to file bugs and submit patches. All bugs are reported to the Nightly Tester Tools component at bugzilla.mozilla.org. [bug list](https://bugzilla.mozilla.org/buglist.cgi?query_format=advanced&component=Nightly%20Tester%20Tools&product=Other%20Applications), [file a bug](https://bugzilla.mozilla.org/enter_bug.cgi?product=Other%20Applications&component=Nightly%20Tester%20Tools). Check out [the wiki](https://wiki.mozilla.org/Auto-tools/Projects/NightlyTesterTools) for a list of current and proposed features and feel free to file bugs and submit patches.
Expand Down
24 changes: 24 additions & 0 deletions build.xml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0"?>

<project name="nightlytt" default="package">
<tstamp>
<format property="build.number" pattern="yyyyMMddHHmm"/>
</tstamp>

<target name="getversion" unless="build.version">
<xmlproperty file="extension/install.rdf" collapseAttributes="true"/>
<property name="build.version" value="${RDF.Description.em:version}"/>
<echo>build.version: ${build.version}</echo>
</target>

<target name="package" depends="getversion">
<condition property="package.filename" value="${ant.project.name}-${build.version}.xpi">
<isset property="release"/>
</condition>
<property name="package.filename" value="${ant.project.name}-${build.version}-${build.number}.xpi"/>
<delete file="${package.filename}"/>
<zip destfile="${package.filename}" basedir="extension" excludesfile=".gitignore"/>
<echo>package.filename: ${package.filename}</echo>
</target>

</project>
10 changes: 0 additions & 10 deletions zipexclude.lst

This file was deleted.