athena-deploy now calls the clean step to deal with a known ant issue where it does not detect changed constants. This addresses art3766.

Change-Id: I0bead9f585c610bb10faef3494c0b3358a79447f
This commit is contained in:
Fredric Silberberg
2014-11-11 14:13:19 -05:00
parent da0cc0c83f
commit 2fdb7c8eba

View File

@@ -66,7 +66,11 @@
</jar>
</target>
<target name="deploy" depends="get-target-ip,jar" description="Deploy the jar and start the program running.">
<!-- We're running a clean here to get around a known ant issue where it does not detected changed constant variables.
To get around this, we're recompiling the entire project, which is not an issue for most teams. If this is an issue
for you, you can remove the clean here, just be sure to do a full rebuild after you've changed any constants.
Reference: http://stackoverflow.com/questions/6430001/ant-doesnt-recompile-constants -->
<target name="deploy" depends="get-target-ip,clean,jar" 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"/>