Hi Markus,
thanx for the reply!
I fully understand the consequence of using or not using the obfuscator.
I sometimes want it and sometimes don't.
in any case, I added the proguard to my configuration and it works fine in
eclipseME and builds
fine,
the ANT however will give the same problems I mentioned before, with the
exact same messages,
my build.xml is the one downloaded from the source control as mentioned in
previous posts,
the eclipse-build.xml is the generated one.  if this has known bugs, I'd
love to understand it better.
I'm puzzled. has anyone got it to work? if so, can the relevant files be
posted?
I'll also mention I'm using preprocessing but this does not seem to impose
problems at this point (the compile phase succeeds),

Any help appreciated.
--tzurs

On 6/8/07, Markus Sinner <[EMAIL PROTECTED]> wrote:

I recommend to use an obfuscator, because the size of your output can
easyly shrink by 50 percent. See below for information on proguard.

In my eclipseme-build.xml there is one call:

   <target depends="-eclipseme-build" name="-eclipseme-deployable">
      <echo message="Generating obfuscated jar file..."/>
      <antcall target="-eclipseme-clean"/>
      <delete includeEmptyDirs="true" quiet="true">
         <fileset dir="${path.build.output}" includes="*,*/**"/>
      </delete>
      <antcall target="-eclipseme-internal-package">
         <param name="flag.should.obfuscate" value="true"/>
      </antcall>
   </target>

And this means, that all the time obfuscation is turned on.

AND there is another bug in eclipseme-build.xml.

<target if="flag.should.obfuscate" name="-eclipseme-obfuscate">

That means, if the param "flag.should.obfuscate" EXISTS, then
obfuscation is done. This has to be

if="flag.should.obfuscate = 'true'"

This (and maybe similar problems) should be fixed in future versions.

=====
You have to configure an obfuscator in the J2ME Menu.

Window->Preferences->J2ME->Packaging->Obfuscation

There you must define the root of Proguard.

http://proguard.sourceforge.net/downloads.html

I hope this could help you.

Greetings,
Markus

tzur Sayag schrieb:
> Hi guys,
> I created the build.xml file and used the eclipseme context menu to
> create the other two files.
> I "installed" antenna (well, placed its jar in the eclipse plugin
> directory, couldn't find any install documents for this tool),
> I placed my projectname as moorthy kindely pointed.
> I right click the build.xml runas ant task:
> result:
> Buildfile: C:\Development\EclipseWorkspace
> \TopCardDict\build.xml
> -initialize:
>      [echo] Initializing build environment...
> -eclipseme-initialize:
>      [echo] Initializing EclipseME Antenna build environment...
> -eclipseme-build:
>      [echo] Building source files...
>  [wtkbuild]
**************************************************************
>  [wtkbuild] * Antenna 0.9.15 initialized for project "TopCardDict"
*
>  [wtkbuild] * Using Sun Wireless Toolkit 2.5 (CLDC-1.1; MIDP-2.0
)        *
>  [wtkbuild]
**************************************************************
>  [wtkbuild] Preverifying
> C:\Development\EclipseWorkspace\TopCardDict\3fa5a294.tmp\tmpclasses
>  [wtkbuild] Compiling 83 source files to
> C:\Development\EclipseWorkspace\TopCardDict\33eda7b4.tmp\tmpclasses
>  [wtkbuild] Preverifying
> C:\Development\EclipseWorkspace\TopCardDict\33eda7b4.tmp\tmpclasses
> build:
> -eclipseme-deployable:
>      [echo] Generating obfuscated jar file...
> -eclipseme-clean:
>    [delete] Deleting 89 files from
> C:\Development\EclipseWorkspace\TopCardDict\build\classes
>    [delete] Deleted 13 directories from
> C:\Development\EclipseWorkspace\TopCardDict\build\classes
>    [delete] Deleting 2 files from
> C:\Development\EclipseWorkspace\TopCardDict\deployed
> -eclipseme-initialize:
>      [echo] Initializing EclipseME Antenna build environment...
>     [mkdir] Created dir:
> C:\Development\EclipseWorkspace\TopCardDict\build\classes\_no_export
> -eclipseme-build:
>      [echo] Building source files...
>  [wtkbuild]
**************************************************************
>  [wtkbuild] * Antenna 0.9.15 initialized for project "TopCardDict"
*
>  [wtkbuild] * Using Sun Wireless Toolkit 2.5 (CLDC-1.1; MIDP-2.0
)        *
>  [wtkbuild]
**************************************************************
>  [wtkbuild] Preverifying
> C:\Development\EclipseWorkspace\TopCardDict\9fd3c7ab.tmp\tmpclasses
>  [wtkbuild] Compiling 83 source files to
> C:\Development\EclipseWorkspace\TopCardDict\a86196d7.tmp\tmpclasses
>  [wtkbuild] Preverifying
> C:\Development\EclipseWorkspace\TopCardDict\a86196d7.tmp\tmpclasses
> -eclipseme-internal-package:
>      [copy] Copying 1 file to
> C:\Development\EclipseWorkspace\TopCardDict\deployed
> [wtkpackage] New version is 1.1.75
> [wtkpackage] Building jar:
> C:\Development\EclipseWorkspace\TopCardDict\deployed\TopCardDict.jar
> [wtkpackage] Preverifying
> C:\Development\EclipseWorkspace\TopCardDict\deployed\TopCardDict.jar
> [wtkpackage] Updating JAD file
> C:\Development\EclipseWorkspace\TopCardDict\deployed\TopCardDict.jad
> -eclipseme-obfuscate:
> [wtkobfuscate]
> **************************************************************
> [wtkobfuscate] * Antenna 0.9.15 initialized for project
> "TopCardDict"       *
> [wtkobfuscate] * Using Sun Wireless Toolkit 2.5 (CLDC-1.1;
> MIDP-2.0)        *
> [wtkobfuscate]
> **************************************************************
>
> BUILD FAILED
> C:\Development\EclipseWorkspace\TopCardDict\eclipseme-build.xml:55: The
> following error occurred while executing this line:
> C:\Development\EclipseWorkspace\TopCardDict\eclipseme-build.xml:87: The
> following error occurred while executing this line:
> C:\Development\EclipseWorkspace\TopCardDict\eclipseme-build.xml:90: No
> obfuscator found in WTK bin directory, CLASSPATH, or properties.
>
> Total time: 7 seconds
>
> Its true that I don't have an obfuscator installed. I don't want it.
> must I?
> I added as mentioned in the xml: user-build.properties containing:
> flag.should.obfuscate=false
> no change in the output. still fails.
>
> any thoughts?
> --tzurs
>
>
> ------------------------------------------------------------------------
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/eclipseme-users

--

*********************************
[EMAIL PROTECTED]
http://www.psitronic.de

psitronic IT-Solutions
Markus Sinner
W-Rathenau-Str. 14 - 68642 Bürstadt
Tel.: (+49)6206 / 963513
Fax:  (+49)6206 / 963514

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to