-
29 Nov 2012 9:28 AM #1
Advanced Cmd usage with ant
Advanced Cmd usage with ant
Hi
I'm trying to split the ext framework code and the application code into two separate .js files. Looking at the examples it looked pretty simple however attempting to use the restore option results in the following error. I'm not sure what I'm doing wrong here or if the advanced scripting is just not support for the ant tasks. Any help would be greatly appreciated.
Here's my compile script.Code:com.sencha.exceptions.ExArg: Only expected 1 parameter at com.sencha.cli.Arguments.pullParameters(Arguments.java:188) at com.sencha.cli.Command.dispatch(Command.java:41) at com.sencha.cli.Commands.dispatch(Commands.java:49) at com.sencha.cli.Commands.dispatch(Commands.java:49) at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:182) at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58) at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Code:<x-sencha-command> compile # Include the app folder and the sdk/src folder --classpath=${app.dir}/app.js,${app.dir}/app,${app.dir}/ux,${sdk.dir}/src # Turn off debugging (comment next line to leave debug enabled): #--debug=false page -name=page -in=${app.dir}/index-dev.html -out=${out.dir}/index.html and \ restore=page and \ exclude -namespace Ext.tree and \ concat -yui ${out.dir}/all-classes.js </x-sencha-command>
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote