Using Apache Ant to develop Opera Widgets

Feeling tedious of creating zip files for opera widgets everytime, I decided to use Apache Ant to create the zip file for publishing opera widgets. Here's my build.xml: 

<?xml version="1.0" encoding="UTF-8"?>
<project name="opera_widgets" default="dist" basedir=".">
<property name="dist" location="dist"/>
<target name="init">
<tstamp/>
<mkdir dir="${dist}"/>
</target>
<target name="unitconverter" depends="init">
<delete file="${dist}/unitconverter.wgt" />
<zip basedir="unitconverter" destfile="${dist}/unitconverter.wgt" >
<exclude name="img/UnitCoverter.png" />
<exclude name="img/uc_test.png" />
</zip>
</target>
</project>

After that, run from command line: ant unitconverter, I'll get the dist/unitconverter.wgt and publish it to widgets.opera.com . There's no way to publish automatically for now, so have to upload and click a few buttons. During the widget creation, it skipped  img/UnitCoverter.png and img/uc_test.png, which is useless for end users.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer