<?xml version="1.0"?>
<project name="coin-portal-dist-build" default="build" basedir=".">

	<!-- Ant for replacing the property version in the spring config -->

	<target name="build" description="Replace the version token with the pom-version">
		<copy file="${basedir}/src/main/resources/context/teams.xml"
			tofile="${basedir}/target/resources/context/teams.xml" overwrite="true">
			<filterset>
				<filter token="VERSION" value="${coin-version}" />
			</filterset>
		</copy>
	</target>

</project>
<?xml version="1.0"?>
<project name="coin-teams-dist-build" default="build" basedir=".">

  <!-- Ant for replacing the property version in the spring config -->

  <target name="build" description="Replace the version token with the pom-version">
    <copy file="${basedir}/src/main/resources/context/teams.xml"
          tofile="${basedir}/target/resources/context/teams.xml" overwrite="true">
      <filterset>
        <filter token="VERSION" value="${coin-version}"/>
      </filterset>
    </copy>
  </target>

  <!-- Usage:  ant -f coin-portal-dist/build.xml -Dmachine=t04.dev.coin.surf.net scp -->
  <!-- Cannot directly call executable 'scp', because ant does not support the wildcard use -->
  <target name="scp" description="SecureCoPies the tar.gz to the configured machine">
    <exec executable="sh" failonerror="true" failifexecutionfails="true">
      <arg line="-cv 'scp ${basedir}/target/coin-portal-dist-*.tar.gz ${machine}:/home/bamboo/dist/'"/>
    </exec>
  </target>
  
</project>
Add scp goal to Ant script for automagic deployments
Add scp goal to Ant script for automagic deployments

git-svn-id: 7f9817d80667deac6042fd45474745cdc98fb3cd@860 3364c4cd-9065-40b6-aee7-261f90ce6533
