5 Replies Latest reply on May 13, 2009 7:37 AM by Bill Robinson

    How To set a local property using pre-command of a job

      hi experts

      i have a BLPackage, and i have a deploy job that run it.

      in the package, i have an external command that runs a script. i want to use a local property that will be set to "bat" in case of windows OS, or "sh" in case of UNIX.

      i thought of using pre-command for this issue, however it didnt work.

      i thought to write in the pre-command something like this:

      if TARGET.OS == WINDOWS

      {

           MY_VAR = "bat"

      }

      else

      {

           MY_VAR = "sh"

      }

       

      is this the right syntax?

      thanks

      ohadA