You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2017/06/20 21:44:00 UTC
[jira] [Resolved] (CB-7198) Build fails when"*/bin/*" folder is
used in Project-Path
[ https://issues.apache.org/jira/browse/CB-7198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-7198.
----------------------------
Resolution: Won't Fix
Ant builds are currently broken, and we're going to be deprecating it entirely in Cordova 7.0
> Build fails when"*/bin/*" folder is used in Project-Path
> --------------------------------------------------------
>
> Key: CB-7198
> URL: https://issues.apache.org/jira/browse/CB-7198
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-android
> Affects Versions: 3.4.0, 3.5.0
> Environment: Windows
> Reporter: Hans Huber
> Assignee: Ian Clelland
> Priority: Minor
>
> "$ cordova build" exists with:
> {noformat}
> -pre-compile:
> [echo] Set jars path to: C:\ant-build\phonegap\test3\hello\platforms\android\CordovaLib\ant-build\classes.jar
> -compile:
> [javac] Compiling 3 source files to C:\bin\phonegap\test3\hello\platforms\android\ant-build\classes
> [javac] C:\bin\phonegap\test3\hello\platforms\android\src\com\example\hello\HelloWorld.java:23: error: package org.apache.cordova does not exist
> [javac] import org.apache.cordova.*;
> [javac] ^
> [javac] C:\bin\phonegap\test3\hello\platforms\android\src\com\example\hello\HelloWorld.java:25: error: cannot find symbol
> [javac] public class HelloWorld extends CordovaActivity
> [javac] ^
> <...>
> {noformat}
> Reason:
> bin/templates/project/custom_rules.xml:
> {noformat}
> ....
> <pathconvert property="fixedJarsPath" refid="project.all.jars.path">
> <filtermapper>
> ***** <replacestring from="/bin/" to="/ant-build/"/>
> ***** <replacestring from="\bin\" to="\ant-build\"/>
> </filtermapper>
> </pathconvert>
> <path id="project.all.jars.path">
> <pathelement path="${fixedJarsPath}"/>
> </path>
> <echo message="Set jars path to: ${toString:project.all.jars.path}"/>
> ....
> {noformat}
> Fix:
> The replace string is just to basic. There should be a file-path exists check or a correct error message should be shown during build process.
> Best Regards
> Tobias
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org