Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsNeed to override OS file separator without changing code
https://www.eclipse.org/forums/index.php/mv/msg/1076156/1728180/#msg_1728180
The current code gets a path in UNIX format from a DB then builds on that path using file.separator which adds windows separators causing the ftp to fail as path for target is formatted incorrectly. ex: /incoming/ri-etl\DEV\Rulebooks/tate_rbid_1715_retest
/incoming/ri-etl from a DB setting
\DEV\Rulebooks built in code using file separator.
Since other team uses MAC OS for Dev they do not see the issue locally. Tried to overide the path.separator using -DFile.Separator=\/ (and other variations) in Tomact ARGS, JAVA_OPTS and CATALINA OPTS with no success.
I think if I can force the UNIX format Windows will accept and FTP will work. FTP will not accept a path all built in the WINDOWS format.
I am running TOMCAT from within ECLIPSE (TOMCAT 8, Java 7, Eclipse MARS).
Any ideas?]]>BARB Switzer2016-03-31T15:37:53-00:00Re: Need to override OS file separator without changing code
https://www.eclipse.org/forums/index.php/mv/msg/1076156/1728190/#msg_1728190
Eric Rizzo2016-03-31T18:33:12-00:00Re: Need to override OS file separator without changing code
https://www.eclipse.org/forums/index.php/mv/msg/1076156/1728214/#msg_1728214
BARB Switzer2016-03-31T23:29:21-00:00