Merge pull request #224 from neuweiler/master

fix regression of PR 221: extract version before replacing variables
This commit is contained in:
Michael Bayne
2019-05-29 11:01:14 -07:00
committed by GitHub
3 changed files with 8 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
*.txt eol=lf
*#txt eol=lf
*.sh eol=lf
+1
View File
@@ -1,3 +1,4 @@
/*/target/
/target/
core/src/main/java/com/threerings/getdown/data/Build.java
*.iml
@@ -594,7 +594,10 @@ public class Application
* like the appbase and version.
*/
public void initBase (Config config) throws IOException {
// first determine our application base, this way if anything goes wrong later in the
// first extract our version information
_version = config.getLong("version", -1L);
// determine our application base, this way if anything goes wrong later in the
// process, our caller can use the appbase to download a new configuration file
_appbase = config.getString("appbase");
if (_appbase == null) {
@@ -609,9 +612,6 @@ public class Application
_appbase += "/";
}
// extract our version information
_version = config.getLong("version", -1L);
// if we are a versioned deployment, create a versioned appbase
try {
_vappbase = createVAppBase(_version);