| <project name="crio-configure"> | |
| <macrodef name="crio-configure"> | |
| <attribute name="remoteaddress"/> | |
| <attribute name="type"/> | |
| <attribute name="sunspot.home" default="${sunspot.home}"/> | |
| <sequential> | |
| <if> | |
| <available file="${sunspot.home}/cRIO_conf" type="dir" /> | |
| <then> | |
| <echo>[crio-configure] Configuring @{remoteaddress} for @{type}</echo> | |
| <ftp server="@{remoteaddress}" | |
| remotedir="/" | |
| userid="root" | |
| password="" | |
| retriesAllowed="2"> | |
| <fileset dir="${sunspot.home}/cRIO_conf/@{type}"/> | |
| </ftp> | |
| </then> | |
| <else> | |
| <echo>[crio-configure] Configuration files not included in this version of the sdk</echo> | |
| </else> | |
| </if> | |
| <echo>[crio-configure] Checking that crio is configured for @{type}</echo> | |
| <switch value="@{type}"> | |
| <case value="Java"> | |
| <frcupgrade | |
| remoteaddress = "@{remoteaddress}" | |
| localotaserverfile="@{sunspot.home}/cRIO/FRC_UserProgram.out" | |
| remoteotaserverfilepath="/ni-rt/system/FRC_JavaVM.out" | |
| localvmfile = "@{sunspot.home}/cRIO/squawk.out" | |
| remotevmfilepath="/ni-rt/system/squawk.out" | |
| localsuitefile = "@{sunspot.home}/cRIO/squawk.suite" | |
| remotesuitefilepath = "/ni-rt/system/squawk.suite" | |
| remoteversionfilepath = "/FRC_ImageVersion.ini" | |
| versionfailuremessage = "Go to http://first.wpi.edu/FRC/frcjava.html to get latest software update"> | |
| <version name="Name" value="FRC_2014_v52.zip;"/> | |
| <version name="Language" value='"Java;"'/> | |
| </frcupgrade> | |
| </case> | |
| <default> | |
| <echo>[crio-configure] Unsupported type: @{type}</echo> | |
| </default> | |
| </switch> | |
| </sequential> | |
| </macrodef> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment