mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 17:27:24 +01:00
Fixed mainClassName error, fix entity generation
This commit is contained in:
parent
3fb252f74d
commit
206b0670a4
@ -13,14 +13,16 @@ sourceSets {
|
|||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
srcDir 'src'
|
srcDir 'src'
|
||||||
srcDir 'src-gen'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task (genSources, type: JavaExec) {
|
mainClassName = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator"
|
||||||
main = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator"
|
|
||||||
|
task genSources(type: JavaExec) {
|
||||||
|
main = mainClassName
|
||||||
classpath = sourceSets.main.runtimeClasspath
|
classpath = sourceSets.main.runtimeClasspath
|
||||||
|
workingDir = '../'
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
|
@ -40,7 +40,7 @@ public class GBDaoGenerator {
|
|||||||
|
|
||||||
addActivitySample(schema, user, device);
|
addActivitySample(schema, user, device);
|
||||||
|
|
||||||
new DaoGenerator().generateAll(schema, "../app/src/main/gen");
|
new DaoGenerator().generateAll(schema, "app/src/main/java");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Entity addUserInfo(Schema schema, Entity userAttributes) {
|
private static Entity addUserInfo(Schema schema, Entity userAttributes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user