-
11 Nov 2012 6:04 AM #1
Answered: Sencha CMD 3.0.0.230 - buildPaths not taken into account?
Answered: Sencha CMD 3.0.0.230 - buildPaths not taken into account?
Hi!
I'm using this configuration in my app.json:
"buildPaths": {
"testing": "build/testing",
"production": "build/production",
"package": "build/phonegap/www",
"native": "build/native"
},
And yet, the result of doing a "sencha app build package" goes into "build/MyApp/package".
Is that a known bug, or am I doing sth wrong?
Or should I update to the latest release?
Thanks
-
Best Answer Posted by mitchellsimoens
buildPaths in app.json will not be used and we will be removing it from app.json when you generate a new app.
You can change the paths in .sencha/app/build-impl.xml around line 170
-
13 Nov 2012 5:39 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
buildPaths in app.json will not be used and we will be removing it from app.json when you generate a new app.
You can change the paths in .sencha/app/build-impl.xml around line 170Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Nov 2012 9:26 AM #3
-
14 Nov 2012 9:33 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
The value is the name of the directory
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
14 Nov 2012 9:35 AM #5
The value of what? Please be more specific as I'm not familiar with Ant config files. This is what I have currently:
Code:<!-- Build --> <target name="-before-build"/> <target name="-build" depends="sass,page,run"/> <target name="-after-build"/> <target name="build" depends="init,-before-build,-build,-after-build" description="Builds the application"/> <!-- environment setters --> <target name="production"> <property name="args.environment" value="production"/> </target> <target name="testing"> <property name="args.environment" value="testing"/> </target> <target name="native"> <property name="args.environment" value="native"/> </target> <target name="package"> <property name="args.environment" value="package"/> </target>
-
16 Nov 2012 8:02 AM #6
*bump*
I'd really appreciate an answer on this, please.
-
19 Nov 2012 2:49 AM #7
Why is there still a section "buildPaths" in app.json, if there is no use for it? It makes me angry to waste my time.
to fix the behavior, u can edit ant/build.xml like explained here
-
19 Nov 2012 5:56 AM #8
edit the build.xml (sencha cmd) and copy the build output to any location u want
I was wasting a lot of time to notice that buildPaths is not workingCode:<target name="-after-build"> <copy todir="../assets/www"> <fileset dir="build/qwertz/production"/> </copy> </target>
-
21 Nov 2012 1:26 PM #9
Hello,
I change build-impl.xml like this:
and run this command:Code:<!-- environment setters --> <target name="ios"> <property name="args.environment" value="ios/www"/> </target> -->
and I get this error :Code:sencha app build ios
Can you please explain how to do this ?Code:Sencha Cmd v3.0.0.250 [ERR] 'ios' not in valid range: [native, package, testing, production] [ERR] Illegal value : ios
Next step is a android target ( I use phonegap, that's why I need to build in different folder)
-
29 Nov 2012 1:46 PM #10
I have tested the solution of editing build-impl.xml, and it works. More details have been recorded in Sencha-touch and PhoneGap (Cordova) tutorial
Good luck.


Reply With Quote