Re: [J2me-device-db-general] Plugin Problems
Brought to you by:
s_szczygiel,
space2
|
From: Szasz P. <sp...@sp...> - 2006-09-20 15:05:09
|
Sebastian Szczygiel wrote:
> Hi,
>
> microcode framework creates a "device.profile" which can be found in
> /dist/src after deployment.
>
> Like written in the documentation you have to include this file in your
> java-sources with
>
> //#include "device.profile"
>
> After that you can access all device-properties and also the properties
> generated by pngsize plugin.
>
Yes, but as I see, you save the device.profile file when processing only
the phone. When you process the resource file (res.txt) the file is not
saved.
Ie.:
<exec executable="${microcode.home}/contrib/exporter/exporter.exe"
output="${dist.dir}/src/device.profile">
<arg
line="--root ${j2me.device.db} --set ${exporter.props}
--format cpp:prefix=//#,nameprefix=$,noupper,n
ostrings ${device}"/>
</exec>
^--- here is the device.profile created, but here the exporter doesn't
create the jar or read the res.txt
<target name="resource-collector">
<echo message="Adding resources to JAR ..."/>
<exec executable="${microcode.home}/contrib/exporter/exporter.exe">
<arg
line="--root ${j2me.device.db} --set ${exporter.props}
${device} -d ${res.dir} -r ${res.bld} ++jar ${
dist.dir}/jadjar/${release.filename}.jar"/>
</exec>
</target>
^--- here is the resource collected, the jar created, but the output is
not saved (so the output of pngsize is lost)
--
Best regards,
Szasz Pal
----------------
Space Software Studio
http://www.spacesoftwarestudio.com
|