Add a java version of the dev app. (#16)

This commit is contained in:
Thad House
2017-08-12 23:52:08 -07:00
committed by Peter Johnson
parent 9f5f6111d4
commit 2fa41b23b9
2 changed files with 23 additions and 0 deletions

View File

@@ -29,6 +29,21 @@ apply plugin: 'java'
apply from: 'config.gradle'
sourceSets {
dev
}
task run(type: JavaExec) {
classpath = sourceSets.dev.runtimeClasspath
main = 'edu.wpi.first.wpiutil.DevMain'
}
dependencies {
testCompile 'junit:junit:4.12'
devCompile sourceSets.main.output
}
model {
// Exports config is a utility to enable exporting all symbols in a C++ library on windows to a DLL.
// This removes the need for DllExport on a library. However, the gradle C++ builder has a bug

View File

@@ -0,0 +1,8 @@
package edu.wpi.first.wpiutil;
public class DevMain {
public static void main(String[] args) {
System.out.println("Hello World!");
System.out.println(RuntimeDetector.getPlatformPath());
}
}