PDA

View Full Version : error while building jsb3 file: Project file doesn't exist



marcelsnews
27 Dec 2011, 9:08 PM
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"}
...
]
}

mitchellsimoens
28 Dec 2011, 8:36 AM
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 ./

marcelsnews
28 Dec 2011, 1:49 PM
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-touch-mvc-application-with-phonegap/>
- I've configured my JSbuilderon aptana according to this tutorial:
<http://www.swarmonline.com/2011/02/how-to-integrate-js-builder-3-with-eclipse-or-aptana-on-windows/>

marcelsnews
19 Jan 2012, 5:58 AM
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/how-to-integrate-js-builder-3-with-eclipse-or-aptana-on-windows/