Travis build fix
This commit is contained in:
@@ -13,7 +13,11 @@ ext.writeVersion = {
|
|||||||
def pfile = new File('../core/assets/version.properties')
|
def pfile = new File('../core/assets/version.properties')
|
||||||
def props = new Properties()
|
def props = new Properties()
|
||||||
|
|
||||||
|
try{
|
||||||
pfile.createNewFile()
|
pfile.createNewFile()
|
||||||
|
}catch (Exception e){}
|
||||||
|
|
||||||
|
if(pfile.exists()) {
|
||||||
|
|
||||||
props.load(new FileInputStream(pfile))
|
props.load(new FileInputStream(pfile))
|
||||||
|
|
||||||
@@ -26,6 +30,7 @@ ext.writeVersion = {
|
|||||||
|
|
||||||
props.store(pfile.newWriter(), "Autogenerated file. Do not modify.")
|
props.store(pfile.newWriter(), "Autogenerated file. Do not modify.")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ext.getPlatform = {
|
ext.getPlatform = {
|
||||||
if (project.hasProperty("platform")) {
|
if (project.hasProperty("platform")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user