1

Tried to pull a Java solution, originally developed on linux, into my windows environment to test a Jenkins job. The build job wouldn't run on my box due to reaching the arbitrary max windows path limit in command prompt..why??

Comments
  • 2
    \ != /
  • 0
    @GlitchF5 what is that?
  • 0
    Linux directory structure != Windows directory structure
  • 0
    @NullBot oh ok. I figured the relative structure would be fine since it was a git repo lol
  • 0
    @snypenet system.getProperty("file.separator") is you friend whenever you want to code truly platform independent.
  • 0
    @Godisalie the bat script didn't have an issue with / or \ it was an issue of the file path of what needs to be run was too long and we found out that the max file path supported in Windows command prompt is 260 characters. We ended up creating a symbolic link to fix it.
  • 0
    @snypenet Didn't know windows paths were limited in length. Something new to learn every day, thanks.
Add Comment