Build.xml

From Maslab 2011

(Difference between revisions)
Jump to: navigation, search
Maslab (Talk | contribs)
(Created page with "<pre> <project name="maslab" default="build" basedir="."> <!-- CHANGE THESE THREE VALUES FOR AUTOMATIC UPLOAD --> <property name="robotIP" value="18.251.0.140"/> <property ...")
Newer edit →

Revision as of 20:25, 6 January 2011

<project name="maslab" default="build" basedir=".">
  <!-- CHANGE THESE THREE VALUES FOR AUTOMATIC UPLOAD -->
  <property name="robotIP" value="18.251.0.140"/>
  <property name="destDir" value="/home/maslab"/>
  <property name="username" value="maslab"/>
  <target name="build">
    <!-- This does deep dependency checking on class files -->
    <depend srcdir="." cache="depcache" closure="true"/>
    <!-- This compiles all the java -->
    <javac srcdir="." includes="**/*.java" debug="true" classpath="ANYADDITIONALJARFILESHERE:SEPARATEDBYCOLONS"/>
  </target>
  <!-- Clean everything -->
  <target name="clean">
    <delete>
      <fileset dir="." includes="**/*.class"/>
      <fileset dir="." includes="**/*~" defaultexcludes="no"/>
    </delete>
  </target>
  <!-- Upload files to robot -->
  <target name="upload" depends="build">
    <exec executable="rsync">
      <arg line="-e ssh -avr . ${username}@${robotIP}:${destDir}"/>
    </exec>
  </target>
</project>
Personal tools