build-process

Starting external process during integration testing in maven

点点圈 提交于 2019-11-30 10:29:24
I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests are finished, but is not necessary. Is there a Maven plugin to accomplish this? Other ideas? sblundy You could use the antrun plugin. Inside you would use ant's exec apply task. Something like this. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.2</version> <executions> <execution> <phase> <!-- a

Is it possible to develop for sharepoint using continuous integration techniques?

一个人想着一个人 提交于 2019-11-30 09:59:46
We are gearing up for some pretty serious Sharepoint(MOSS 2007) development including custom web parts, lists, master pages and layouts etc etc and etc. We are evaluating version control and it seems that the discussion has not got much deeper than that. I am keen that we can easily deploy from the source control to our test and production servers with as little human contact as possible, and preferably entirely automatically after every check in. I have not worked using CI before and so am feeling a bit ignorant as to what is possible with Sharepoint, and what is too complex to be sensible. I

Image address in ember templates grunt build

六眼飞鱼酱① 提交于 2019-11-30 09:52:55
I used Yeoman to create a web app in EmberJS. Everything works ok, but after using the grunt build command, if I view the built app in the browser (from dist directory), I can see that some images are missing because the src path is wrong. Grunt is changing the names of all images in the "image" folder, but not updating the paths in my HTML. It updates the path only in css files; the images in the .hbs template files still have the old path (with the old image name)... Anyone know how to fix this? Finally i got rid of this: all that is needed is to edit the Gruntfile.js in the project's root;

TFS Build error - “The specified path, file name, or both are too long…”

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 09:51:34
I'm writing the Custom Activities of build process template. I got the below issue when build the activity. >XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type 'System.IO.PathTooLongException' : 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'. Do you have any ideas? Please help! I find one tip here . Hope it might be helpful to you. Currently there are a two workarounds: Reduce the

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

大城市里の小女人 提交于 2019-11-30 08:46:45
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. Mnementh The following does the trick for me: <loadfile srcfile="data" property="result"> <filterchain> <linecontains> <contains value="a2"/> </linecontains> <tokenfilter> <replacestring from="a2," to=""/> </tokenfilter> </filterchain> </loadfile> <echo message="${result}"/> As you

Make (Parallel Jobs) on Windows

[亡魂溺海] 提交于 2019-11-30 08:34:05
What setup works for GNU make parallel jobs (-j) on Windows? I have tried setting the shell to cmd.exe using MinGW make 3.81, this works in creating the multiple processes but make fails with the "waiting for job" message. Can this work and what is the best setup? (MinGW / Cygwin / ???) Can someone point me to a working example to test against? I've never had any promblems using make -jn under Cygwin. It works rather well. I regularly use it with Microsoft's cl.exe compiler. It just works out of the box for me. Very UNIX like, which is a Good Thing™. Build scripts port nicely to Linux and the

Obtain output files from a MSBuild project

删除回忆录丶 提交于 2019-11-30 08:24:50
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? After looking at your comment again I realized that I mis-intrepreted what you really needed. This is an interesting problem you have on your hands. If you don't mind editing the project file itself

Buildprocess for ActiveX / COM / VB6 enterprise projects

為{幸葍}努か 提交于 2019-11-30 07:19:24
问题 We have developed a software system using ActiveX/COM (VB6) technology from microsoft. In the last year, i get more and more interested in automated build processes and SCM at a whole. I intensively searched big parts of the web for information about best practices how to do scm with COM based software systems. The "problem" with COM is, that a referencing component holds the reference by an unique interface id. When you recompile the referenced component, the id may change and the reference

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

左心房为你撑大大i 提交于 2019-11-30 07:02:51
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). 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 using TFS 2008, then you need to add the following to the and of the first PropertyGroup in your TFSBuild.proj

Renaming files during ANT copy

烈酒焚心 提交于 2019-11-30 06:48:53
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" overwrite="true"> <fileset dir="${shared.files}/templateproject" excludes=".svn"/> <mapper>