release-management

Maven - Reading a property from an external properties file

自作多情 提交于 2019-11-26 21:13:17
问题 I have a property file with the following junit.version=3.8.1 dbcp.version=5.5.27 oracle.jdbc.version=10.2.0.2.0 I try to read those properties from my pom file as shown below <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>dbcp</groupId> <artifactId>dbcp</artifactId> <version>${dbcp.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.oracle</groupId>

Separate 'debug' and 'release' builds?

做~自己de王妃 提交于 2019-11-26 16:11:00
I think it's better to release the version of the software which your developers actually tested; I therefore tend to delete the 'debug' target from the project/makefile, so that there's only one version that can be built (and tested, and debugged, and released). For a similar reason, I don't use 'assertions' (see also Are assertions always bad? ...). One person there argued that the reason for a 'debug' version is that it's easier to debug: but, I counter-argued that you may eventually want to support and debug whatever it is you released, and so you need to build a release which you can if

Side Effects of running the JVM in debug mode

回眸只為那壹抹淺笑 提交于 2019-11-26 14:06:22
问题 I'd like to realease a Java application in debug mode to allow for easier debugging when random or hard to reproduce problems occur on the customer side. However, I want to get a heads up on potential side effects of doing this? From the Java HotSpot Documentation it seems that there should be no performance penalty. From the link Full Speed Debugging The Java HotSpot VM now uses full-speed debugging. In previous version of the VM, when debugging was enabled, the program executed using only

Visual Studio 2010 Compiling with the Debug or Release version of third party library depending on if my project is being compiled Build or Release?

醉酒当歌 提交于 2019-11-26 10:23:24
问题 I\'ve downloaded a number of 3rd party libraries (dlls) now for Visual Studio 2010/C# and I\'ve noticed that in their distributions \\bin directory they usually have two versions Debug and Release. Is there a way to add these libraries as references to the project, but use the Release build (when I\'m building a release), and use the Debug build (when I\'m debugging)? 回答1: You can edit the csproj file manually set the Condition attribute on the ItemGroup containing the reference. <ItemGroup

iPhone - dealloc - Release vs. nil

纵然是瞬间 提交于 2019-11-26 08:49:26
问题 Wondering if someone with experience could possibly explain this a bit more. I have seen examples of... [view release]; view = nil; ....inside the (void) dealloc. What is the difference and is one better then the other? What is the best way? When doing retainCount testing I have personally seen nil drop a count from 3 to 0 for me, but release only drops it from 3 to 2. 回答1: What you have seen is probably these: 1) [foo release]; 2) self.bar = nil; 3) baz = nil; Is releasing the object,

How to select different app.config for several build configurations

↘锁芯ラ 提交于 2019-11-26 03:01:56
问题 I have a dll-type project that contains MSTest integration tests. On my machine the tests pass, and I want the same to happen on a CI server (I use TeamCity). But the tests fail, because I need to tweak some settings in app.config. This is why I was thinking to have a separate second app.config file that will hold the settings for CI server. So I would like to have /Sln /Proj app.config (I think this is required by VS) app.Release.config (This is a standalone independent config file) Thus if

Best practices for copying files with Maven

北战南征 提交于 2019-11-26 01:34:22
问题 I have config files and various documents that I want to copy from the dev environment to the dev-server directory using Maven2. Strangely, Maven does not seem strong at this task. Some of the options: Simple use a copy task in Maven <copy file=\"src/main/resources/config.properties\" tofile=\"${project.server.config}/config.properties\"/> Use the Ant plugin to execute copy from Ant. Construct an artifact of type zip , alongside the \"main\" artifact of the POM which is usually of type jar ,

How can I create a directly-executable cross-platform GUI app using Python?

蓝咒 提交于 2019-11-26 00:14:50
问题 Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to compile it into an executable for Mac, Windows and Linux. The problem being I have no idea where to start or how to write a GUI with it, can anybody shed some light on this and point me in the right direction please? 回答1: First you will need some GUI library with Python bindings and then (if you want) some program that will convert your python scripts into standalone