Red Gate forums :: View topic - RgPublish.exe /source doesn't understand quotes escaped path
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

RgPublish.exe /source doesn't understand quotes escaped path

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
abatishchev



Joined: 24 Jun 2013
Posts: 5
Location: Redmond, WA

PostPosted: Mon Jun 24, 2013 11:57 pm    Post subject: RgPublish.exe /source doesn't understand quotes escaped path Reply with quote

Having the following parameter in TeamCity build step (.NET runner):

Quote:
/source="%teamcity.build.checkoutDir%\MyProj.csproj"

leads to an error:
Quote:
[02:30:18][Step 7/7] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[02:30:18][Step 7/7] in directory: C:\TeamCity\buildAgent\work\403d3ec57312a972
[02:30:20][Step 7/7] Red Gate Package Publishing Tool version 2.0.4.1
[02:30:20][Step 7/7] Invalid source argument:
[02:30:20][Step 7/7] '"C:\TeamCity\buildAgent\work\403d3ec57312a972\MyProject.csproj"' is not a valid path.
[02:30:21][Step 7/7] Process exited with code 1
[02:30:21][Step 7/7] Step RgPublish (.NET Process Runner) failed

Removing quotes (what is unusual for Windows-based development) makes build run fine.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1116
Location: My desk.

PostPosted: Tue Jun 25, 2013 6:20 pm    Post subject: Reply with quote

Interesting- if I run RGPublish directly on the command line it does need quotes (if there's a space in the path) as you'd expect.

My guess is that TeamCity implicitly wraps it in quotes internally somehow when passing the parameter?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group