diff --git a/build.gradle b/build.gradle index 2374b8b46d..4c5069fca6 100644 --- a/build.gradle +++ b/build.gradle @@ -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 diff --git a/src/dev/java/edu/wpi/first/wpiutil/DevMain.java b/src/dev/java/edu/wpi/first/wpiutil/DevMain.java new file mode 100644 index 0000000000..b1e99970d2 --- /dev/null +++ b/src/dev/java/edu/wpi/first/wpiutil/DevMain.java @@ -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()); + } +}