From 3868ea37148a960908bf4b72e99c415d8ce01319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 8 Nov 2014 15:59:48 +0100 Subject: [PATCH] new versioning schema --- build.xml | 5 +- build_common.xml | 133 +++++++++++++++--- .../decompiler/flash/ApplicationInfo.java | 5 +- version.properties | 5 + 4 files changed, 122 insertions(+), 26 deletions(-) create mode 100644 version.properties diff --git a/build.xml b/build.xml index 4d1cf2536..35393e969 100644 --- a/build.xml +++ b/build.xml @@ -2,10 +2,6 @@ Builds project FFDec - - - - @@ -63,6 +59,7 @@ + diff --git a/build_common.xml b/build_common.xml index af08bab50..c191fa258 100644 --- a/build_common.xml +++ b/build_common.xml @@ -1,6 +1,9 @@ Builds project + + + @@ -26,6 +29,12 @@ + + + + + + @@ -117,7 +126,7 @@ - + @@ -125,8 +134,8 @@ - - + + @@ -134,12 +143,12 @@ - + - + @@ -152,7 +161,7 @@ - + true @@ -231,16 +240,7 @@ - - - - - - - - - - + @@ -294,7 +294,7 @@ - + @@ -333,14 +333,14 @@ - + - + @@ -380,7 +380,7 @@ - + @@ -480,4 +480,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #DO NOT MODIFY - it is updated automatically with the build script +major = ${newversion.major} +minor = ${newversion.minor} +release = ${newversion.release} +build = ${newversion.build} + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ApplicationInfo.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ApplicationInfo.java index af221a2b1..ac8a8781d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ApplicationInfo.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ApplicationInfo.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash; import java.io.IOException; @@ -48,7 +49,7 @@ public class ApplicationInfo { build = prop.getProperty("build"); nightly = prop.getProperty("nightly").equals("true"); if (nightly) { - version = version + " nightly build " + build.substring(0, 7); + version = version + " nightly build"; } } catch (IOException | NullPointerException ex) { //ignore diff --git a/version.properties b/version.properties new file mode 100644 index 000000000..f3e573795 --- /dev/null +++ b/version.properties @@ -0,0 +1,5 @@ +#DO NOT MODIFY - it is updated automatically with the build script +major = 4 +minor = 0 +release = 0 +build = 299 \ No newline at end of file