从 Eclipse 运行自定义部署器 [英] Running Custom Deployer from Eclipse
问题描述
我已经阅读了 Jaime 的部署程序教程.
我已经成功创建了我的部署程序扩展,当它与 SDL Tridion 集成时,功能完全符合要求.
I've successfully created my deployer extension, which when integrating with SDL Tridion, the functionality works exactly as required.
但是,我无法开始工作的是本地调试/在 eclipse 中与部署程序一起运行(记录在 这里)
But, what i can't get to work is the local debugging / running with the deployer inside eclipse (documented here)
基于 Eclipse 的部署程序确实运行了.如果我将 zip 文件放入我的测试传入文件夹中,则会提取并处理 zip.但是,我写的customdeployer代码从来没有输入或执行过.
The eclipse based deployer does run. If I drop my zip file into my test incoming folder the zip is picked up and processed. However, the customdeployer code I have written is never entered or executed.
我在 'eclipse' 部署者日志中没有收到任何错误,但它总是在以下行停止:
I don't get any errors in the 'eclipse' deployer logs, but it always stops on the following line:
2012-04-13 20:24:51,642 DEBUG QueueLocationHandler - 解除对部署包的排他锁:tcm:0-1026-66560,类型:CONTENT.
2012-04-13 20:24:51,642 DEBUG QueueLocationHandler - Removing exclusive lock on Deployment package: tcm:0-1026-66560 with type: CONTENT.
因为我们这里的三位开发人员在他们所有的机器上都遇到了同样的问题,我想知道(希望!)这是一个常见问题,有人知道我们做错了什么.
As we've three developers here also stuck on the same problem on all their machines I was wondering (hoping!) that this was a common problem and someone knew what we're doing wrong.
谢谢
推荐答案
你能检查一下 Deployer 加载的是哪个 cd_deployer_conf.xml
吗?只需检查 Deployer 启动日志(在调试模式下).
Can you check which cd_deployer_conf.xml
is it loaded by the Deployer? Just check the Deployer startup logs (in debug mode).
我怀疑您在调试/运行时的 Eclipse 项目没有从 Eclipse 的 config
文件夹中加载 cd_*_config.xml
文件.这将阻止您的部署模块(我假设您在 cd_deployer_conf.xml
中配置)被加载和调用.
I suspect your Eclipse project at Debug/Run time doesn't load the the cd_*_config.xml
files from the config
folder in Eclipse. This will prevent your deployer module (which I supposed you configured in your cd_deployer_conf.xml
) from being loaded and called.
我通常做的是将这个 config
文件夹声明为 Eclipse Source Folder.然后在调试/运行时,Eclipse 将自动包含在类路径中.这是 http://www.sdltridionworld.com/articles/sdltridion2011 中的第 8 点/tutorials/Deployer_Extensions_With_Eclipse_3.aspx 多余.
What I normally do is to declare this config
folder as an Eclipse Source Folder. Then at Debug/Run time, Eclipse will be included in the classpath automatically. This makes point #8 from http://www.sdltridionworld.com/articles/sdltridion2011/tutorials/Deployer_Extensions_With_Eclipse_3.aspx redundant.
这篇关于从 Eclipse 运行自定义部署器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!