CruiseControl.NET中的Project和SVN workingDirectory配置块之间有什么区别
时间:2020-03-06 14:49:00 来源:igfitidea点击:
CruiseControl.NET中的Project和SVN workingDirectory配置块之间有什么区别?
我设置了Subversion,现在我在CruiseControl.NET上工作,并注意到配置文件中有两个workingDirectory块。我浏览了他们的Google网上论坛和文档,也许我错过了一些东西,但是我没有看到在构建过程中如何使用它们的清晰示例。
以下部分配置取自其"项目文件"示例页面
http://confluence.public.thoughtworks.org/display/CCNET/Configuring+the+Server
<cruisecontrol> <queue name="Q1" duplicates="ApplyForceBuildsReplace"/> <project name="MyProject" queue="Q1" queuePriority="1"> <webURL>http://mybuildserver/ccnet/</webURL> <workingDirectory>C:\Integration\MyProject\WorkingDirectory</workingDirectory> <artifactDirectory>C:\Integration\MyProject\Artifacts</artifactDirectory> <modificationDelaySeconds>10</modificationDelaySeconds> <triggers> <intervalTrigger seconds="60" name="continuous" /> </triggers> <sourcecontrol type="cvs"> <executable>c:\putty\cvswithplinkrsh.bat</executable> <workingDirectory>c:\fromcvs\myrepo</workingDirectory> <cvsroot>:ext:mycvsserver:/cvsroot/myrepo</cvsroot> </sourcecontrol> </project> </cruisecontrol>
解决方案
请参阅项目配置块和Subversion源代码控制块。 Project工作目录用于整个项目,Source Control工作目录指定将源检出到的位置。这可能与项目工作目录不同(如果可能,可能是子目录)。
我认为项目工作目录被用作CruiseControl块中所有命令的根文件夹。因此,如果我有一个带有相对文件夹的Nant任务/脚本,它将被添加到该根文件夹中以进行实际执行。
The Working Directory for the project (this is used by other blocks). Relative paths are relative to a directory called the project Name in the directory where the CruiseControl.NET server was launched from. The Working Directory is meant to contain the checked out version of the project under integration.
在调用SourceControl工作目录时,SVN或者CVS将在其中检出文件。因此,例如,这将是项目文件夹下的" Src"子目录。
The folder that the source has been checked out into.
引用来源:
- http://confluence.public.thoughtworks.org/display/CCNET/Project+Configuration+Block
- http://confluence.public.thoughtworks.org/display/CCNET/CVS+Source+Control+Block