Discussion:
Not able to use #condition directive
Aggarwal Amit
2008-08-27 12:47:48 UTC
Permalink
Hi,

I am not able to use //#condition directive, while preprocessing. I want
to exclude few files from compilation.
I am using //#condition [expression ] on top of the file .But still,
when i do the build(using eclipse), it still compiles these files and
puts them in .processed directory.

I have defined [expression] as a symbol and value is false. ..Any
pointers ?

Best Regards
Amit Aggarwal
Aggarwal Amit
2008-09-01 09:13:15 UTC
Permalink
Hi,

I have a src directory which has code specific to Blackberry build and
others. So i preprocess it using wtkpreprocess before finally doing the
build.
Now, after preprocessing it, i am not able to use wtkrapc task to
compile. The error i get is I/O error (Access Denied)

Below is the Script and error output.
============
Script
===========
<target name="-eclipseme-bb-8100"
description="Build for 8100 Pearl">
<echo message="Building for Blackberry Pearl 8100 "/>
<mkdir dir="${path.build.output.BlackBerry.Pearl}" />
<wtkrapc
verbose="true"
jadfile="${path.build.output.BlackBerry}/${midlet.name}.jad"
source = "${path.preprocessed}/src"
codename="${midlet.name}"
import="${bb.buildjars.home.lib}\net_rim_api.jar"
destdir="${path.build.output.BlackBerry.Pearl}"
quiet="true" midlet="true"
/>
</target>


================
Error Output
===============
eclipseme-bb-8100:
[echo] Building for Blackberry Pearl 8100
[mkdir] Created dir: C:\JAVA\J2ME\Phase2\deployed\BlackBerry\BBPearl
[wtkrapc]
**************************************************************
[wtkrapc] * Antenna 1.0.1 initialized for project "Phase2"
*
[wtkrapc] * Using Sun Wireless Toolkit 2.5 (CLDC-1.1; MIDP-2.0)
*
[wtkrapc]
**************************************************************
[wtkrapc]
**************************************************************
[wtkrapc] * RAPC Ant Task v0.1 initialized for project "Phase2"
*
[wtkrapc] * Ant task by C. Enrique Ortiz, ***@j2medeveloper.com
<mailto:***@j2medeveloper.com> *
[wtkrapc] * For JDE 3.7 (C:\Program Files\Research In Motion\BlackBerry
JDE 4.3.0\bin) *
[wtkrapc]
**************************************************************
[wtkrapc] Codename : Phase2
[wtkrapc] JAD :
C:\JAVA\J2ME\Phase2\deployed\BlackBerry\Phase2.jad
[wtkrapc] Source(s) : C:\JAVA\J2ME\Phase2\preprocessed\src
[wtkrapc] Imports : C:\Program Files\Research In Motion\BlackBerry
JDE 4.3.0\lib\net_rim_api.ja

[wtkrapc] MIDlet mode: true
[wtkrapc] Quiet mode : true
[wtkrapc] DestDir : C:\JAVA\J2ME\Phase2\deployed\BlackBerry\BBPearl
[wtkrapc] Compiling now...
[wtkrapc]
[wtkrapc] I/O Error: C:\JAVA\J2ME\Phase2\preprocessed\src (Access is
denied)
[wtkrapc] Exception: Failed (result=1)
[wtkrapc] Done

UILD FAILED"
Craig Setera
2008-09-07 19:59:34 UTC
Permalink
You might want to ask on the Blackberry developers forums... I don't
know what might be going on.
Post by Aggarwal Amit
Hi,
I have a src directory which has code specific to Blackberry build and
others. So i preprocess it using wtkpreprocess before finally doing
the build.
Now, after preprocessing it, i am not able to use wtkrapc task to
compile. The error i get is I/O error (Access Denied)
Below is the Script and error output.
============
Script
===========
<target name="-eclipseme-bb-8100"
description="Build for 8100 Pearl">
<echo message="Building for Blackberry Pearl 8100 "/>
<mkdir dir="${path.build.output.BlackBerry.Pearl}" />
<wtkrapc
verbose="true"
jadfile="${path.build.output.BlackBerry}/${midlet.name}.jad"
source = "${path.preprocessed}/src"
codename="${midlet.name}"
import="${bb.buildjars.home.lib}\net_rim_api.jar"
destdir="${path.build.output.BlackBerry.Pearl}"
quiet="true" midlet="true"
/>
</target>
================
Error Output
===============
[echo] Building for Blackberry Pearl 8100
[mkdir] Created dir: C:\JAVA\J2ME\Phase2\deployed\BlackBerry\BBPearl
[wtkrapc] **************************************************************
[wtkrapc] * Antenna 1.0.1 initialized for project "Phase2" *
[wtkrapc] * Using Sun Wireless Toolkit 2.5 (CLDC-1.1; MIDP-2.0) *
[wtkrapc] **************************************************************
[wtkrapc] **************************************************************
[wtkrapc] * RAPC Ant Task v0.1 initialized for project "Phase2" *
[wtkrapc] * For JDE 3.7 (C:\Program Files\Research In
Motion\BlackBerry JDE 4.3.0\bin) *
[wtkrapc] **************************************************************
[wtkrapc] Codename : Phase2
[wtkrapc] JAD : C:\JAVA\J2ME\Phase2\deployed\BlackBerry\Phase2.jad
[wtkrapc] Source(s) : C:\JAVA\J2ME\Phase2\preprocessed\src
[wtkrapc] Imports : C:\Program Files\Research In Motion\BlackBerry
JDE 4.3.0\lib\net_rim_api.ja
[wtkrapc] MIDlet mode: true
[wtkrapc] Quiet mode : true
[wtkrapc] DestDir : C:\JAVA\J2ME\Phase2\deployed\BlackBerry\BBPearl
[wtkrapc] Compiling now...
[wtkrapc]
[wtkrapc] I/O Error: C:\JAVA\J2ME\Phase2\preprocessed\src (Access is
denied)
[wtkrapc] Exception: Failed (result=1)
[wtkrapc] Done
UILD FAILED"
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Loading...