tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Option to allow "\" in hardcoded file paths
Date Wed, 07 Aug 2013 22:14:26 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 8/7/13 9:00 AM, Mark H. Wood wrote:
> On Tue, Aug 06, 2013 at 03:05:44PM +0000, Jeffrey Janner wrote:
>> Had a programmer build a filepath using "\" instead of "/" ,
>> because he's windows centric (duh).
> 
> Probably should be using java.io.File.separator.

It's not worth it, since / always works regardless of platform. It
also works in properties files where using File.separator is not an
option.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSAsbBAAoJEBzwKT+lPKRY4TAP/2HQgeiOoOLXZwkWaTaYd8nl
uu5nHZslcyMAIbxa6A1wVOpf4fV9wQtfgGP3Jvtun2UZ4wq5F+TpODTcjO21/4QG
SwQ4BNCkbxRfLRfL0Vi6H8vs1RKZRlgeUHEwmfCV4FvPzXnvu93gJ228TWxl5Cg5
1FGMls7hSJ5PWWKEtMRhagcwhRxuIYiuV5Ot8YWXRktfmBdUU2XpVFaSmUmv63gD
BK/X2V9aHJtwvnML8SFYZRRbY3JTSbTwDdZ4aSAdc/2qZIKBW8HJCdDXZd4nfb84
y0CnMHo4bXhH8f+fsLgugpFQXi1Q90NQUCD6hWhXjN1RurBaTQfs5o35PeSKLaON
CCKe4XC0UoLdFhTKNHVGa2+pRytM1ZmP1Tc5huP5My707WCKW/bpfA5i/Jot4DfQ
HgD63pW5JJATReOlBND8g2ehkclvan9D0/RfEbT42t4kJavPllqdjbfJgRmL7beG
xX+0nAQhMUIvTpkjO2bVoMFWqKoupWKk/6AHlxNmQverFPW558htImFiTh+d4cGG
Me7aXHZQJD4Chm8QmQCVbeXMTUMhmbfNq7/KYlKzO7gT0t72JSscWeJQpwga8RrE
wgOL5wvCpA+MGr2cCO4uft1rM80q/VEKl1LaGXhKFdzwr90PjWO12Kt4l0l7srYW
AXrMJGI3AtmluJy2yjYB
=T5yu
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message