Revision f0105e9f build.xml
b/build.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="utf-8" ?> |
2 |
<project name="pithos" default="gwt-compile" basedir=".">
|
|
2 |
<project name="pithos" default="main" basedir=".">
|
|
3 | 3 |
<description>The Pithos web client project build file</description> |
4 | 4 |
|
5 | 5 |
<property file="build.properties"/> |
6 |
<property file="runtime.properties"/> |
|
6 | 7 |
<property name="deps.dir" value="dependencies"/> |
7 | 8 |
|
8 | 9 |
<property name="gwt.workers" value="1"/> |
... | ... | |
73 | 74 |
<pathelement path="${src.dir}" /> |
74 | 75 |
</classpath> |
75 | 76 |
</java> |
76 |
<!--move file="${gwt.www.dir}/${gwt.module}/${gwt.module.class}.html" tofile="${gwt.www.dir}/${gwt.module}/index.html"/--> |
|
77 | 77 |
</target> |
78 |
|
|
79 |
<target name="main" depends="gwt-compile"> |
|
80 |
<!--Fix the index html file variables --> |
|
81 |
<replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html" |
|
82 |
match="CLOUDBAR_ACTIVE_SERVICE = (.*)" |
|
83 |
replace="CLOUDBAR_ACTIVE_SERVICE = '${CLOUDBAR_ACTIVE_SERVICE}';" |
|
84 |
byline="true" |
|
85 |
/> |
|
86 |
<replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html" |
|
87 |
match="CLOUDBAR_LOCATION = (.*)" |
|
88 |
replace="CLOUDBAR_LOCATION = "${CLOUDBAR_LOCATION}";" |
|
89 |
byline="true" |
|
90 |
/> |
|
91 |
<replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html" |
|
92 |
match="CLOUDBAR_SERVICES = (.*)" |
|
93 |
replace="CLOUDBAR_SERVICES = "${CLOUDBAR_SERVICES}";" |
|
94 |
byline="true" |
|
95 |
/> |
|
96 |
<replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html" |
|
97 |
match="CLOUDBAR_MENU = (.*)" |
|
98 |
replace="CLOUDBAR_MENU = "${CLOUDBAR_MENU}";" |
|
99 |
byline="true" |
|
100 |
/> |
|
101 |
<replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html" |
|
102 |
match="loginUrl: (.*)" |
|
103 |
replace="loginUrl: "${loginUrl}"" |
|
104 |
byline="true" |
|
105 |
/> |
|
106 |
</target> |
|
78 | 107 |
|
79 |
<target name="uploadToVM" depends="gwt-compile">
|
|
108 |
<target name="uploadToVM" depends="main">
|
|
80 | 109 |
<scp todir="chstath@pithos.dev.grnet.gr:/var/www/pithos_web_client" keyfile="${ssh.key}" passphrase="${passphrase}"> |
81 | 110 |
<fileset dir="${gwt.www.dir}/${gwt.module}"/> |
82 | 111 |
</scp> |
Also available in: Unified diff