문제

We have several php projects. The projects use the Zend Framework and we also maintain a common core library with various functions.

Right now my directory structure looks like this

project-1
        \application
                    \model
                    \views
                    \controllers
        \libraray
                 \Zend -> symlink to ../../libraries/Zend
                 \Core -> symlink to ../../libraries/Core
                 \Project1Lib
project-2
        \application
                    \model
                    \views
                    \controllers
        \libraray
                 \Zend -> symlink to ../../libraries/Zend
                 \Core -> symlink to ../../libraries/Core
                 \Project2Lib
libraries
         \Zend
         \Core

In Subversion I seem to be having trouble with the sym links, it's adding the actual files (I'm using Syncro on the Mac) instead of just the sym links. But it got me thinking and I was wondering what the best way of laying out the project is in order to avoid having multiple copies of the same libraries?

도움이 되었습니까?

해결책

The official subversion client can deal with symlinks, but obviously your client doesn't handle them properly.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top