Skip to content

Commit

Permalink
Code Added
Browse files Browse the repository at this point in the history
  • Loading branch information
homesteadrobotics committed Oct 13, 2014
1 parent 18fcf88 commit 022b226
Show file tree
Hide file tree
Showing 24 changed files with 10,568 additions and 0 deletions.
24 changes: 24 additions & 0 deletions BSD_License_for_WPILib_code.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
* Copyright (c) 2009 FIRST
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the FIRST nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10 changes: 10 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Properties file for a Sun Spot Application
#
# build.properties
#
# This file is the default location for user properties that over-ride the
# defaults in ${sunspot.home}/default.properties. See that file for a full
# listing of the properties that may be set. This file is minimal and contains
# only those properties that a user would generally need to set right away.
#
user.classpath=${wpilibj.home}/src
93 changes: 93 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><project basedir="." default="help" name="2014RobotSVR">

<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->

<!--
The master build file lives at: ${sunspot.home}/build.xml.
If you do not have a Sun SPOT properties file for some reason,
then you can set the sunspot.home property manually.
<property name="sunspot.home" value="/opt/sunspot"/>
The behavior of the build is also controled through properties.
For example, to use a different source directory, you can set
the property 'src.dir'.
<property name="src.dir" value="mysrc"/>
For a complete listing of properties that are used, and their
explanations, see the file ${sunspot.home}/default.properties.
-->

<property name="user.properties.file" value="build.properties"/>
<property file="${user.home}/.sunspotfrc.properties"/>
<import file="${sunspot.home}/build.xml"/>

<!--
This file imports the master build file for compiling and deploying sunspot
applications. This file provides hooks for the user build file, so that
you can accomplish almost anything without having to rewrite any of the
build procedures. However, if need be, you can just look at the imported
build file to determine how exactly any step is accomplished.
Of course, another useful way to find out exactly what is happening is to
run the targets listed below with ant's 'verbose' flag (ant -v). This will
display exactly what is happening at each step.
Some important targets that are defined within the master build file are:
(Do "ant help" to see the full list.)
init: initialize and check all properties
help: display useful a help message
environment displays information about setting up your environment
sdk-info displays information about the current SDK installation
find-spots locate USB ports where SPOTs are connected
info displays information about the configuration of a SPOT
slots displays a list of the applications deployed on the SPOT
clean: delete all compiled/generated files
compile: compiles java source files to classes
jar-app Create a jar for this application
deploy deploy the application to a SPOT as an IMlet
jar-deploy deploy an IMlet jar
run connect to a device and watch the application
debug-run configure the SPOT ro run the debug agent and then start the debug proxy
debug-proxy-run start the proxy for the high-level debugger
Some useful command line properties:
-Dbasestation.addr=1234 set the address of the basestation
-DremoteId=1234 set the target for remote run/deploy/debug-proxy-run
-Dsquawk.startup.class=com.example.MyStartUp
set an alternative startup class name
-Dspotport=COM2 set the port name for communicating with the SPOT
-Djar.file=example.jar set the jar file for jar-app, jar-deploy and make-host-jar
-Dmidlet=2 select a midlet to run for selectapplication
or deploy targets (defaults to 1)
-Dutility.jars=utils.jar a classpath separator delimited list of jars to be
included with the application
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are defined as follows:
For each target above (except help),
-pre-<target>: called before the target
-post-<target>: called after the target
For example, inserting an echo statement after compilation could look like this:
<target name="-post-compile">
<echo>Compile finished!</echo>
</target>
For more information on using ant, see http://ant.apache.org.
-->
</project>
6 changes: 6 additions & 0 deletions build/preverify/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Manifest-Version: 1.0
Built-By: wpilibj-buildmaster
Build-Jdk: 1.6.0_29
Created-By: Apache Maven 3.1.0
Archiver-Version: Plexus Archiver

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Sun Nov 17 12:38:01 EST 2013
version=0.1.0-SNAPSHOT
groupId=edu.wpi.first.wpilib.networktables.java
artifactId=NetworkTablesAzalea
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>edu.wpi.first.wpilib.networktables.java</groupId>
<artifactId>NetworkTablesAzalea</artifactId>
<packaging>jar</packaging>
<version>0.1.0-SNAPSHOT</version>

<parent>
<groupId>edu.wpi.first.wpilib.templates.azalea</groupId>
<artifactId>library-jar</artifactId>
<version>0.1.0-SNAPSHOT</version>
</parent>

<repositories>
<repository>
<id>WPILib Repository</id>
<url>http://frcbuilder.wpi.edu:8348/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.sun.squawk</groupId>
<artifactId>runtime</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<testExcludes>
<exclude>edu/wpi/first/wpilibj/networktables2/system/SystemTest.java</exclude>
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>../src/main/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
10 changes: 10 additions & 0 deletions build/suite/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.3
Created-By: 1.7.0_02-b13 (Oracle Corporation)
MIDlet-Name: New2013Robot
MIDlet-Version: 1.0.0
MIDlet-Vendor: FIRST
MIDlet-1: Robot, , org.homestead.robotics.robot.Robot
MicroEdition-Profile: IMP-1.0
MicroEdition-Configuration: CLDC-1.1

Binary file added build/suite/image.suite
Binary file not shown.
Binary file added build/suite/image.suite.metadata
Binary file not shown.
Loading

0 comments on commit 022b226

Please sign in to comment.