New netconsole-host that overwrites the old one on every deploy

Change-Id: I9f9e94a67810b1b40b354a2bfc511f44a05b858a
This commit is contained in:
Brad Miller
2015-01-16 21:03:52 -05:00
parent 9b7042a51a
commit e614217d41
4 changed files with 19 additions and 1 deletions

View File

@@ -104,7 +104,16 @@
<target name="deploy" depends="clean,jar,get-target-ip,dependencies" description="Deploy the jar and start the program running.">
<echo>[athena-deploy] Copying code over.</echo>
<scp file="${dist.jar}" todir="${username}@${target}:${deploy.dir}" password="${password}" trust="true"/>
<scp file="${wpilib.ant.dir}/robotCommand" todir="${username}@${target}:${command.dir}" password="${password}" trust="true"/>
<sshexec host="${target}"
username="admin"
password="${password}"
trust="true"
failonerror="false"
command="killall netconsole-host"/>
<scp file="${wpilib.ant.dir}/netconsole-host" todir="admin@${target}:/usr/local/frc/bin" password="${password}" trust="true"/>
<scp file="${wpilib.ant.dir}/robotCommand" todir="${username}@${target}:${command.dir}" password="${password}" trust="true"/>
<echo>[athena-deploy] Starting program.</echo>
<sshexec host="${target}"