mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Add a java version of the dev app. (#16)
This commit is contained in:
committed by
Peter Johnson
parent
9f5f6111d4
commit
2fa41b23b9
15
build.gradle
15
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
|
||||
|
||||
8
src/dev/java/edu/wpi/first/wpiutil/DevMain.java
Normal file
8
src/dev/java/edu/wpi/first/wpiutil/DevMain.java
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user