1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    20
    Vote Rating
    0
    tkannenb is on a distinguished road

      0  

    Default Ant build failing: NullPointerException from <x-sencha-command>

    Ant build failing: NullPointerException from <x-sencha-command>


    I've got an ExtJS 4.2 application that I can build just fine using Sencha Cmd 4.0 from the command line. This app wasn't generated with Cmd, so I'm building it using sencha compile. Everything seems to be working as expected from the command line, but now I'm trying to do the same thing from Ant and running into a NullPointerException.

    The Ant script looks like this (there's a goofy setup task in there to copy the source files into a folder structure that makes sense to the compiler, but I don't believe that step is related to the problem):

    Code:
    <project name="enrollwizard" default="all">
    
       <!--
             Define project environment.
       -->
       <property environment="env"/>
    
       <taskdef resource="com/sencha/ant/antlib.xml" classpath="${cmd.dir}/sencha.jar"/>
    
       <property name="projdir" value="${env.PROJ_ROOT}/${env.PROJ_NAME}"/>
       <property name="jsmoduledir" value="${projdir}/demo"/>
       <property name="workdir" value="${jsmoduledir}/build/cmdwork"/>
    
       <property name="sencha.sdk.dir" value="/Projects/NWD_Enroll/ext"/>
    
       <target name="senchainit">
          <x-sencha-init/>
       </target>
    
       <!-- blows away the work folder so we can start clean -->
       <target name="resetwork">
          <delete dir="${workdir}"/>
       </target>
    
       <!-- copies all the source files to the work folder in the structure expected by the compiler -->
       <target name="setupwork" depends="resetwork">
          <copy todir="${workdir}/js">
             <fileset dir="${jsmoduledir}" includes="app.js"/>
          </copy>
          <copy todir="${workdir}/js/celera">
             <fileset dir="${jsmoduledir}/celera" includes="**/**"/>
          </copy>
          <copy todir="${workdir}/js/controller">
             <fileset dir="${jsmoduledir}/wizard/controller" includes="**/**"/>
          </copy>
          <copy todir="${workdir}/js/store">
             <fileset dir="${jsmoduledir}/wizard/store" includes="**/**"/>
          </copy>
          <copy todir="${workdir}/js/ui">
             <fileset dir="${jsmoduledir}/wizard/ui" includes="**/**"/>
          </copy>
          <copy todir="${workdir}/js/utils">
             <fileset dir="${jsmoduledir}/wizard/utils" includes="**/**"/>
          </copy>
          <copy todir="${workdir}/js/view">
             <fileset dir="${jsmoduledir}/wizard/view" includes="**/**"/>
          </copy>
    
          <copy todir="${workdir}/js/demo/css">
             <fileset dir="${jsmoduledir}/form/css" includes="**/**"/>
          </copy>
          <copy todir="${workdir}/js/demo/data">
             <fileset dir="${jsmoduledir}/form/data" includes="**/**"/>
          </copy>
          <copy todir="${workdir}/js/demo/store">
             <fileset dir="${jsmoduledir}/form/store" includes="**/**"/>
          </copy>
          <copy todir="${workdir}/js/demo/wizard">
             <fileset dir="${jsmoduledir}/form/wizard" includes="**/**"/>
          </copy>
    
          <copy todir="${workdir}/js/demo/ext/ux">
             <fileset dir="${jsmoduledir}/ux" includes="**/**"/>
          </copy>
    
          <copy todir="${workdir}">
             <fileset dir="${jsmoduledir}/build" includes="buildharness.html"/>
          </copy>
    
       </target>
    
    
       <target name="compile" depends="setupwork,senchainit">
          <x-sencha-command>
             --sdk-path=${sencha.sdk.dir}
             compile
                --classpath=${workdir}/js
             page
                --yui
                --in ${workdir}/buildharness.html
                --out ${workdir}/build/buildharness.html
          </x-sencha-command>
       </target>
    
       <!--
            Run all the targets in this build file
       -->
       <target name="all" depends="compile"/>
    
    </project>
    The output looks like this:

    Code:
    "C:\Program Files\Java\jdk1.7.0_21\bin\java" -Xmx128m -Xss2m "-Dant.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant" -Dfile.encoding=windows-1252 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-antlr.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-apache-bcel.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-apache-bsf.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-apache-log4j.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-apache-oro.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-apache-regexp.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-apache-resolver.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-apache-xalan2.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-commons-logging.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-commons-net.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-jai.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-javamail.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-jdepend.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-jmf.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-jsch.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-junit.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-launcher.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-netrexx.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-swing.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant-testutil.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\ant\lib\ant.jar;C:\Program Files\Java\jdk1.7.0_21\lib\tools.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.4\lib\idea_rt.jar" com.intellij.rt.ant.execution.AntMain2 -logger com.intellij.rt.ant.execution.IdeaAntLogger2 -inputhandler com.intellij.rt.ant.execution.IdeaInputHandler -Denv.PROJ_ROOT=C:\Projects -Denv.PROJ_NAME=NWD_Form_Demo -Dcmd.dir=C:\Users\tkannenb\bin\Sencha\Cmd\4.0.0.203 -buildfile C:\Projects\NWD_Form_Demo\demo\build\cmdbuild.xml compile
    cmdbuild.xml
    property
    taskdef
    property
    property
    property
    property
    resetwork
    delete
    Deleting directory C:\Projects\NWD_Form_Demo\demo\build\cmdwork
    setupwork
    copy
    Copying 1 file to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js
    copy
    Copying 16 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\celera
    copy
    Copying 1 file to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\controller
    copy
    Copying 3 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\store
    copy
    Copying 4 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\ui
    copy
    Copying 2 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\utils
    copy
    Copying 4 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\view
    copy
    Copying 1 file to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\demo\css
    copy
    Copying 2 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\demo\data
    copy
    Copying 8 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\demo\store
    copy
    Copying 36 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\demo\wizard
    copy
    Copying 20 files to C:\Projects\NWD_Form_Demo\demo\build\cmdwork\js\demo\ext\ux
    copy
    Copying 1 file to C:\Projects\NWD_Form_Demo\demo\build\cmdwork
    senchainit
    x-sencha-init
    Initializing Sencha Cmd ant environment
    Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    compile
    x-sencha-command
    Error executing page compilation null
    InvocationTargetException: null
    com.sencha.exceptions.ExBuild: java.lang.NullPointerException
        at com.sencha.command.compile.PageCommand.execute(PageCommand.java:193)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
        at com.sencha.cli.Command.dispatch(Command.java:42)
        at com.sencha.cli.Commands.dispatch(Commands.java:68)
        at com.sencha.command.compile.CompileCommands.dispatch(CompileCommands.java:290)
        at com.sencha.cli.Commands.dispatch(Commands.java:68)
        at com.sencha.command.Sencha.dispatch(Sencha.java:81)
        at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:132)
        at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:42)
        at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:29)
    Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:251)
        at com.sencha.command.compile.PageCommand.execute(PageCommand.java:100)
        ... 34 more
    C:\Projects\NWD_Form_Demo\demo\build\cmdbuild.xml:74: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
        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)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:29)
    Caused by: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
        at com.sencha.command.compile.PageCommand.execute(PageCommand.java:193)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
        at com.sencha.cli.Command.dispatch(Command.java:42)
        at com.sencha.cli.Commands.dispatch(Commands.java:68)
        at com.sencha.command.compile.CompileCommands.dispatch(CompileCommands.java:290)
        at com.sencha.cli.Commands.dispatch(Commands.java:68)
        at com.sencha.command.Sencha.dispatch(Sencha.java:81)
        at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:132)
        at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:42)
        at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        ... 16 more
    Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:251)
        at com.sencha.command.compile.PageCommand.execute(PageCommand.java:100)
        ... 34 more
    C:\Projects\NWD_Form_Demo\demo\build\cmdbuild.xml:74: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
        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)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:29)
    Caused by: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
        at com.sencha.command.compile.PageCommand.execute(PageCommand.java:193)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
        at com.sencha.cli.Command.dispatch(Command.java:42)
        at com.sencha.cli.Commands.dispatch(Commands.java:68)
        at com.sencha.command.compile.CompileCommands.dispatch(CompileCommands.java:290)
        at com.sencha.cli.Commands.dispatch(Commands.java:68)
        at com.sencha.command.Sencha.dispatch(Sencha.java:81)
        at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:132)
        at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:42)
        at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        ... 16 more
    Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:251)
        at com.sencha.command.compile.PageCommand.execute(PageCommand.java:100)
        ... 34 more
    C:\Projects\NWD_Form_Demo\demo\build\cmdbuild.xml:74: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
        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)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:29)
    Caused by: com.sencha.exceptions.ExBuild: java.lang.NullPointerException
        at com.sencha.command.compile.PageCommand.execute(PageCommand.java:193)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
        at com.sencha.cli.Command.dispatch(Command.java:42)
        at com.sencha.cli.Commands.dispatch(Commands.java:68)
        at com.sencha.command.compile.CompileCommands.dispatch(CompileCommands.java:290)
        at com.sencha.cli.Commands.dispatch(Commands.java:68)
        at com.sencha.command.Sencha.dispatch(Sencha.java:81)
        at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:132)
        at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:42)
        at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        ... 16 more
    Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:251)
        at com.sencha.command.compile.PageCommand.execute(PageCommand.java:100)
        ... 34 more
    
    Ant build completed with 4 errors 4 warnings in 3s at 10/21/13 11:28 AM
    From the command line, the build completes successfully if I do this:

    C:\Projects\NWD_Form_Demo\demo\build\cmdwork>sencha -sdk /Projects/NWD_Enroll/ext compile -classpath=js page -yui -in buildharness.html -out build/buildharness.html

    Is there some obvious thing I've done wrong in my Ant script?

    Thanks,
    Tim

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,572
    Vote Rating
    203
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Try using:
    Code:
    ..
        --in=${workdir}/buildharness.html
        --out=${workdir}/build/buildharness.html
    placed the '=' between --in and its value. Same for --out.

    Also, instead of doing the <x-sencha-init/> you might have your project import the app's build-impl.xml and depends='init' instead.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    20
    Vote Rating
    0
    tkannenb is on a distinguished road

      0  

    Default


    I don't believe I have a build-impl.xml, which I am guessing is because this project wasn't generated with Sencha Cmd.

    Adding those '=' characters for the --in and --out parameters did help, though, because I no longer get the NPE. Unfortunately, what happens now is that I run out of Java heap space before the compile completes.

    I have a workaround, which is to create a .BAT file that runs the command-line version of the sencha compile, and then launch that .BAT file using an Ant exec task. That works fine, but it'd be cleaner to use the x-sencha-command task working, so I'd still like to do that eventually.

  4. #4
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,572
    Vote Rating
    203
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    I see. If you want you can always generate an app with Cmd as a temp app and copy the following from the temp app over to your app:
    (hidden) .sencha directory
    app.json
    build.xml

    That will give you the included targets from the Cmd generated app.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

Thread Participants: 1