diff options
author | Alex Henning <elcron@gmail.com> | 2014-10-18 22:33:09 -0400 |
---|---|---|
committer | Alex Henning <elcron@gmail.com> | 2014-10-18 22:33:09 -0400 |
commit | 04f658efbde3ef262b2b84ace5b55d082329ccd0 (patch) | |
tree | 046a0c90c678d22cb0470f94e5913a851f3aa0c1 | |
parent | 8533eb7d10c59cdcd6023e2c1a9edb19f16af756 (diff) |
Added support for pulling NetworkTables and pushing to the Maven repository.
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | smartdashboard/build.xml | 12 | ||||
-rw-r--r-- | smartdashboard/pom.xml | 74 |
3 files changed, 89 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae7de65 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*~ +smartdashboard/lib/NetworkTables* +dist/ +build/ +target/
\ No newline at end of file diff --git a/smartdashboard/build.xml b/smartdashboard/build.xml index 6585753..c681afc 100644 --- a/smartdashboard/build.xml +++ b/smartdashboard/build.xml @@ -18,12 +18,16 @@ <target name="clean"> <delete dir="${build.dir}" /> <delete dir="${dist.dir}" /> + <delete dir="target" /> + <delete dir="${lib.dir}" includes="NetworkTables-*.jar" /> </target> - <target name="compile"> + <exec executable="mvn"><arg value="dependency:copy" /></exec> <mkdir dir="${classes.dir}" /> - <javac srcdir="${src.dir}" + <javac source="1.6" + target="1.6" + srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" includeantruntime="false" @@ -53,6 +57,10 @@ </jar> </target> + <target name="deploy" depends="jar"> + <exec executable="mvn"><arg value="deploy" /></exec> + </target> + <target name="run" depends="jar"> <java classname="${main-class}" fork="yes" > <classpath> diff --git a/smartdashboard/pom.xml b/smartdashboard/pom.xml new file mode 100644 index 0000000..c085ccd --- /dev/null +++ b/smartdashboard/pom.xml @@ -0,0 +1,74 @@ +<?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</groupId> + <artifactId>SmartDashboard</artifactId> + <version>1.0.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.resources.sourceEncoding>UTF-8</project.resources.sourceEncoding> + </properties> + + <repositories> + <repository> + <id>WPILib Maven Repository</id> + <url>http://first.wpi.edu/FRC/roborio/maven/</url> + </repository> + </repositories> + + <distributionManagement> + <repository> + <id>filesystem.repo</id> + <name>Temporary Staging Repository</name> + <url>file://${user.home}/releases/maven</url> + </repository> + </distributionManagement> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.9</version> + <configuration> + <artifactItems> + <artifactItem> + <groupId>edu.wpi.first.wpilib.networktables.java</groupId> + <artifactId>NetworkTables</artifactId> + <version>0.1.0-SNAPSHOT</version> + <type>jar</type> + <overWrite>true</overWrite> + <outputDirectory>lib</outputDirectory> + <!-- <destFileName>[ filename ]</destFileName> --> + </artifactItem> + </artifactItems> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>1.9.1</version> + <executions> + <execution> + <id>attach-artifacts</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>dist/tools/SmartDashboard.jar</file> + <type>jar</type> + </artifact> + </artifacts> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> |