douqixia7942 2012-02-13 23:29
浏览 111
已采纳

在多个PHP项目中同步核心文件的最佳方法?

  • I have a PHP Platform that I've built.
  • I use a copy of that project for each project I do.
  • I add assets and configure each project with it's own content.
  • Configuring a project changes some of the core files which contain the configuration defaults.

When I update core files in the library/platform itself and I want to disseminate those changes to all of the other projects using that platform, what would be the best approach?

I think it may be worth noting that I have each project as an SVN project in Eclipse.

UPDATED DETAILS:

  • The platform is based on AMFPHP 1.9.
  • AMFPHP has a services folder.
  • I have to put core services in the services folder as well as implementation specific services and therefore cannot achieve complete separation between the "library" and the "application".
  • Also, the default configuration files need to be in the "platform" folder so they can be easily distributed with it, but when configuration is changed, those files become "implementation specific" as well.

Is there a solution that will allow me to designate certain files to update?

  • 写回答

3条回答 默认 最新

  • doushi5117 2012-02-13 23:40
    关注

    Take a look at the use of svn:externals. Configure each secondary project with your core libraries as an external.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!