Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] External tool variable quoting

If you know how many artguments you want to have, you could always add 
multiple prompt variables. If you want to execute:
  /usr/bin/emacs file1 file2
such that it opens both files, you could set up the tool like so:
  location: /usr/bin/emacs
  arguments: ${string_prompt} ${string_prompt}

It doesn't solve the general problem, I know, but it might work for you this 
afternoon. :)

I think the solution is to change the variable expander interface for the 
getText() method to return an array of Strings.

- Jared

On Wednesday 23 April 2003 01:03 pm, Matt_Conway@xxxxxx wrote:
> Is there anyway to make an external tool variable _not_ be a single 
> argument to the external tool?
> Normally, in the run external tools dialog, arguments with a space have to 
> be quoted to be treated as a single argument, but variables do not - this 
> makes sense for paths as they could have spaces in them.
> 
> However, I have written a variable that prompts me for a string to be used 
> as arguments for the external tool, but this string is always treated as a 
> single argument, even when I want it to be treated as multiple arguments.
> 
> Is there anyway to make this happen?
> 
> If not, perhaps a method on the ExpandVariableContext that toggles this 
> behavior would be a good thing to have.
> 
> Matt
> 
> _______________________________________________
> platform-ant-dev mailing list
> platform-ant-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-ant-dev
> 
> 



Back to the top