ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From me4tatel <me4ta...@gmail.com>
Subject Build blackberry app from servlet with ant
Date Thu, 02 Jul 2009 04:26:15 GMT

Hi,

I'm trying to build a Blackberry app from Java servlet using Ant and
http://bb-ant-tools.sourceforge.net/.


But I'm getting the next exception: 

java.lang.Exception: Problem: failed to create task or type rapc
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


This is my build.xml

<?xml version="1.0" encoding="UTF-8"?>

<project name="${description}" default="buildRIM" basedir=".">

 <taskdef resource="bb-ant-defs.xml" classpath="lib/bb-ant-tools.jar" />

 <property name="jdehome"
  value="C:\ResearchInMotion\BlackBerry_JDE_4.3.0" />

 <property name="simulator" value="${jdehome}\simulator" />

 <property name="bin" value="${jdehome}\bin" />

 <target name="debug" depends="deploy" description="Builds, Deploys Project
and Launches Remote Debug Server">
  <exec executable="cmd.exe" dir="${bin}" spawn="true">
   <arg value="/c" />
   <arg value="jdwp.bat" />
  </exec>
 </target>

 <target name="simulate" depends="deploy" description="Builds, Deploys
Project and Launches Simulator">
  <exec executable="cmd.exe" dir="${simulator}" spawn="true">
   <arg value="/c" />
   <arg value="8130.bat" />
  </exec>
 </target>
 
 <target name="deploy" depends="buildRIM" description="Builds and Deploys
Project">
  <copy todir="${simulator}" overwrite="true">
   <fileset dir="output">
    <include name="*.cod" />
    <include name="*.alx" />
   </fileset>
  </copy>
 </target>

 <target name="buildRIM" description="Builds Project">
  <rapc jdehome="${jdehome}"
   jdkhome="C:\Program Files\Java\jdk1.6.0_05"
   output="Addcel"
   quiet="false">
   
   <jdp type="cldc"
    title="Addcel"
    vendor="Vendor=Vendor"
    version="Version=1.1"
    description="Some application"
    arguments=""
    systemmodule="false"
    runonstartup="true"
    startuptier="7"
    ribbonposition="0"
    icon="../resource/helloworld_jde.png">
   </jdp>
   
   <src>
    <fileset dir=".">
     <include name="**/*.java" />
     <include name="img/**/*.*" />
    </fileset>
   </src>
   <import location="Ref.jar" />
  </rapc>
 </target>

</project>


The exception happen in this line in the servlet:
ProjectHelper.configureProject(project, new File(_baseDir+ "\\" +
_buildFile)); 


If I run the ant in the dir where is the build.xml from command line work
fine, but not from the servlet.
Maybe something is missing in my build.xml?
-- 
View this message in context: http://www.nabble.com/Build-blackberry-app-from-servlet-with-ant-tp24300943p24300943.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message