Need to override OS file separator without changing code [message #1728180] |
Thu, 31 March 2016 11:37  |
Eclipse User |
|
|
|
Prod code runs on UNIX, but need to run local DEV on windows.
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?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08398 seconds