versioning

Automate AssemblyFileVersion Incrementation using GIT

限于喜欢 提交于 2019-12-10 08:26:37
问题 Ok I understand that this is probably not conventional, but that aside: I am using the AssemblyFileVersion as kind of my "Build Name" string. It is formated like this: ' File Version information for an assembly consists of the following four values: ' ' Year ' Month ' Day ' Commit Number for that day ' ' Build Name can either be alpha | beta | hotfix | release ' alpha - is a development buildname with rapid changing API ' beta - is a production build for our beta users ' hotfix - is a

How to get revision number from Mercurial repository and paste it to NetBeans resource bundle?

只愿长相守 提交于 2019-12-10 07:25:56
问题 I have a java project in NetBeans and im using Mercurial for version controlling. I want to see my project version number in about box and i want it to be updated according to Mercurial revision number. Any ideas how to do it? :) 回答1: Following 'Version numbering for auto builds with Mercurial', you can record in a VERSION.TXT file (that you about dialog would display) the result of: hg log -r . --template '{latesttag}-{latesttagdistance}-{node|short}' Lazy Badger comments: log will be a lot

Versioning and release management with multiple products with shared code base

跟風遠走 提交于 2019-12-10 05:18:40
问题 I am currently trying to figure out, how to do release management with git flow in a scenario where I have one git repository with about 15 projects in two solutions plus scripts for the database. Each solution basically contains one project that will result in an executable and more than 10 projects containing base functionality used by both solutions like DAL, SAP access wrapper etc. Solution one is an application with UI for the users. Solution two is a Windows service. The release of the

What is the benefit of versioning a REST api by date as Twilio does?

断了今生、忘了曾经 提交于 2019-12-10 03:53:53
问题 Basically, I think it's a good idea to version your REST api. That's common sense. Usually you meet two approaches on how to do this: Either, you have a version identifier in your url, such as /api/v1/foo/bar , or, you use a header, such as Accept: vnd.myco+v1 . So far, so good. This is what almost all big companies do. Both approaches have their pros and cons, and lots of this stuff is discussed here. Now I have seen an entirely different approach, at Twilio, as described here. They use a

Recommended way to test for iOS Version specific feature at runtime

↘锁芯ラ 提交于 2019-12-10 03:04:02
问题 I'm targetting IOS 4.3 and 5.0 with an app built against the 5.0 SDK and would like to add support for the Twitter functionality introduced in iOS5 only when the app runs on a iOS5 device. What is the recommended way to reliably test for the availability of these OS features at runtime without having your app crash? I know you do this using respondsToSelector in Objective-C but how is it done in C#? 回答1: With recent MonoTouch versions you can use the following code: if (UIDevice.CurrentDevice

How to know which user answered a Jenkins-Pipeline input step?

蓝咒 提交于 2019-12-10 02:45:06
问题 I have a Jenkinsfile script that tests for the possibility to perform an SVN merge and then asks the user for the permission to commit the merge. I would like to know the username that answers the "input" step in order to write it into the commit message. Is this possibile? This is what hypothetically I would like to do: outcome = input message: 'Merge trunk into branch?', ok: 'Merge' echo "User that allowed merge: ${outcome.user}" 回答1: The input step got an optional submitterParameter, which

Why did reinstalling Silverlight break my Import configuration?

本秂侑毒 提交于 2019-12-10 02:31:08
问题 Based on the answer here: Which, if any, recent Windows updates should I uninstall to revivify Silverlight or rectify other problems?, I uninstalled / reinstalled Silverlight and rebooted. Now, though, I get a compilation error, namely: "The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk." It points to this line in a *.csproj

Basic version control for MySQL table

拟墨画扇 提交于 2019-12-09 18:38:23
问题 I'm trying to setup a (I thought) fairly simple versioning system for static html pages on a site. The goal is to keep previous versions of the content, then restore to them if needed (I guess basically creating a new version that's a duplicate of an old one), and optionally to toss out data older than X versions ago. The table's setup is fairly straightforward: id reference_id (string/used to determine what page the item pertains to) content (document/html page sized amount of data) e_user

Adding version infomation to an OSX command line application

痴心易碎 提交于 2019-12-09 14:03:48
问题 On Windows I'd simply add an RC file with the right data. Do I need to assemble a bundle as usual with an info.plist/version.plist or is there a better, standard , way of doing things? This is for Snow Leopard and later if that is relevant. Thx++ 回答1: It is possible to embed an Info.plist file in an executable as a special Mach-o section. See for example this question. 回答2: If you have a command line application, then it's just a single file and not a traditional OSX app package (with a

Tomcat 7 - Retrieve the version of a webapp (versioned WAR)

旧巷老猫 提交于 2019-12-09 13:35:15
问题 I've been unable to find any easy way of figuring out the version string for a WAR file deployed with Tomcat 7 versioned naming (ie app##version.war). You can read about it here and what it enables here. It'd be nice if there was a somewhat more supported approach other than the usual swiss army knife of reflection powered ribcage cracking: final ServletContextEvent event ... final ServletContext applicationContextFacade = event.getServletContext(); final Field applicationContextField =