CruiseControl.NET 请问删除编译产生的临时文件怎么配置?

zjjie · 发布于 2010年7月30日 · 211 次阅读
96

我在编译一个工程的时候, 老是说我没有删除临时文件, 然后就停了, 是不是要先把前面编译生成的临时文件删除了才能进行下一次的编译的? 如果是的话,要怎么删除呢?

日志里面说是 There are no merge Publishers ---- Temporary files have not been deleted!

共收到 6 条回复
96
zjjie · #1 · 2010年7月30日

大家帮帮忙啊!交不了差呢

96
scmroad · #2 · 2010年7月30日

什么工程? 怎么编译的? 哪里的日志?

发贴之前请提供详细的背景信息,谢谢

96
zjjie · #3 · 2010年7月30日

不好意思,没什么经验, 用MSBuild编译VS2005的工程, 这是配置文件: http://192.168.1.23/ViewFarmReport.aspx&lt/webURL>; D:\workingDirectory 2 http://192.168.1.23:8080/svn/SVN_Test&lt/trunkUrl>; C:\Program Files\VisualSVN Server\bin\svn.exe zjj zjj C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe D:\workingDirectory dotnetBar.sln /noconsolelogger /p:Configuration=Debug;OutDir=D:\ccnet_build_output\FoodMix\ /v:diag Build 900 C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll D:\workingDirectory D:\HistoryDirectory

96
scmroad · #4 · 2010年7月30日

然后呢?

哪里报的错? 谁报的错? MSBuild报错?还是CC.NET报的错?

96
scmroad · #5 · 2010年8月16日

解决了没有?

96
rexuekonglong · #6 · 2010年11月18日

你可以在在脚本里加一句
在执行编译前,先执行clean 不属于svn 版本控制的文件,这个动作。 以下是一个clean.bat的内容,你可以参考: :: :: Copyright (c) 2009 G-NET :: :: Module Name: :: :: SetTangEnv.bat :: :: Abstract: :: :: This module set up the build environment for Tang client. :: :: Author: :: :: Yunfei Zuo ([email=yunfei.zuo@gnetis.com]yunfei.zuo@gnetis.com[/email]) Dec/22/2009 :: :: Revision History: :: :: Yunfei Zuo ([email=yunfei.zuo@gnetis.com]yunfei.zuo@gnetis.com[/email]) Created Dec/22/2009 ::

@ECHO OFF echo == Going to update the HEAD version. == svn update if not %errorlevel% == 0 ( echo "The clean build must update to HEAD version!" goto errorexit ) :: Delete all the unversioned items. echo == Going to delete the UNVERSIONED files. == for /f "usebackq tokens=2*" %%i in (svn status ^| findstr /r "^\?") do deletefile %%i :: Generate the message code definition files. pushd . echo == Going to generate the ERROR CODE == cd tang\common\inc mc TangErrorCode.mc if not %errorlevel% == 0 ( echo "The ERROR CODE must be compiled first!" goto errorexit ) popd

echo == Going to build the solution == pushd %TANG_DIR% ::vcbuild /r /errfile:build.err Common\Support\Test\MessageParserTest\MessageParserTest.vcproj vcbuild /clean Tang.sln vcbuild /errfile:build.err Tang.sln "Release|Win32" if %errorlevel% == 0 ( :: The build is succeed echo ==Congratuation, Build action succeded. === echo ==Please submit the update with the code as below ==

popd :: Remove the target files to redist IF NOT EXIST Redist md Redist IF NOT EXIST Redist\plugin md Redist\plugin IF NOT EXIST Redist\html md Redist\html

for %%t in (Tang\Target\release*.manifest Tang\Target\release*.dll Tang\Target\release*.pdb Tang\Target\release*.exe Tang\Target\release*.tlb Tang\Target\release*.xml Tang\Target\release*.config) do xcopy %%t Redist /y

for %%t in (Tang\Target\release\plugIn*.manifest Tang\Target\release\plugIn*.dll Tang\Target\release\plugIn*.pdb Tang\Target\release\plugIn*.log Tang\Target\release\plugIn*.tlb Tang\Target\release\plugIn*.ini) do xcopy %%t Redist\plugin /y

for %%t in (Tang\Target\release\html*) do xcopy %%t Redist\html /y/e/s for %%t in (Tang\Target\release\html\Config*) do xcopy %%t Redist\html\Config /y

) else ( :: The build is success, then generate the build code! echo == Clean build is failed. == ) popd

goto :EOF

:errorexit echo == Clean build is failed. == echo == Please correct the build, then submit your code == endlocal

[[i] 本帖最后由 rexuekonglong 于 2010-11-18 09:56 编辑 ]

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册