1. #61
    Sencha User
    Join Date
    Dec 2012
    Posts
    27
    Vote Rating
    0
    webdev13 is on a distinguished road

      0  

    Default


    Hi bricemason,

    thanks for your support and help .

    let me show more details
    first i installed ant :
    ant.jpg

    and phonegap folder in C:\phonegap-2.4.0

    and builder in C:\sencha-cordova-builder-master

    cordova.properties file :
    Code:
    cordova.lib=\\phonegap-2.4.0
    
    # files used to determine when building has finished
    cordova.flags.built.android=${basedir}\\_android.built
    cordova.flags.built.ios=${basedir}\\_ios.built
    cordova.flags.deploy.android=${basedir}\\_android.deploy
    cordova.flags.deploy.ios=${basedir}\\_ios.deploy
    
    # android tools and resources
    cordova.android.tools=${cordova.lib}\\lib\\android
    cordova.android.tools.bin=${cordova.android.tools}\\bin
    
    # android project
    cordova.android.project=${build.dir}\\android
    cordova.android.project.www=${cordova.android.project}\\assets\\www
    cordova.android.project.name=${app.name}
    cordova.android.project.namespace=com.example.${cordova.android.project.name}
    cordova.android.project.js.name=cordova-android.js
    cordova.android.project.js=${basedir}\\${cordova.android.project.js.name}
    cordova.android.project.app.json.name=app-android.json
    cordova.android.project.app.json=${basedir}\\${cordova.android.project.app.json.name}
    
    # ios tools and resources
    cordova.ios.tools=${cordova.lib}\\lib\\ios
    cordova.ios.tools.bin=${cordova.ios.tools}\\bin
    
    # ios project
    cordova.ios.project=${build.dir}\\ios
    cordova.ios.project.www=${cordova.ios.project}\\www
    cordova.ios.project.name=${app.name}
    cordova.ios.project.namespace=com.example.${cordova.ios.project.name}
    cordova.ios.project.js.name=cordova-ios.js
    cordova.ios.project.js=${basedir}\\${cordova.ios.project.js.name}
    cordova.ios.project.app.json.name=app-ios.json
    cordova.ios.project.app.json=${basedir}\\${cordova.ios.project.app.json.name}
    builder.xml file :
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <project name="testbuilder" default=".help">
        <import file="${basedir}/.sencha/app/build-impl.xml"/>
        <import file="/sencha-cordova-builder-master/build-cordova.xml" />
        <target name="-after-build" depends="-build-android" />
        
        <target name="-after-build-android">
        
        <exec executable="ant">
            <arg value="-buildfile" />
            <arg value="${cordova.android.project}/build.xml" />
            <arg value="debug" />
        </exec>
    
        <exec executable="adb">
            <arg value="install" />
            <arg value="-r" />
            <arg value="${cordova.android.project}/bin/${app.name}-debug.apk" />
        </exec>
        </target>
        <!--
        The following targets can be provided to inject logic before and/or after key steps
        of the build process:
    
            The "init-local" target is used to initialize properties that may be personalized
            for the local machine.
    
                <target name="-before-init-local"/>
                <target name="-after-init-local"/>
    
            The "clean" target is used to clean build output from the build.dir.
    
                <target name="-before-clean"/>
                <target name="-after-clean"/>
    
            The general "init" target is used to initialize all other properties, including
            those provided by Sencha Cmd.
    
                <target name="-before-init"/>
                <target name="-after-init"/>
                
            The "page" target performs the call to Sencha Cmd to build the 'all-classes.js' file.
    
                <target name="-before-page"/>
                <target name="-after-page"/>
    
            The "build" target performs the call to Sencha Cmd to build the application.
    
                <target name="-before-build"/>
                <target name="-after-build"/>
        -->
    
    </project>

    but i still see the folowwing error :
    Code:
    [ERR]           BUILD FAILED
    [ERR]           com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    [ERR]           C:\wamp\www\testbuilder\build.xml:10: Execute failed: java.io.IO
    Exception: Cannot run program "ant": CreateProcess error=2, The system cannot fi
    nd the file specified
    [ERR]                   at com.sencha.exceptions.BasicException.wrap(BasicExcept
    ion.java:43)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.AbstractCommand.dispatch(AbstractComma
    nd.java:182)
    [ERR]                   at com.sencha.ant.SenchaCommandTask.doExecute(SenchaComm
    andTask.java:58)
    [ERR]                   at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:2
    2)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.ja
    va:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTa
    rgets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginComma
    nd.run(BasePluginCommands.java:87)
    [ERR]                   at com.sencha.command.BasePluginCommands$BasePluginComma
    nd.run(BasePluginCommands.java:91)
    [ERR]                   at com.sencha.command.BasePluginCommands$BaseNamePathCom
    mand.run(BasePluginCommands.java:135)
    [ERR]                   at com.sencha.command.app.AppCommands$BuildCommand.execu
    te(AppCommands.java:106)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERR]                   at com.sencha.command.Sencha.main(Sencha.java:71)
    [ERR]           Caused by: C:\sencha-cordova-builder-master\build-cordova-androi
    d.xml:40: The following error occurred while executing this line:
    [ERR]           C:\wamp\www\testbuilder\build.xml:10: Execute failed: java.io.IO
    Exception: Cannot run program "ant": CreateProcess error=2, The system cannot fi
    nd the file specified
    [ERR]                   at org.apache.tools.ant.ProjectHelper.addLocationToBuild
    Exception(ProjectHelper.java:551)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
    4)
    [ERR]                   at org.apache.tools.ant.taskdefs.CallTarget.execute(Call
    Target.java:105)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.Project.executeTarget(Project.ja
    va:1368)
    [ERR]                   at org.apache.tools.ant.helper.DefaultExecutor.executeTa
    rgets(DefaultExecutor.java:41)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERR]                   at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERR]                   at com.sencha.command.ant.AntCommand.execute(AntCommand.
    java:75)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERR]                   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERR]                   ... 31 more
    [ERR]           Caused by: C:\wamp\www\testbuilder\build.xml:10: Execute failed:
     java.io.IOException: Cannot run program "ant": CreateProcess error=2, The syste
    m cannot find the file specified
    [ERR]                   at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTa
    sk.java:675)
    [ERR]                   at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTa
    sk.java:498)
    [ERR]                   at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERR]                   at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
    ource)
    [ERR]                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERR]                   at java.lang.reflect.Method.invoke(Unknown Source)
    [ERR]                   at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERR]                   at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]                   at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]                   at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERR]                   at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERR]                   at org.apache.tools.ant.helper.SingleCheckExecutor.execu
    teTargets(SingleCheckExecutor.java:38)
    [ERR]                   at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERR]                   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
    2)
    [ERR]                   ... 52 more
    [ERR]           Caused by: java.io.IOException: Cannot run program "ant": Create
    Process error=2, The system cannot find the file specified
    [ERR]                   at java.lang.ProcessBuilder.start(Unknown Source)
    [ERR]                   at java.lang.Runtime.exec(Unknown Source)
    [ERR]                   at org.apache.tools.ant.taskdefs.Execute$Java13CommandLa
    uncher.exec(Execute.java:862)
    [ERR]                   at org.apache.tools.ant.taskdefs.Execute.launch(Execute.
    java:481)
    [ERR]                   at org.apache.tools.ant.taskdefs.Execute.execute(Execute
    .java:495)
    [ERR]                   at org.apache.tools.ant.taskdefs.ExecTask.runExecute(Exe
    cTask.java:631)
    [ERR]                   at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTa
    sk.java:672)
    [ERR]                   ... 65 more
    [ERR]           Caused by: java.io.IOException: CreateProcess error=2, The syste
    m cannot find the file specified
    [ERR]                   at java.lang.ProcessImpl.create(Native Method)
    [ERR]                   at java.lang.ProcessImpl.<init>(Unknown Source)
    [ERR]                   at java.lang.ProcessImpl.start(Unknown Source)
    [ERR]                   ... 72 more
    [ERR]           Total time: 49 seconds
    [ERR]           com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    C:\wamp\www\testbuilder\build.xml:10: Execute failed: java.io.IOException: Canno
    t run program "ant": CreateProcess error=2, The system cannot find the file spec
    ified
    i
    and i dont see apk file in bin folder

    i'm sure the phonegap builder working very fine and its great , but i dont know what happening in my machien

    so can you please help me ?

  2. #62
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
    shanghailoz is on a distinguished road

      0  

    Default


    Code:
    [ERR]           C:\wamp\www\testbuilder\build.xml:10: Execute failed: java.io.IOException: Cannot run program "ant": CreateProcess error=2, The system cannot find the file specified
    Make sure that ant is in the path.

    If you type ant and press enter, does it show file not found, or does ant run?
    If it shows file not found, you haven't setup the paths to the tools / sdk folder.
    Reread the instructions on that step in the Android SDK install.

  3. #63
    Sencha User
    Join Date
    Dec 2012
    Posts
    27
    Vote Rating
    0
    webdev13 is on a distinguished road

      0  

    Default


    this is my what in path
    Code:
    C:\Program Files (x86)\Android\android-sdk;C:\java\ant\bin;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files\Java\jdk1.7.0_15\bin;C:\wamp\bin\php\php5.4.3

  4. #64
    Sencha User
    Join Date
    Dec 2012
    Posts
    27
    Vote Rating
    0
    webdev13 is on a distinguished road

      0  

    Default


    when i type and inside my project i get the following ,please find the image below
    ant-insideproject.jpg

  5. #65
    Sencha User
    Join Date
    Jun 2011
    Posts
    13
    Vote Rating
    0
    rob.n is on a distinguished road

      0  

    Default Good to know

    Good to know


    Hi Brice and thanks for an excellent utility,

    When using Phonegap 2.4.0 the javascript file is not located in
    Code:
    /lib/ios/
    but in
    Code:
    /lib/ios/CordovaLib/
    Small fix is to copy the file
    Code:
    /lib/ios/CordovaLib/cordova.ios.js
    to
    Code:
    /lib/ios/cordova-2.4.0.js
    Better would of course be to find the file by itself and copy it : )

    Best regards
    Robert

  6. #66
    Sencha User
    Join Date
    Dec 2012
    Posts
    27
    Vote Rating
    0
    webdev13 is on a distinguished road

      0  

    Default


    i'm sorry to you, to add more comments , to be honest i got crazy cuz of this issue , i'm sure ant is installed , but i still see the same error again and again , see the attached image please
    Untitled.jpg

    i apologize again

  7. #67
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    @webdev13, no apologies necessary. Bundle up your project and post it. I'll take a look and even do a screencast with it if necessary so you can see everything I've tried. We'll get it straightened out.

    Thanks,

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  8. #68
    Sencha User
    Join Date
    Dec 2012
    Posts
    27
    Vote Rating
    0
    webdev13 is on a distinguished road

      0  

    Default


    thanks Brice ,
    its very kind of you , kindly find the project at http://leads-map.com/myApp1.zip
    but there is nothing special in the project , i was only testing your great utility , so i followed all your instructions .

    anyway , thank you a lot

    regards

  9. #69
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
    giorgino is on a distinguished road

      0  

    Default unable to use phonegap api

    unable to use phonegap api


    Dear Brice,
    first of all thank you for you great job!
    I've a bit of experience in phonegap ios/andoird development but I'm totally new to ST; I succeded using your Sencha Cordova Builder, the app shows the correct version of phonegap, but now I don't know how to call the Phonegap API ! This seems to be a very silly question, but I tried anything which camed to my mind. I'm using ST2.1.1 , Phonegap 2.3.0, Windows7 64bit.
    Let's do something really basic, like calling navigator.app.loadURL('http://www.google.com') : how can I do this inside my ST app ? I tried with a segmentedbutton, just because the test app had one already created and it was easy to modify it:

    Code:
    {
        xtype: 'segmentedbutton',
        allowDepress: false,
        items: [
            { text: 'test1',  handler: function() { loadUrl('http://www.google.com'); } },
            { text: 'test2', handler: function() { navigator.Test1.loadUrl('http://www.google.com'); } },
            { text: 'test3',    handler: function() { Test1.navigator.loadUrl('http://www.google.com'); } },
            { text: 'test4',    handler: function() { Test1.navigator.Test1.loadUrl('http://www.google.com'); } },
            { text: 'test5',    handler: function() { Test1.navigator.app.loadUrl('http://www.google.com'); } },
            { text: 'test6',    handler: function() { navigator.app.loadUrl('http://www.google.com'); } },
            { text: 'test7',    handler: function() { navigator.loadUrl('http://www.google.com'); } }
        ]
    }
    but I always get an undefined <something> error...

    Many thanks for your help!
    Giorgio

  10. #70
    Sencha User
    Join Date
    Jun 2011
    Posts
    13
    Vote Rating
    0
    rob.n is on a distinguished road

      0  

    Default Custom namespace

    Custom namespace


    Hi,

    Im building apps used in different scenarios (chocking) and uses different namespace as to keep track of who and what the app is used for/by.

    For example:
    com.foo.internal.monitoring.Environment
    com.foo.internal.monitoring.Backups
    com.foo.internal.issue.Reporter


    This is just some bad examples.

    Currently i set the "base" namespace in cordova.properties, "com.foo.internal" and then in folder ".sencha" under my app i specify the namespace "monitoring.Enviroment" in sencha.cfg.

    This generates a ugly XCode project, "monitoring.Environment.xcodeproj" it would be nice to be able to set the app namespace in build.xml under the app.

    Been trying to post an argument to build-cordova-ios.xml but without luck, dont know where to begin.. .

    Is this something that could be done or is this the best way of doing it?

    Thanks and best regards
    Robert

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi