cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-6226) Can't build with ant: ant-build directory
Date Tue, 11 Mar 2014 20:38:44 GMT

     [ https://issues.apache.org/jira/browse/CB-6226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Grieve resolved CB-6226.
-------------------------------

    Resolution: Won't Fix
      Assignee: Andrew Grieve

It's pretty much impossible to make the tools work in all configuations at once.

Even without CLI, you can use the cordova scripts that come with the platform to build:
{code}
platforms/android/cordova/build
{code}

If you want to use ant directly, have a look at how it's invoked by the scripts:
{code}
platforms/android/cordova/lib/build.js
{code}

> Can't build with ant: ant-build directory
> -----------------------------------------
>
>                 Key: CB-6226
>                 URL: https://issues.apache.org/jira/browse/CB-6226
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.4.0
>            Reporter: Jacob Weber
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> For various reasons, I'm not using the CLI tools to build my Cordova apps.
> On Android, if I create a new app (using the CLI tool), and run "ant debug", I get various
errors like this:
> {noformat}
> -compile:
>     [javac] Compiling 9 source files to /path/to/myapp/platforms/android/bin/classes
>     [javac] /path/to/myapp/platforms/android/src/com/myapp/MyApp/MyApp.java:25: error:
cannot find symbol
>     [javac] public class MyApp extends CordovaActivity 
>     [javac]                                  ^
>     [javac]   symbol: class CordovaActivity
> {noformat}
> This seems to be due to the custom_rules.xml file, which changes the output directory
from "bin" to "ant-build". However, that value isn't set everywhere.
> I can fix it if I remove custom_rules.xml, or if I put an "ant.properties" file in BOTH
the android and the android/CordovaLib directories, with the text "out.dir=ant-build".



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message