-
25 Oct 2012 12:40 PM #1
Sencha Cmd v3.0.0.190 does not use app.json buildpath settings
Sencha Cmd v3.0.0.190 does not use app.json buildpath settings
Like the title says.
It will always create a build in a sub dir of the current working dir.
Running the OSX version by the way on mountain lion.twitter: @realjax
-
26 Oct 2012 6:29 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
We will be removing them as they are not used at all.
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.
-
27 Oct 2012 2:00 PM #3
Instead, why not implement it so it can be used ?
It seems usefull to metwitter: @realjax
-
28 Oct 2012 5:54 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
You can change this in the .sencha/app/build-impl.xml
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.
-
6 Nov 2012 3:43 AM #5
I'm used it
I'm using phonegap, and so, I want two separate builds for android and iOS.
So I have this in app.json:
"buildPaths": {
"testing": "build/testing",
"production": "build/production",
"package-ios": "build/ios/www",
"package-android": "build/android/assets/www",
"native": "build/native"
},
And, so, I can build my app like this:
sencha app build package-ios
or
sencha app build package-android
Now it's impossible. Is there a more correct way to do such thing?
-
6 Nov 2012 4:41 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
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.
-
6 Nov 2012 5:38 AM #7
Hehe, it's not so obvious

I found this in build-impl.xml:
<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>
Adding another target don't add target to valid targets list.
-
6 Nov 2012 5:40 AM #8
Also, there is no any references to "path" or something like this in that file.
All "path" mentions are about .jar file paths which is obviously not what I need.
Sorry, my english is not very good )
-
6 Nov 2012 9:55 AM #9
We REALLY need better documentation on this Sencha Cmd stuff. It changes all the time, and it's very unclear how we're supposed to use it.
-
7 Nov 2012 12:26 AM #10
For you guys, who deal with the same problem here the solution:
As told above, buildPaths in app.json is no more used, so you can safely remove it.
But now we have build.xml in the root of the project, which is regular ant-tasks file.
So we can add our custom tasks:
I added this between <project> tags:
<target name="-after-build">
<copy todir="build/ios/www">
<fileset dir="build/PM/package"/>
</copy>
<copy todir="build/android/assets/www">
<fileset dir="build/PM/package"/>
</copy>
</target>
If you want file in other location, I think you can just add "move" files task. which will be move them to needed location.
Here is the list of available ant-tasks: http://ant.apache.org/manual/tasklist.html
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote