Hi Daniel,

thanks for the reply. Your proposal (using OS-shell separator) will work, but
has some CONs:
a) the "config.json" file becomes _very_ platform dependent.
b) ...creates loooong lines ;) (OK, I know function beats aesthetics)

Nevertheless I filed a (lowest-prio) enhancement bug:
  http://bugzilla.qooxdoo.org/show_bug.cgi?id=3557

BTW: The qooxdoo-team already planned this I think ;)
  <code src="tool/pylib/generator/Generator.py">
  1191: [...]
  1192:         # wpbasti:
  1193:         # rename trigger from "shell" to "execute-commands"?
  1194:         # Should contain a list of commands instead
  1195: [...]
  </code>

Regards,
  Peter

-------- Original --------
From: Daniel Wagner
Date: 30.03.2010 09:04

> Hi Peter,
> 
> I'm not aware of any plans to allow an array of commands here. You can 
> always define multiple commands in one string by using the shell's 
> separator (";" on *nix, "&&" on Windows). But if you think allowing an 
> array of commands would be better, feel free to open an enhancement bug 
> report.
> 
> 
> Regards,
> Daniel
> 
> Peter Schneider schrieb:
>> Hi there,
>>
>> for building my project it is somehow necessary to run a sequence of
>> shell-commands.
>> Currently I am using one "main-job" ("doThings") which runs multiple 
>> "sub-jobs"
>> ("doThing-X") to achieve this:
>>
>> <code>
>> ...
>>  "doThings" : {
>>   "run" : [ "doThing-1", "doThing-2", "doThing-3", ... ]
>>  },
>>  "doThing-1" : {
>>    "shell" : { "command" : "firstCommand.exe" }
>>  },
>>  "doThing-2" : {
>>    "shell" : { "command" : "secondCommand.exe" }
>>  },
>>  "doThing-3" : {
>>    "shell" : { "command" : "thirdCommand.exe" }
>>  },
>>  ...
>> </code>
>>
>> As far as I know the "shell/command" config key only supports a (one) string.
>> Are there any plans on supporting array values for the "shell/command" 
>> feature?
>> So that I could do something like this:
>> <code>
>> ...
>>  "doThings" : {
>>    "shell" : {
>>      "command" : [
>>        "firstCommand.exe",
>>        "secondCommand.exe",
>>        "thirdCommand.exe",
>>        ...
>>      ]
>>   }
>>  }
>> ...
>> </code>
>>
>> I just wanted to know if this might become possible in the near future.
>>
>> As I currently have a working solution there's no need for any action, I'm 
>> just
>> curious...
>>
>> Cheers,
>>   Peter

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to