1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    9
    Vote Rating
    0
    marcelsnews is on a distinguished road

      0  

    Default error while building jsb3 file: Project file doesn't exist

    error while building jsb3 file: Project file doesn't exist


    Hi every one
    i have configured my project. I wrote my jsb3 file, but when i make <ctrl + b> i have this message in the output console: "Project file doesn't exist"

    There is no file created as i was expected !

    Have somebody had this problem ? Please how did you solve it ?

    Here is a part of my app.jsb3 file

    Thanks a lot for help guys

    NOTA:
    Should i have to create manualy the files:
    - controllers.js, views.js, models.js ? i'm not sure this is the cause of my problem :-(
    ---------------------
    {
    "projectName": "Application Test",
    "licenseText": "Free Licence - Opensource",
    "packages": [
    {
    "name": "Application Controllers",
    "target": "tablet/controllers/controllers.js",
    "id" : "controllers",
    "files" : [ ]
    },
    {
    "name": "Application Models",
    "target": "tablet/models/models.js",
    "id" : "models",
    "files" : [ ]
    },
    {
    "name": "Application Views",
    "target": "tablet/views/views.js",
    "id" : "views",
    "files" : [
    {"path": "tablet/views/", "name": "ContactDetail.js"},
    {"path": "tablet/views/", "name": "ContactForm.js"},
    {"path": "tablet/views/", "name": "ContactsList.js"},
    ...
    ]
    }
    ],
    "builds": [
    {
    "name": "Application Test - Production",
    "target": "app-debug.js",
    "debug": true,
    "compress": true,
    "options": {
    "minVersion": 1.1
    },
    "packages": [
    "controllers",
    "models",
    "views"
    ]
    }
    ],
    "resources": [
    {"src": "../jsbuilder/"},
    {"src": "../lib/"},
    {"src": "../resources/"},
    {"src": "../test/"},
    {"src": "app.jsb3", "dest": "app.jsb3", "filters": ".*" },
    {"src": "index.html"}
    ...
    ]
    }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    If you are using MVC then there are two commands you should use. The first is the one that will create the jsb3 file for you and the second will do the actual build for you:

    sencha create jsb -a index.html -p app.jsb3

    sencha build -p app.jsb3 -d ./
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    9
    Vote Rating
    0
    marcelsnews is on a distinguished road

      0  

    Default where to execute this commands ?

    where to execute this commands ?


    Hi guys thanks for the quick reply.

    I am wondering from "WHERE" i should execute those "commands" ?
    - My windows cmd.exe
    - if configured on aptana, how should i do it ?

    I've created a project with eclipse. And another one in Aptana that references my eclipse project's "www" directory. So i'm working on aptana to design all the code that i want to minify.

    NOTA:
    - I'm following the "Contact" example to create my application
    <http://www.sencha.com/learn/a-sencha...with-phonegap/>
    - I've configured my JSbuilderon aptana according to this tutorial:
    <http://www.swarmonline.com/2011/02/h...na-on-windows/>

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    9
    Vote Rating
    0
    marcelsnews is on a distinguished road

      0  

    Default


    Hey guys

    Sorry for not reading enought :-(. I've found the tool to manage my .jsb3 in ExtJs distribution :-).

    On the otherhand, i was trying to configure my builder on APTANA. I was including quote (" ") on my JSBuilder config Argument..that what was wrong :-(

    BAD:
    ------
    /C JSBuilder.bat -v -p "${workspace_loc:/MyProjectName/app/project.jsb3}" -d ${workspace_loc:/MyProjectName/deploy/}

    GOOD:
    --------
    /C JSBuilder.bat -v -p ${workspace_loc:/MyProjectName/app/project.jsb3} -d ${workspace_loc:/MyProjectName/deploy/}

    I was following this tutorial : Integrate JSBuilder in Aptana/Eclipse
    http://www.swarmonline.com/2011/02/h...na-on-windows/