Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » pre-build stripping backslashes from SubWCRev cmd
pre-build stripping backslashes from SubWCRev cmd [message #735009] Mon, 10 October 2011 16:08 Go to next message
Bret Missing name is currently offline Bret Missing nameFriend
Messages: 7
Registered: October 2011
Junior Member
I'm using Eclipse Indigo for C/C++ on Windows 7 and I have the following pre-build command in my project:

SubWCRev ${workspace_loc:/IMProbe} ${workspace_loc:/IMProbe/svnversion.tmpl} ${workspace_loc:/IMProbe/svnversion.h}

This generates the following error message:

SubWCRev C:\Users\bforeman\workspace\IMProbe C:\Users\bforeman\workspace\IMProbe\svnversion.tmpl C:\Users\bforeman\workspace\IMProbe\svnversion.h
File 'C:UsersbforemanworkspaceIMProbesvnversion.tmpl' does not exist

If I paste "SubWCRev C:\Users\bforeman\workspace\IMProbe C:\Users\bforeman\workspace\IMProbe\svnversion.tmpl C:\Users\bforeman\workspace\IMProbe\svnversion.h" into a command shell it runs perfectly.

Somehow, the backslashes are being stripped when the command is run from inside the pre-builder. Does anyone have an idea what might be happening?
Re: pre-build stripping backslashes from SubWCRev cmd [message #735028 is a reply to message #735009] Mon, 10 October 2011 17:01 Go to previous messageGo to next message
Bret Missing name is currently offline Bret Missing nameFriend
Messages: 7
Registered: October 2011
Junior Member
I just noticed that the pre-builder uses /bin/sh. I'm guessing the backslash stripping is happening there but I don't know how to prevent it.
Re: pre-build stripping backslashes from SubWCRev cmd [message #735046 is a reply to message #735009] Mon, 10 October 2011 18:11 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10-Oct-11 10:08, Bret wrote:
> I'm using Eclipse Indigo for C/C++ on Windows 7 and I have the following
> pre-build command in my project:
>
> SubWCRev ${workspace_loc:/IMProbe}
> ${workspace_loc:/IMProbe/svnversion.tmpl}
> ${workspace_loc:/IMProbe/svnversion.h}
>
> This generates the following error message:
>
> SubWCRev C:\Users\bforeman\workspace\IMProbe
> C:\Users\bforeman\workspace\IMProbe\svnversion.tmpl
> C:\Users\bforeman\workspace\IMProbe\svnversion.h
> File 'C:UsersbforemanworkspaceIMProbesvnversion.tmpl' does not exist
>
> If I paste "SubWCRev C:\Users\bforeman\workspace\IMProbe
> C:\Users\bforeman\workspace\IMProbe\svnversion.tmpl
> C:\Users\bforeman\workspace\IMProbe\svnversion.h" into a command shell
> it runs perfectly.
>
> Somehow, the backslashes are being stripped when the command is run from
> inside the pre-builder. Does anyone have an idea what might be happening?

Please ask C/C++ questions on the Eclipse CDT forum.
Previous Topic:Eclipse error, closed views and edit windows now can't compile
Next Topic:SSH2 Key Import
Goto Forum:
  


Current Time: Thu Apr 25 12:08:34 GMT 2024

Powered by FUDForum. Page generated in 0.08066 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top