mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
HAND FIX: final java package changes
This commit is contained in:
committed by
Peter Johnson
parent
67f2502b08
commit
106bc774d4
@@ -6,9 +6,9 @@ The Python script used to generate a subproject's files will always be located i
|
||||
|
||||
The templates will be located under `subproject/src/generate/main`, and generated files will be located under `subproject/src/generated/main`.
|
||||
|
||||
If the generated file is for C++, the hierarchy should be symmetrical, so if a generated header is located under `subproject/src/generated/main/native/include/frc/header.h`, the template to generate it should be located under `subproject/src/generate/main/native/include/frc/template.h.jinja`. You should pretend like `subproject/src/generate/main` is just like `subproject/src/main`, in that the file hierarchy must make sense if the files weren't generated, e.g, headers that would go in `subproject/src/main/native/include/blah` should be in `subproject/src/generated/main/native/include/blah`.
|
||||
If the generated file is for C++, the hierarchy should be symmetrical, so if a generated header is located under `subproject/src/generated/main/native/include/wpi/header.h`, the template to generate it should be located under `subproject/src/generate/main/native/include/wpi/template.h.jinja`. You should pretend like `subproject/src/generate/main` is just like `subproject/src/main`, in that the file hierarchy must make sense if the files weren't generated, e.g, headers that would go in `subproject/src/main/native/include/blah` should be in `subproject/src/generated/main/native/include/blah`.
|
||||
|
||||
If the generated file is for Java, templates should be located under `subproject/src/generate/main/java`, and the hierarchy for output files should reflect the declared package of the output Java files. For example, a Jinja template at `subproject/src/main/java/template.java.jinja` with the package `edu.wpi.first.wpilibj` would be used to generate Java files located at `subproject/src/generated/main/java/edu/wpi/first/wpilibj`
|
||||
If the generated file is for Java, templates should be located under `subproject/src/generate/main/java`, and the hierarchy for output files should reflect the declared package of the output Java files. For example, a Jinja template at `subproject/src/main/java/template.java.jinja` with the package `org.wpilib.wpilibj` would be used to generate Java files located at `subproject/src/generated/main/java/org/wpilib/wpilibj`
|
||||
|
||||
The JSON files live under `subproject/src/generate` since they apply to both languages. One unique case is JSON files that are used by multiple subprojects, currently only JSON files shared by wpilibc and wpilibj. In that specific case, the JSON files will always be located in wpilibj since Java is the most used language.
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"jsonUrl": "",
|
||||
"javaDependencies": [
|
||||
{
|
||||
"groupId": "edu.wpi.first.commandsv2",
|
||||
"groupId": "org.wpilib.commandsv2",
|
||||
"artifactId": "commandsv2-java",
|
||||
"version": "wpilib"
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
"jniDependencies": [],
|
||||
"cppDependencies": [
|
||||
{
|
||||
"groupId": "edu.wpi.first.commandsv2",
|
||||
"groupId": "org.wpilib.commandsv2",
|
||||
"artifactId": "commandsv2-cpp",
|
||||
"version": "wpilib",
|
||||
"libName": "commandsv2",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"jsonUrl": "",
|
||||
"javaDependencies": [
|
||||
{
|
||||
"groupId": "edu.wpi.first.romiVendordep",
|
||||
"groupId": "org.wpilib.romiVendordep",
|
||||
"artifactId": "romiVendordep-java",
|
||||
"version": "wpilib"
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
"jniDependencies": [],
|
||||
"cppDependencies": [
|
||||
{
|
||||
"groupId": "edu.wpi.first.romiVendordep",
|
||||
"groupId": "org.wpilib.romiVendordep",
|
||||
"artifactId": "romiVendordep-cpp",
|
||||
"version": "wpilib",
|
||||
"libName": "romiVendordep",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"jsonUrl": "",
|
||||
"javaDependencies": [
|
||||
{
|
||||
"groupId": "edu.wpi.first.xrpVendordep",
|
||||
"groupId": "org.wpilib.xrpVendordep",
|
||||
"artifactId": "xrpVendordep-java",
|
||||
"version": "wpilib"
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
"jniDependencies": [],
|
||||
"cppDependencies": [
|
||||
{
|
||||
"groupId": "edu.wpi.first.xrpVendordep",
|
||||
"groupId": "org.wpilib.xrpVendordep",
|
||||
"artifactId": "xrpVendordep-cpp",
|
||||
"version": "wpilib",
|
||||
"libName": "xrpVendordep",
|
||||
|
||||
Reference in New Issue
Block a user