vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

Support Multiple onsave Commands #159

Closed cawoodm closed 11 years ago

cawoodm commented 11 years ago

Currently afterSave is single-valued - let's make it an array:

"afterSave": [
      {"**/components/*.js": "copy /y /b components\\*.js components.js"},
      {"**/systems/*.js": "copy /y /b systems\\*.js systems.js"}
]

This would facilitate different on-the-fly builds/tests based on different wildcard matches.

kdvolder commented 11 years ago

Hmmm, I think you can already do this:

  "afterSave":  {
       "**/components/*.js": "copy /y /b components\\*.js components.js",
        "**/systems/*.js": "copy /y /b systems\\*.js systems.js"
  }

The afterSave block is an object and it can have multiple properties.

I believe that if there's more than one we will try each pattern you have added until one matches.

Doesn't that do what you want?

cawoodm commented 11 years ago

Aye it does. I do apologise for troubling ye!

kdvolder commented 11 years ago

No problem. And thanks for confirming this does what you want.