December 17, 2009 at 6:24 pm
Hi, I have a process task. I execute a jar:
Name1 = c:\helical.asc
Name2 = c:\files
Name3 = hello
java -jar nombrejar.jar -d + @[User::Name1] + @[User::Name2]+ @[User::Name3]
My problem is when some parameter have a name with spaces, my task failure. e.g:
Name1 = c:\test file\test 1\helical.asc
If you write the argument:
"java -jar nombrejar.jar -d" +" " + "''" + @[User::Name1] + "''"+" " + "''" + @[User::Name2] + "''" +" " + "''" + @[User::Name3]+ "''"
, my task failure.
How can i write my variables and these are ok?
thanks
December 19, 2009 at 8:18 am
Helical Johan (12/17/2009)
Hi, I have a process task. I execute a jar:Name1 = c:\helical.asc
Name2 = c:\files
Name3 = hello
java -jar nombrejar.jar -d + @[User::Name1] + @[User::Name2]+ @[User::Name3]
My problem is when some parameter have a name with spaces, my task failure. e.g:
Name1 = c:\test file\test 1\helical.asc
If you write the argument:
"java -jar nombrejar.jar -d" +" " + "''" + @[User::Name1] + "''"+" " + "''" + @[User::Name2] + "''" +" " + "''" + @[User::Name3]+ "''"
, my task failure.
How can i write my variables and these are ok?
thanks
You are not using the correct quotes. Try this:
"java -jar nombrejar.jar -d " + "\"" + @[User::Name1] + "\" \"" + @[User::Name2] + "\" \"" + @[User::Name3] + "\""
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply