build-numbers

Get scons to generate a new build number

泄露秘密 提交于 2020-01-15 09:13:37
问题 I'd like to get scons to read a previous version number from a file, update a source file with a new version number and current date and then write the number back to the original file ready for the next build. This needs to happen only when the target is out of date. IOW the version number doesn't change if no build takes place. The original file is source controlled and isn't a source file else it could trigger another build on check-in (due to CI). CLARIFICATION From scons' point of view

What's wrong with my Visual Studio auto-incrementing build number syntax?

为君一笑 提交于 2020-01-12 09:40:10
问题 i know Visual Studio has no way to increment the build number in a way that people would expect, but it support randomizing the build number: My AssemblyInfo.cs file contains: // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly:

Build number/fingerprint for Android Things

谁说我不能喝 提交于 2019-12-20 03:13:19
问题 I'm using the Developer Preview of Android Things on my Raspberry Pi 3 and now, that the Preview 2 is released, I was asking myself if my RPi will get this via OTA. Where can I find the build number to check against my device generic/iot_rpi3/rpi3:7.0/NIF73/3565696:userdebug/test-keys On the developer page I didn't find anything and before I rebuild by sdcard, it would be easier to compare it. 回答1: so I'm not sure if this is preview 1 or 2 generic/iot_rpi3/rpi3:7.0/NIF73/3565696:userdebug

How to display SVN version in Maven usng the build-number plugin

元气小坏坏 提交于 2019-12-19 10:01:50
问题 How do display the svn version and the timestamp using build number plugin. Currently I have the following <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <configuration> <format>At {0,time} on {0,date} : SVN Revision {1,number}</format> <items> <item>timestamp</item> <item>buildNumber</item> </items> <doCheck>false</doCheck> <doUpdate>false</doUpdate> </configuration> </plugin> </plugins> Which shows up as follows: At 8:02:51 AM on

CMake: Read build number from file to set a variable

岁酱吖の 提交于 2019-12-18 18:57:33
问题 I'm working on a project where the build number is stored in a file called 'BuildNumber.txt' at the root of the project. What I'd like to do is have CMake read the number from this file and set a variable that can be applied to a header file. setup.h.in #define build_number "@BUILD_NUMBER@"; Using configure_file, it's possible to replace placeholders in an .in file like above with a CMake variable. Is it possible to get CMake to read in the number from BuildNumber.txt into a variable? 回答1:

CMake: Read build number from file to set a variable

穿精又带淫゛_ 提交于 2019-12-18 18:56:56
问题 I'm working on a project where the build number is stored in a file called 'BuildNumber.txt' at the root of the project. What I'd like to do is have CMake read the number from this file and set a variable that can be applied to a header file. setup.h.in #define build_number "@BUILD_NUMBER@"; Using configure_file, it's possible to replace placeholders in an .in file like above with a CMake variable. Is it possible to get CMake to read in the number from BuildNumber.txt into a variable? 回答1:

Is it possible to use maven buildnumber plugin to generate build number without any scm check?

我们两清 提交于 2019-12-18 11:09:02
问题 Getting the following exception while using maven build number plugin. Is it possible to disable SCM check while using the build number plugin? Can we use this plugin to generate build number on non SCM build? Exception while doing the build: [ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on project projectname: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create failed: The scm url cannot be null. -> [Help 1] org

What's wrong with my Visual Studio auto-incrementing build number syntax?

浪尽此生 提交于 2019-12-03 16:16:45
i know Visual Studio has no way to increment the build number in a way that people would expect, but it support randomizing the build number : My AssemblyInfo.cs file contains: // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("1.0.*")] And yet it gives, what appears to me,

Build number/fingerprint for Android Things

萝らか妹 提交于 2019-12-02 01:34:28
I'm using the Developer Preview of Android Things on my Raspberry Pi 3 and now, that the Preview 2 is released, I was asking myself if my RPi will get this via OTA. Where can I find the build number to check against my device generic/iot_rpi3/rpi3:7.0/NIF73/3565696:userdebug/test-keys On the developer page I didn't find anything and before I rebuild by sdcard, it would be easier to compare it. Onik so I'm not sure if this is preview 1 or 2 generic/iot_rpi3/rpi3:7.0/NIF73/3565696:userdebug/test-keys is the fingerprint for Preview 1 , so you're still on it. You can getprop ro.build.id to see the

Maven + Mercurial for Build Numbers

白昼怎懂夜的黑 提交于 2019-12-01 20:36:14
问题 I can't figure out how to get a Mercurial revision id put into my Maven build (ideally I would like it in the MANIFEST of my jars and war). The closest solution I could find is: mvn -DbuildNumber=`hg id -i` Which won't really work for Windows or my Hudson server. Luckily Hudson tags my builds but I would like some more assurance if the builds were also tagged with the Mercurial changset id. 回答1: Have a look at this previous question and the link from the accepted answer. Basically, you want