• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with "\" in unix paths  RSS feed

 
Mahesh Bhatt
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing a remote deployment from windows to unix. The ant task runs on my desktop (Windows XP) and the remote server is Solaris 9.
My ant task is getting terminated because of the "\" in the paths. I guess in unix the paths contacin a "/".
Can someone throw some light on it to help me run my scripts.
 
Joe Ess
Bartender
Posts: 9439
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct that the "/" character is the *nix file seperation character. The "\" character is used to indicate line continuation.
you should use *nix style paths in your Ant build scripts on both Windows and Unix. Java interprets them correctly on Windows.
 
Tim Holloway
Saloon Keeper
Posts: 18792
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ant doesn't normally need continuation indicators, so it's probably being seen as an escape sequence.

See this.
 
Mahesh Bhatt
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot guys.
 
Mahesh Bhatt
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

But the problem is on unix. How do I fix the "\" problem. The target system is unix.
Can you please explain me *nix path.
I am not clear about what you mean.

Thanks
[ September 23, 2005: Message edited by: prashant bhogvan ]
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He means never code back slashes in path names, only code forward slashes, even on Windows.

Java takes care of that on Win.

Regards, Guy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!