PDA

View Full Version : Ant commands fail on fresh Cmd app



DreadTalon
15 Jul 2015, 5:15 PM
I have tried generating new apps via Sencha Cmd 6.0.0.202 and Ext JS 6.0.0 commerical. They seem to operate correctly and will build successfully using commands such as sencha app build.

The entire app build is quite involved and I wouldn't want to run it on a build server because the debug output mentions spinning up the local development web server. I am really only interested in building the js and sass.

In the advanced Sencha Cmd guide it says it is possible to run the build steps individually using commands such as sencha ant sass or sencha ant build. This is exactly what I want, however, the commands do not work.

sencha ant build or sencha ant sass.


[ERR] Failed to resolve dependency Ext.app.Application for file Platform.Application[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:
C:\Platform\.sencha\app\init-impl.xml:372: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.
Application

After some time spent debugging I noticed that there are sections in app.json which seem to be missing. Both the toolkit and theme sections are blank. Putting something in there does advance the process beyond this error into other errors.

BootGenius
21 Jul 2015, 12:27 AM
I also have this problem. I want to run several ant build steps manually but I can't do it.
When I run sencha ant sass (for example) I get this error

[ERR] Failed to resolve dependency Ext.app.Application for file Platform.Application[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:

Please do something or provide a workaround.
Thanks in advance

dmurat
22 Jul 2015, 11:56 PM
Looks like extjs 6 ant build doesn't work at all: https://www.sencha.com/forum/showthread.php?303158-Ant-build-does-not-work-with-Sencha-CMD-6.0.0.202

danielbragaalmeida
28 Jul 2015, 10:42 AM
Read my solution in https://www.sencha.com/forum/showthread.php?303158-Ant-build-does-not-work-with-Sencha-CMD-6.0.0.202&p=1110139&viewfull=1#post1110139

dlandis
18 Dec 2015, 10:16 AM
Any word on a fix for this?