new NXSL class "Event" attributes "source" and "sourceId"
[public/netxms.git] / build / next_build_number.pl
old mode 100644 (file)
new mode 100755 (executable)
index ce5c14b..b0a77e3
@@ -33,3 +33,15 @@ copy("../android/src/console/res/values/build_number.xml","../android/src/agent/
 open my $outcmd, '>', "../src/java/build/set_build_number.cmd" or die "cannot open set_build_number.cmd";
 print $outcmd "set build_number=$build\n";
 close $outcmd;
+
+open my $outsh, '>', "../src/java/build/set_build_number.sh" or die "cannot open set_build_number.sh";
+print $outsh "build_number=$build\n";
+close $outsh;
+
+open my $outjava, '>', "../src/java/client/netxms-base/src/main/java/org/netxms/base/BuildNumber.java" or die "cannot open BuildNumber.java";
+print $outjava "package org.netxms.base;\n";
+print $outjava "public final class BuildNumber {\n";
+print $outjava "   public static final String TEXT = \"$build\";\n";
+print $outjava "   public static final int NUMBER = $build;\n";
+print $outjava "}\n";
+close $outjava;