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

zhangjianjie1986@126.com · 2010年07月30日 · 3 次阅读

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

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

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

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

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

不好意思,没什么经验, 用 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

然后呢?

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

解决了没有?

你可以在在脚本里加一句
在执行编译前,先执行 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 编辑 ]

需要 登录 后方可回复。