I marked private stuff with a '*'.
<?xml version="1.0" ?>
<!-- Fetch translations build.xml //-->
<project default="createJarFile" basedir=".">
<property name="workspace" location="${basedir}\..\..\..\..\..\" />
<property name="eclipse" location="${ant.home}\..\..\" />
<available file="${user.home}\.ssh\private_key.ppk" property="key.present" />
<target name="fetchTranslation" description="Fetch translations">
<echo>Start fetching translations from google drive...</echo>
<java classname="ch.*.building.translation.SpreadsheetFetcher" failonerror="true" fork="true">
<classpath>
<pathelement location="${workspace}\classes" />
<fileset dir="${workspace}\lib\">
<include name="**/*.jar" />
</fileset>
</classpath>
</java>
</target>
<target name="createJarFile" depends="fetchTranslation" description="Create properties jar file">
<echo>Packing property files into jar.</echo>
<jar jarfile="${eclipse}\webapps\ivy\WEB-INF\lib\properties.jar" includes="**/*.properties" basedir="${workspace}\src\">
</jar>
</target>
<target name="deploy2server" depends="createJarFile" description="Deploy translations" if="key.present">
<echo>Deploy jar file to ftp server.</echo>
<scp todir="*:/opt/xpertivy/webapps/ivy/WEB-INF/lib" port="*" trust="true" file="${eclipse}\webapps\ivy\WEB-INF\lib\properties.jar" keyfile="${user.home}/.ssh/private_key.ppk" />
</target>
</project>
This file has been created by Beat Jost my teammember.