build-process

How Ant can get a value read from a file into a property value?

徘徊边缘 提交于 2019-11-29 12:20:58
问题 The file looks like: a1,b1 a2,b2 ... I know the value "a2". How to get the value "b2" into a property value. I know how to select line which contains "a2" by: <linecontains> <contains value="a2"/> </linecontains> But I do not know how to set a property value to "b2". I am at your disposal for more other information. 回答1: The following does the trick for me: <loadfile srcfile="data" property="result"> <filterchain> <linecontains> <contains value="a2"/> </linecontains> <tokenfilter>

Obtain output files from a MSBuild project

房东的猫 提交于 2019-11-29 11:39:08
问题 Is it possible to obtain a list all all the output files from a MSBuild project? In a simple project, I could do something like <CreateItem Include="$(OutputDir)**\*"> <Output ItemName="AllOutputs" TaskParameter="Include"/> </CreateItem> but my projects are part of a larger build, and all outputs go to a common location, I want to be able to exculde dlls and content that don't belong. Any ideas? 回答1: After looking at your comment again I realized that I mis-intrepreted what you really needed.

Any experience with a Continuous Integration Appliance? [closed]

让人想犯罪 __ 提交于 2019-11-29 09:51:59
问题 We have a continuous integration server running Hudson CI. I'm thinking about putting up an LCD display in the office with various build stats and am curious what others have put together. I'm currently thinking about buying a WIFI-enabled digital picture frame that I can send generated images to. Or repurposing an old laptop... Thoughts? Experiences? 回答1: There are many solutions (all links below point to working solutions with Hudson or existing plugins): Hudson Build Status Lava Lamps

Building a WAR project with unzipped JAR dependency?

こ雲淡風輕ζ 提交于 2019-11-29 09:35:43
I have two projects, my-lib and my-webapp . The first project is a dependency of my-webapp . Thus, when ask Maven2 to build my WAR, the my-lib JAR is added in the WEB-INF/lib/ directory of the web application. However, I want to have the my-lib JAR unzipped directly in the WEB-INF/classes directory, exactly as if the my-lib sources were contained in the project my-webapp . In others words, instead of having the following WAR content: my-webapp/ ... WEB-INF/ lib/ my-lib-1.0.jar ... (others third libraries) I want to have that: my-webapp/ ... WEB-INF/ classes/ my-lib files lib/ ... (others third

Build management/ Continuous Integration best practices

南楼画角 提交于 2019-11-29 08:41:35
问题 How does your team handle Builds? We use Cruise Control, but (due to lack of knowledge) we are facing some problems - Code freeze in SVN - Build management Specifically, how do you make available a particular release when code is constantly being checked in? Generally, can you discuss what best practices you use in release management? 回答1: I'm positively astonished that this isn't a duplicate, but I can't find another one. Okay, here's the deal. They are two separate, but related questions.

How do you turn on Code Coverage in Builds within TFS?

佐手、 提交于 2019-11-29 08:22:27
问题 I need to know how to turn on Code Coverage when running TFS builds on a solution with a .testrunconfig file. There is an option in the testrunconfig file that is for code coverage, but when running a TFS build there is no code coverage results. I am running my tests using the *Tests.dll mask and NOT using Test Lists (.vsmdi). 回答1: How are you running the tests? Are you using a .vsmdi file or just specifying that you run all tests in *Tests.dll assemblies? If it is the latter and you are

Run an MSBuild target only if project is actually built

好久不见. 提交于 2019-11-29 07:17:43
I have an MSBuild file that builds * / .sln files (builds all .sln files that exist). The build uses the Build target, so if no changes were made to input files, no project should be built again. I would like to execute some custom target only if a project actually gets built again. How can this be done? Both AfterBuild and AfterCompile are always called, no matter if the compile/build actually takes place. Basically you want the same behaviour as the PostBuildEvent for instance, so I looked up how Microsoft.Common.Targets does it (this file always provides a nice insight in to how msbuild is

Create multiple versions of a project in Visual Studio using Build Configurations

南笙酒味 提交于 2019-11-29 07:17:33
I neeed to create multiple versions of my project using configuration just like we do with #define , #if , #endif . The down side of using these preprocessor directives is that I need to define symbols in almost every file of the project but I want to handle this thing by my build configurations. I am not even sure if Build Configurations will help me to do this. What I want is if I create a configuration with name "Development" and other with name "QA", my code would look like: if #Development or if $QA Kindly guide me towards achieving this. Steve Configuration Manager exist for this reason.

Renaming files during ANT copy

纵然是瞬间 提交于 2019-11-29 06:39:43
问题 I'd like to copy a directory of files, and rename some of them in the process. When I run the script below, nothing copies. If I comment the glob mappers in the file below, the files are copied (without the renaming) Thanks for any help. James <?xml version="1.0" ?> <project name="Create project structure" default="main"> <target name="main" description="Copy template files to project folder"> <echo>Copying template files to project folder</echo> <copy todir="${project.dir}" verbose="true"

How to get doxygen to run faster?

為{幸葍}努か 提交于 2019-11-29 06:20:03
问题 Doxygen is a bit slow - it takes about a couple of minutes to process my whole project, so for small incremental changes this is longer than actually building the rest of my code. There are thousands of files without any documentation so I guess it is spending most of its time processing them. Is there any way to get it to skip files without any documentation? What about getting it to only process changed files? 回答1: From Doxygen documentation: How can I exclude all test directories from my