• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Linux paths displayed in console, is jforum compatible with Linux only?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I look at the messages in my console during jForum startup on my windows machine, I see half of the slashes for paths to my properties files as windows backslashes and the ending half of the paths as Linux forward slashes. Anyone know why this is?

15:57:12,092 INFO [FileMonitor ] Watching C:\Program Files\Apache Software Foundation\Tomcat 5.0.28\webapps\jforum/WEB-INF/config/languages/en_US.properties

15:57:12,248 INFO [ConfigLoader ] Loading JDBC driver net.jforum.dao.mysql.MySQL323DataAccessDriver

15:57:13,217 INFO [FileMonitor ] Watching C:\Program Files\Apache Software Foundation\Tomcat 5.0.28\webapps\jforum/WEB-INF/config/database/generic/generic_queries.sql

15:57:13,217 INFO [FileMonitor ] Watching C:\Program Files\Apache Software Foundation\Tomcat 5.0.28\webapps\jforum/WEB-INF/config/database/mysql/mysql.sql

15:57:13,248 INFO [FileMonitor ] Watching C:\Program Files\Apache Software Foundation\Tomcat 5.0.28\webapps\jforum/WEB-INF/config/SystemGlobals.properties

[originally posted on jforum.net by timnology]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't worry about it. Since jForum is written in Java, the use of \ or / doesn't really matter (for Java's core classes).

FWIW, the mix of the two in the messages is because the first part of the path is coming from a Tomcat/Java native call which returns the path like the OS represents it. The second part is from some embedded strings in the code. Since the path separator doesn't matter, it's easier to write:

String path = "/foo/bar";

than to do:

String path = "\\foo\\bar";

or the technically correct:

String path = File.pathSeparator + "foo + File.pathSeparator+ "bar";


[originally posted on jforum.net by monroe]
 
reply
    Bookmark Topic Watch Topic
  • New Topic