VD3626
12-01-2015, 17:45
I am writing the code for my robot in C++. I tried to deploy the code to my robot by right-clicking the project and then going to Run As>WPILIB C++ deploy. I have been able to build the code before without getting any errors but when I deploy it I get an error in build.xml
Here is the file:
<?xml version="1.0" encoding="UTF-8"?>
<project name="FRC Deployment" default="deploy">
<!--
The following properties can be defined to override system level
settings. These should not be touched unless you know what you're
doing. The primary use is to override the wpilib version when
working with older robots that can't compile with the latest
libraries.
-->
<!-- By default the system version of WPI is used -->
<!-- <property name="version" value=""/> -->
<!-- By default the system team number is used -->
<!-- <property name="team-number" value=""/> -->
<!-- By default the target is set to 10.TE.AM.2 -->
<!-- <property name="target" value=""/> -->
<property file="${user.home}/wpilib/wpilib.properties"/>
<property file="build.properties"/>
<property file="${user.home}/wpilib/cpp/${version}/ant/build.properties"/>
<import file="${wpilib.ant.dir}/build.xml"/>
</project>
The error is in line 3 and it says that "Default target deploy does not exist in this project", here is the line:
<project name="FRC Deployment" default="deploy">
There is also a warning in like 26 which says, "Cannot find /Users/victordusa/workspace/MyRobot/${wpilib.ant.dir}/build.xml imported from /Users/victordusa/workspace/MyRobot/build.xml", here is that line:
<import file="${wpilib.ant.dir}/build.xml"/>
Also when I try to deploy this is what I get in the console:
Buildfile: /Users/victordusa/workspace/MyRobot/build.xml
BUILD FAILED
/Users/victordusa/workspace/MyRobot/build.xml:26: Cannot find /Users/victordusa/workspace/MyRobot/${wpilib.ant.dir}/build.xml imported from /Users/victordusa/workspace/MyRobot/build.xml
Total time: 197 milliseconds
I have no idea what the problem is. Any help is appreciated.
Here is the file:
<?xml version="1.0" encoding="UTF-8"?>
<project name="FRC Deployment" default="deploy">
<!--
The following properties can be defined to override system level
settings. These should not be touched unless you know what you're
doing. The primary use is to override the wpilib version when
working with older robots that can't compile with the latest
libraries.
-->
<!-- By default the system version of WPI is used -->
<!-- <property name="version" value=""/> -->
<!-- By default the system team number is used -->
<!-- <property name="team-number" value=""/> -->
<!-- By default the target is set to 10.TE.AM.2 -->
<!-- <property name="target" value=""/> -->
<property file="${user.home}/wpilib/wpilib.properties"/>
<property file="build.properties"/>
<property file="${user.home}/wpilib/cpp/${version}/ant/build.properties"/>
<import file="${wpilib.ant.dir}/build.xml"/>
</project>
The error is in line 3 and it says that "Default target deploy does not exist in this project", here is the line:
<project name="FRC Deployment" default="deploy">
There is also a warning in like 26 which says, "Cannot find /Users/victordusa/workspace/MyRobot/${wpilib.ant.dir}/build.xml imported from /Users/victordusa/workspace/MyRobot/build.xml", here is that line:
<import file="${wpilib.ant.dir}/build.xml"/>
Also when I try to deploy this is what I get in the console:
Buildfile: /Users/victordusa/workspace/MyRobot/build.xml
BUILD FAILED
/Users/victordusa/workspace/MyRobot/build.xml:26: Cannot find /Users/victordusa/workspace/MyRobot/${wpilib.ant.dir}/build.xml imported from /Users/victordusa/workspace/MyRobot/build.xml
Total time: 197 milliseconds
I have no idea what the problem is. Any help is appreciated.