Menu

Relative paths with HC1.4

Help
Mike B
2005-03-16
2013-03-22
  • Mike B

    Mike B - 2005-03-16

    We are moving to uPortal 2.4.2 from 2.3.2 and I'm having some trouble with relative paths and HC 1.4. If I define the runtime dir as /usr/share/uportal Hypercontent properly installs the project-definitions and sample project in /usr/share/uportal/hypercontent-repositories, however when I log in using the admin account it says I have no projects configured (this setup worked fine with 2.3.2 and all our project paths are relative to /usr/share/uportal). To fix this I have to define the repository path absolutely in Projects.xml, and to access any of the site projects I have to redefine their repository path to be absolute locations. Do yo have any suggestions about how to restore this functionality? Thanks,

    Mike

     
    • Alex Vigdor

      Alex Vigdor - 2005-03-16

      Mike,
      To be honest, I don't recommend using relative paths.  I ship the distribution that way to make it easier to get it up and running with minimal configuration, but we always use absolute paths in production, and the first thing I usually tell people is "make those paths absolute"!  Otherwise you're dependent on the JVM's notion of the current directory, which is configured in the "user.dir" system property - if you want to use relative paths, you will have to make sure this is set how you want it.

      Alex

       
    • Mike B

      Mike B - 2005-03-16

      Thanks Alex, we'll just have to bite the bullet this time and make the effort to define the paths. Thanks

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.