Skip to content
Snippets Groups Projects
Commit 5d275b4d authored by vkovtun's avatar vkovtun
Browse files

SSDM-13368 Making it possible to run AS and DSS builds in offline mode.

parent f7e92fa3
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -320,12 +320,14 @@ war { ...@@ -320,12 +320,14 @@ war {
} }
def downloadCorePlugin(url, pluginname) { def downloadCorePlugin(url, pluginname) {
def file = project(':openbis').file("../openbis_standard_technologies/targets/downloads/${pluginname}.zip") if (!project.getGradle().startParameter.isOffline()) {
if (file.exists() == false || System.currentTimeMillis() - file.lastModified() > 3600000) { def file = project(':openbis').file("../openbis_standard_technologies/targets/downloads/${pluginname}.zip")
file.getParentFile().mkdirs() if (file.exists() == false || System.currentTimeMillis() - file.lastModified() > 3600000) {
ext.executeFunction('curl', [url, '-sLk', '-o', file.getAbsolutePath()]) file.getParentFile().mkdirs()
ext.executeFunction('unzip', ['-uqo', file.getAbsolutePath(), '-d', '../openbis_standard_technologies/targets/downloads/']) ext.executeFunction('curl', [url, '-sLk', '-o', file.getAbsolutePath()])
} ext.executeFunction('unzip', ['-uqo', file.getAbsolutePath(), '-d', '../openbis_standard_technologies/targets/downloads/'])
}
}
} }
import org.paleozogt.gradle.zip.SymZip; import org.paleozogt.gradle.zip.SymZip;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment