I have an ant task that looks like this:
<target name="preprocess_base">
<property name="wtk.midp.version" value="2.0"/>
<property name="wtk.cldc.version" value="1.0"/>
<wtkpreprocess
verbose="false"
srcdir="src"
destdir="out"
device="${device-name}"
devicedbpath="D:\proyectos\DEVICES_REP\trunk\server\res"
symbols="ZAMAEUA='${zamae-ua}',MYSCREENSIZE='${myscreensize}'"
printsymbols="true">
<!-- Load a.symbols -->
<symbols_file name="${basedir}/${symbol-filename}"/>
</wtkpreprocess>
</target>
Unfortunately Antenna throws an exception (you can see the whole stack trace here below), apparently because of the following:
I'm setting the parameter "${zamae-ua}" to be equal to this "Motorola/Motoslvr L7e" from the caller to this target "preprocess_base".
Apparently antenna doesn't like the space between "Motorola/Motoslvr" and " L7e", as can be read below ("Caused by: line 1:637: unexpected token: L7e")
Could you please if possible give me help on this?
Thanks and regards
Mario
PS Here's the stack trace
antenna.preprocessor.PreprocessorException: Error evaluating symbols "ZAMAEUA='Motorola/Motoslvr L7e',MYSCREENSIZE='176x204',IMEI_KEY='IMEI',fullcanvaswidth='176',supportfloatingpoint='true',key.leftsoftkey='-21',identifier='Motorola/Motoslvr L7e',property.imsi='IMSI',emulator.class='MotorolaEmulator',features='cldc,cldc1.1,cldc11,hascommandkeyevents,hasfloatingpoint,midp,midp2',screensize='176x220',screenwidth='176',bitsperpixel='16',fullcanvasheight='220',javaconfiguration='CLDC/1.1',menubar.optionsposition='left',build.bootclasspath='midp-2.0.jar,cldc-1.1.jar',fullcanvassize='176x220',key.changeinputmodekey='48',iconsize='15x15',key.returnkey='-8',build.implicitgroups='midp2',Motorola/Motoslvr L7e,key.rightsoftkey='-22',Vendor='Motorola',javaplatform='MIDP/2.0',textfield.characterskeystar='',key.middlesoftkey='-23',groups=false,vendor='Motorola',iconwidth='15',bugs='ignoreTitleCall,sharedRmsRequiresSigning',key.changenumericalalphainputmodekey='35',javapackage='mmapi1.1, wmapi1.0, wmapi2.0',screenheight='220',iconheight='15',name='Motoslvr L7e'"
at antenna.preprocessor.v2.PreprocessorBridge.addSymbols(PreprocessorBridge.java:117)
at de.pleumann.antenna.WtkPreprocess.execute(WtkPreprocess.java:206)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.Main.start(Main.java:161)
at org.apache.tools.ant.Main.main(Main.java:250)
Caused by: antenna.preprocessor.v2.PPException: Error evaluating symbols "ZAMAEUA='Motorola/Motoslvr L7e',MYSCREENSIZE='176x204',IMEI_KEY='IMEI',fullcanvaswidth='176',supportfloatingpoint='true',key.leftsoftkey='-21',identifier='Motorola/Motoslvr L7e',property.imsi='IMSI',emulator.class='MotorolaEmulator',features='cldc,cldc1.1,cldc11,hascommandkeyevents,hasfloatingpoint,midp,midp2',screensize='176x220',screenwidth='176',bitsperpixel='16',fullcanvasheight='220',javaconfiguration='CLDC/1.1',menubar.optionsposition='left',build.bootclasspath='midp-2.0.jar,cldc-1.1.jar',fullcanvassize='176x220',key.changeinputmodekey='48',iconsize='15x15',key.returnkey='-8',build.implicitgroups='midp2',Motorola/Motoslvr L7e,key.rightsoftkey='-22',Vendor='Motorola',javaplatform='MIDP/2.0',textfield.characterskeystar='',key.middlesoftkey='-23',groups=false,vendor='Motorola',iconwidth='15',bugs='ignoreTitleCall,sharedRmsRequiresSigning',key.changenumericalalphainputmodekey='35',javapackage='mmapi1.1, wmapi1.0, wmapi2.0',screenheight='220',iconheight='15',name='Motoslvr L7e'"
at antenna.preprocessor.v2.Preprocessor.addDefines(Preprocessor.java:101)
at antenna.preprocessor.v2.PreprocessorBridge.addSymbols(PreprocessorBridge.java:113)
... 58 more
Caused by: line 1:637: unexpected token: L7e
at antenna.preprocessor.v2.parser.APPParser.define(APPParser.java:887)
at antenna.preprocessor.v2.parser.APPParser.defines(APPParser.java:1013)
at antenna.preprocessor.v2.parser.Defines.addDefines(Defines.java:67)
at antenna.preprocessor.v2.Preprocessor.addDefines(Preprocessor.java:97)
... 59 more
BUILD FAILED