mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* automatically hardcode build revision into each release
This commit is contained in:
parent
db3be3e9d1
commit
96fdea340d
@ -357,6 +357,12 @@
|
|||||||
<exclude name="**/*.java" />
|
<exclude name="**/*.java" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
<!-- update application properties -->
|
||||||
|
<replace dir="${dir.build}" encoding="utf-8" summary="yes">
|
||||||
|
<include name="**/*.properties" />
|
||||||
|
<replacefilter token="@{svn.revision}" value="${svn.revision}" />
|
||||||
|
</replace>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,7 +31,11 @@ public final class Settings {
|
|||||||
|
|
||||||
|
|
||||||
public static int getApplicationRevisionNumber() {
|
public static int getApplicationRevisionNumber() {
|
||||||
return Integer.parseInt(getApplicationProperty("application.revision"));
|
try {
|
||||||
|
return Integer.parseInt(getApplicationProperty("application.revision"));
|
||||||
|
} catch (Exception e) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# application settings
|
# application settings
|
||||||
application.name: FileBot
|
application.name: FileBot
|
||||||
application.version: 2.5
|
application.version: 2.5
|
||||||
application.revision: 905
|
application.revision: @{svn.revision}
|
||||||
|
|
||||||
# application updates
|
# application updates
|
||||||
update.url = http://filebot.sourceforge.net/update.xml
|
update.url = http://filebot.sourceforge.net/update.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user