svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.installer / org.gvsig.desktop.installer.izpack / org.gvsig.desktop.installer.izpack.lin.x86_64 / src / main / scripts / deploy_lin.groovy @ 42300
History | View | Annotate | Download (671 Bytes)
1 |
|
---|---|
2 |
|
3 |
import Helper |
4 |
|
5 |
|
6 |
def deployInstallers(helper) { |
7 |
|
8 |
WebDAVClient session = helper.getWebDAVClient(log); |
9 |
targetfolder = helper.getAddOnRepoURL() |
10 |
sourcefolder = new File(project.basedir, "target").getAbsolutePath() |
11 |
|
12 |
session.makedirs(targetfolder); |
13 |
|
14 |
fname = helper.getInstallerName("-"+project.properties["installer_os"]+"-"+project.properties["installer_architecture"]+"-online.jar") |
15 |
session.put( |
16 |
sourcefolder + "/" + fname,
|
17 |
targetfolder+"/" + fname
|
18 |
) |
19 |
} |
20 |
|
21 |
|
22 |
def main() { |
23 |
if( project.properties["deploy-installers"] != null ) { |
24 |
def helper = new Helper(log,project) |
25 |
|
26 |
deployInstallers(helper) |
27 |
} |
28 |
|
29 |
} |
30 |
|
31 |
main() |
32 |
|