Bug? B4A v5.01 - CustomBuildAction

Discussion in 'Bugs & wishlist' started by Pendrush, Jun 12, 2015.

  1. Pendrush

    Pendrush Well-Known Member Licensed User

    I use this CustomBuildAction
    Code:
    #CustomBuildAction: 1, c:\windows\system32\attrib.exe, +r res\*.* /s
    #CustomBuildAction: 4, c:\windows\system32\attrib.exe, -r res\*.* /s
    but after debugging my app (in rare cases) B4A delete all folders from res directory except drawable, layout and xml.
    So my folders drawable-xxxhdpi, drawable-xxhdpi, drawable-xhdpi, etc, are deleted.
     
  2. DonManfred

    DonManfred Expert Licensed User

    the files in this folder (everything under res\) should be writeprotected.
    Or use a custom Resourcefolder set with #additionalres
     
  3. Pendrush

    Pendrush Well-Known Member Licensed User

    Yes i know, but syntax I have posted, worked fine until B4A v5.xx.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Did you see whether the the custom actions were executed (in the compilation window)?

    I agree with @DonManfred that it is better to use #AdditionalRes for this.
     
  5. Pendrush

    Pendrush Well-Known Member Licensed User

    I really did not pay attention.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice