Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ant/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ant</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
4 changes: 4 additions & 0 deletions ant/project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Project specific information
package=org.usfirst.frc.teamXXXX.robot
robot.class=${package}.Robot
simulation.world.file=/usr/share/frcsim/worlds/GearsBotDemo.world
30 changes: 30 additions & 0 deletions ant/project/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="FRCXXXX 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=""/> -->

<!-- Any other property in build.properties can also be overridden. -->

<property file="${user.home}/wpilib/wpilib.properties"/>
<property file="build.properties"/>
<property file="${user.home}/wpilib/java/${version}/ant/build.properties"/>

<import file="${user.home}/strongback/ant/build.xml"/>

</project>
5 changes: 5 additions & 0 deletions ant/strongback/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
strongback.home=${user.home}/strongback
strongback.ant.dir=${strongback.home}/ant/
strongback=${strongback.home}/strongback.jar

strongback.classpath=${classpath}:${strongback}
44 changes: 44 additions & 0 deletions ant/strongback/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Strongback Deployment">
<property file="${user.home}/strongback/ant/build.properties"/>

<!--Eclipse reports an error because it does not know that ${wpilib.ant.dir} is defined externally-->
<import file="${wpilib.ant.dir}/build.xml"/>

<target name="compile" description="Compile the source code.">
<mkdir dir="${build.dir}"/>
<echo>Compiling strongback based robot with classpath ${strongback.classpath}</echo>
<javac srcdir="${src.dir}"
destdir="${build.dir}"
includeantruntime="false"
classpath = "${strongback.classpath}">
</javac>
</target>

<target name="jar" depends="compile">
<echo>Making jar ${dist.jar}.</echo>
<mkdir dir="${dist.dir}" />
<mkdir dir="${build.jars}" />

<echo>Copying jars from ${strongback.classpath} to ${build.jars}.</echo>
<copy todir="${build.jars}" flatten="true">
<path>
<pathelement path="${strongback.classpath}"/>
</path>
</copy>

<jar destfile="${dist.jar}" update="false">
<manifest>
<attribute name="Main-Class" value="edu.wpi.first.wpilibj.RobotBase"/>
<attribute name="Robot-Class" value="${robot.class}"/>
<attribute name="Class-Path" value="."/>
</manifest>

<fileset dir="${build.dir}" includes="**/*.class"/>

<zipgroupfileset dir="${build.jars}">
<include name="**/*.jar" />
</zipgroupfileset>
</jar>
</target>
</project>