How do I add a (staging/combining) project to a solution, that runs a batch file... nothing else?

Comments

7 comments

  • Avatar
    strawbot

    Exactly 4 years later and I ran into the same bug!!! Windows does not have a chmod command! So when running a combine project on Windows, issue the equivalent to chmod or give me the option to not run the chmod command.

    0
    Comment actions Permalink
  • Avatar
    strawbot

    Exactly 4 years later and I ran into the same bug!!! Windows does not have a chmod command! So when running a combine project on Windows, issue the equivalent to chmod or give me the option to not run the chmod command.

    0
    Comment actions Permalink
  • Avatar
    strawbot

    not sure how that got repeated repeated. But what is in the output window is not truly command line runnable. The chmod command runs but it is having a problem making the directory not writeable even tho it is read only. Odd. Now if I put the solution on a network drive which happens to be a Mac and then try it from Windows, then there is no problem. Something fishy about the Windows file permissions. But at the root of it all, why even chmod at all?

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    A combining project requires a file to be created, this is what is attempting to be chmoded (which is a built-in). This file is specified in the output filename property. We can do better with an error if this isn't specified.

    0
    Comment actions Permalink
  • Avatar
    strawbot

    For my purposes, I need to run a Python script which will check a text file for change and then regenerate a C header file and Python file if need be. Perhaps I'm using the combining project oddly but it suited my purposes. I then force the project to run each time I build.

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Set the output filename to the C header file that will be generated. Make the combining project a dependency of the project that uses the header file.

    0
    Comment actions Permalink
  • Avatar
    Darcy Williams

    Okay, this makes more sense now...  We got around this by running a pre-compile command on a single .c file, the one that cares about the externally built header.  We also set this specific file to "Always Rebuild"...  problem solved (for us).  Hope that helps

    0
    Comment actions Permalink

Please sign in to leave a comment.