Skip to content

Instantly share code, notes, and snippets.

@stevez
Created September 7, 2011 02:09
Show Gist options
  • Save stevez/1199572 to your computer and use it in GitHub Desktop.
Save stevez/1199572 to your computer and use it in GitHub Desktop.
<target name="create-cod" if="blackberry.trigger">
<exec dir="${dist.dir}" executable="java" failonerror="true">
<arg value="-cp"/>
<arg value="${platform.home}/bin/rapc.jar"/>
<arg value="net.rim.tools.compiler.Compiler"/>
<arg value="import=${platform.bootclasspath}"/>
<arg value="codename=${name}"/>
<arg value="-cldc"/>
<arg value="jad=${basedir}/${dist.dir}/${dist.jad}"/>
<arg value="${basedir}/${dist.dir}/${dist.jar}"/>
</exec>
<property file="${dist.dir}/${dist.jad}"/>
<echo file="${basedir}/${dist.dir}/${name}.alx">
&lt;loader version="1.0"&gt;
&lt;application id="${name}"&gt;
&lt;name&gt;
${MIDlet-Name}
&lt;/name&gt;
&lt;description&gt;
${MIDlet-Description}
&lt;/description&gt;
&lt;version&gt;
${MIDlet-Version}
&lt;/version&gt;
&lt;vendor&gt;
${MIDlet-Vendor}
&lt;/vendor&gt;
&lt;copyright&gt;
${MIDlet-Copyright}
&lt;/copyright&gt;
&lt;fileset Java="1.0"&gt;
&lt;directory/&gt;
&lt;files&gt;${name}.cod&lt;/files&gt;
&lt;/fileset&gt;
&lt;/application&gt;
&lt;/loader&gt;
</echo>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment