Results 1 to 4 of 4

Thread: Exclude ViewModel and ViewController from sencha architect build

  1. #1

    Default Exclude ViewModel and ViewController from sencha architect build

    Hi Community,

    Please how to exclude ViewModel and ViewController from sencha architect build.
    In other words, when I build a project, I don't won't to get automatically ViewModel And ViewController files.


    Many thanks in advance .

  2. #2
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    Hi

    Could you please elaborate more why would you need this? I think that you are trying to accomplish something else.
    It doesn't make any sense to exclude these files from the build as they might be used in the view?

    If you have classes which doesn't have anything in the viewmodel / viewcontroller you can delete them https://i.imgur.com/kbU38Gn.png

    But currently you can't re-create them again so be careful, you will be able to generate them again in SA 4.2 which should be released soon

    Regards
    Petr

  3. #3

    Default

    Hi Petr,

    Thanks for quick response ..
    In order to upgrade a project from extJS 4 (MVC) to ExtJS 6 using sencha architect, I need to exclude automatically all viewModel and ViewController for internal reason (generate error in our case).
    I'm trying to add this to my build-impl.xml :
    <target name="-before-init"> <property name="build.operations">
    exclude
    -file=*ViewController.js
    </property>
    </target>

    But doesn't work.
    I noticed in sencha architect "cmd output" this commande line :

    >xcopy "myProjectPath" "buildPath" /exclude:temporaryExlcludeFilePath\exclude.txt /s /e /y /d /i"

    If I use this command by modifying this exclude text file as below :

    ViewModel.js ViewController.js
    .svn
    ...



    This avoid to generate all viwModel and viewController files, so where can I found the main exclude file ?


    Thanks again


  4. #4
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    Hm I still does't understand why you would need to exclude these files for the upgrade but OK.

    So these files are located in SA interface (classes) and to be able to run the cmd upgrade process over the project inside SA, you need to exclude them?

    The exclude line in the cmd output is thing done by SA itself after the build, so it doesn't affect the Cmd before the build.

    Maybe you already tried this https://www.sencha.com/forum/showthr...l=1#post975091

    Also you could just copy whole project outside of the SA project folder using for example the xcopy command and exclude theses files and than run upgrade but that would not upgrade the project together with SA.

Similar Threads

  1. How to exclude all rtl from Sencha cmd theme build?
    By SebTardif in forum Sencha Cmd
    Replies: 4
    Last Post: 10 Jan 2017, 11:14 PM
  2. Replies: 2
    Last Post: 7 Feb 2015, 2:15 AM
  3. How to exclude a file from sencha app build?
    By zlevardy in forum Sencha Cmd
    Replies: 12
    Last Post: 20 Jan 2014, 3:31 AM
  4. Sencha Cmd - Exclude Ext from build
    By heratech in forum Sencha Cmd
    Replies: 3
    Last Post: 20 Jan 2014, 12:06 AM
  5. Exclude files from Sencha build process
    By tpolyak in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 16 Sep 2012, 1:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •