build-process

Testing and Managing database versions against code versions

只谈情不闲聊 提交于 2019-12-04 04:13:39
As you develop an application database changes inevitably pop up. The trick I find is keeping your database build in step with your code. In the past I have added a build step that executed SQL scripts against the target database but that is dangerous in so much as you could inadvertanly add bogus data or worse. My question is what are the tips and tricks to keep the database in step with the code? What about when you roll back the code? Branching? Version numbers embedded in the database are helpful. You have two choices, embedding values into a table (allows versioning multiple items) that

Sequentially build configurations in Visual Studio without MSBuild or plugins?

你说的曾经没有我的故事 提交于 2019-12-04 03:40:18
问题 MSDN describes how to create a batch build, but does not provide a way to automate different batches (and one click solution for the GUI) This question describes conditionally invoking a second build but doesn't appear to suffice for more than two sequential configurations This question addresses the same situation, but again only for two configurations In my test case, each configuration: defines its own MACROS (which impact source code) is applicable to multiple projects (class libraries).

How to setup an Eclipse Project with multiple Subprojects (OSGi-Bundles)

故事扮演 提交于 2019-12-04 03:15:41
问题 Sherlog is an OSGi-based log analyzer, if I import this project as an workspace snapshot I receive lot's of projects in my workspace, but I would prefere to have them as subprojects in a project. The other option would be to checkout from svn, but then I face other problems (I don't know how to setup the dependencies for automatically build) Does anyone have an idea or good links on this topic? Thanks 回答1: EDIT: For Eclipse 4.5 and newer please see https://stackoverflow.com/a/34134833/53897

Why is the Workflow Designer so extremely slow when editing build process templates?

落爺英雄遲暮 提交于 2019-12-04 03:04:05
There's not much more to add really than the above question. I have a fairly simple build process template, which has hardly deviated from the default one. I have two custom activities, which by recommendation live in a separate assembly within the same solution. However.... Opening the template takes about two minutes. Changing properties on an activity in the workflow, reordering activities in the workflow, adding activities to the workflow, all take between 30-60 seconds. It's completely unusable at the moment and I'm beginning to regret moving from Cruise Control to TFS for build

Overriding 'clean' lifecycle in Maven

二次信任 提交于 2019-12-04 02:31:06
I was going through a book that explain how to override 'default' lifecycle of Maven. It says: To define a new lifecycle for a packaging type, you'll need to configure a LifecycleMapping component in Plexus. In your plugin project, create a META-INF/plexus/components.xml under src/main/resources. In components.xml add the content as shown below, and you're done. With below configuration, I'm able to customize the default lifecycle for 'jar' packaging type. Now If I exeute $ mvn package It straigh away executes 'package' phase skipping all other phases of default lifecycle and executes 'echo'

How to add system property equivalent to java -D in Ant

徘徊边缘 提交于 2019-12-04 01:22:06
I need to set java -Djava.library.path=/some/path and I want to do it when I am running my ant script, building my jar. I think I have to use <sysproperty key="java.library.path" value="/some/path"/> but it doesnt work. I cannot make the syntax work. The only thing I have Googled and found is sysproperty in conjunction with <java classname> but that doesnt make any sense to me. I am not sure if this is relevant, but I am using ant to create a ear and deploying this ear in JBoss. Here is an example Ant target run that executes the example.jar and passes a system property with key="java.library

How do I configure eclipse to automatically refresh a project as part of it's build?

折月煮酒 提交于 2019-12-04 01:02:32
I have a maven plugin generating some code for eclipse to build, but I have to manually refresh the project before eclipse sees the code. How can I make eclipse automatically refresh the project as part of the build? I'm trying to use a custom builder, but it wants to run a command (which I don't need to do). You can make eclipse automatically refresh your whole workspace: Window->Preferences->General->Workspace and check "Refresh automatically" you can make it project/build specific for external builders under Project Properties->Build->Refresh Policy . Here is an example for C/C++ builds.

maven - fail build when unit test takes too long

大城市里の小女人 提交于 2019-12-04 00:51:52
I have in my project a lot of unit tests, written in JUnit and TestNG. The building process is based on maven with surefire plugin. Is there any way/plugin for maven to fail the build when at least one unit test takes too many seconds? I know that there are some plugins to fail build in TeamCity, Jenkins but this is "too far". In my project I want to have only fast tests to have unit testing process effective. I can improve my old tests but I need to protect for the future commitments If all your tests extend some base class, I think you can stick @Rule in there which will apply to all the

Jenkins configuration of git plugin

一曲冷凌霜 提交于 2019-12-04 00:24:35
I get this error when configuring git repo in a new jenkins project: Failed to connect to repository : Error performing command: ls-remote -h file:///c:\Dev\git\rx HEAD I have a local git repo on my windows machine and cloning the same path from command prompt works on the same machine. I don't know what could be the problem (git.exe is on system path) Windows installs Jenkins as a service. But it runs the Jenkins service under different user permissions that don't have access to GIT. You can follow this link to find the user that Jenkins runs under. http://antagonisticpleiotropy.blogspot.com

CMake or Waf for D project

♀尐吖头ヾ 提交于 2019-12-04 00:08:46
We are looking for adequate build tool for a desktop GUI application to be written in D (using Qt toolkit), consisting of several native libraries, using 3rd party C-lib(s). It has to build on Linux (native development) and Mac as well on Windows. We might adopt Code::Blocks as IDE. Waf already has support for D language, while CMake is just receiving it cmaked2 . CMake uses special language, while Waf is pure Python...Otoh, CMake, via CPack, can produce packages in several formats as well as GUI installer for e.g. Windoze. Any pro/cons and what would you use? We excluded Scons for speed