<?xml version="1.0" encoding="utf-8" ?>
-<project name="pithos" default="gwt-compile" basedir=".">
+<project name="pithos" default="main" basedir=".">
<description>The Pithos web client project build file</description>
<property file="build.properties"/>
+ <property file="runtime.properties"/>
<property name="deps.dir" value="dependencies"/>
- <property name="gwt.workers" value="1"/>
+ <property name="gwt.workers" value="2"/>
<property name="gwt.version" value="2.4.0"/>
<property name="gwt.home" value="${deps.dir}/gwt-${gwt.version}"/>
<pathelement path="${src.dir}" />
</classpath>
</java>
- <!--move file="${gwt.www.dir}/${gwt.module}/${gwt.module.class}.html" tofile="${gwt.www.dir}/${gwt.module}/index.html"/-->
</target>
+
+ <target name="main" depends="gwt-compile">
+ <!--Fix the index html file variables -->
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="CLOUDBAR_ACTIVE_SERVICE = (.*)"
+ replace="CLOUDBAR_ACTIVE_SERVICE = '${CLOUDBAR_ACTIVE_SERVICE}';"
+ byline="true"
+ />
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="CLOUDBAR_LOCATION = (.*)"
+ replace="CLOUDBAR_LOCATION = "${CLOUDBAR_LOCATION}";"
+ byline="true"
+ />
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="CLOUDBAR_SERVICES = (.*)"
+ replace="CLOUDBAR_SERVICES = "${CLOUDBAR_SERVICES}";"
+ byline="true"
+ />
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="CLOUDBAR_MENU = (.*)"
+ replace="CLOUDBAR_MENU = "${CLOUDBAR_MENU}";"
+ byline="true"
+ />
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="loginUrl: (.*)"
+ replace="loginUrl: "${loginUrl}","
+ byline="true"
+ />
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="feedbackUrl: (.*)"
+ replace="feedbackUrl: "${feedbackUrl}","
+ byline="true"
+ />
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="authCookie: (.*)"
+ replace="authCookie: "${authCookie}","
+ byline="true"
+ />
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="version: (.*)"
+ replace="version: "${version}""
+ byline="true"
+ />
+ </target>
- <target name="uploadToVM" depends="gwt-compile">
+ <target name="uploadToVM" depends="main">
<scp todir="chstath@pithos.dev.grnet.gr:/var/www/pithos_web_client" keyfile="${ssh.key}" passphrase="${passphrase}">
<fileset dir="${gwt.www.dir}/${gwt.module}"/>
</scp>
</scp>
</target>
+ <target name="rsyncToDev84">
+ <exec executable="${basedir}/rsync-to-dev84.sh"></exec>
+ </target>
+
<target name="clean" description="Delete all build artifacts">
<delete dir="${build.dir}"/>
</target>