mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-26 09:11:37 +02:00
Fixed mainClassName error, fix entity generation
This commit is contained in:
parent
3fb252f74d
commit
206b0670a4
@ -13,14 +13,16 @@ sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDir 'src'
|
||||
srcDir 'src-gen'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task (genSources, type: JavaExec) {
|
||||
main = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator"
|
||||
mainClassName = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator"
|
||||
|
||||
task genSources(type: JavaExec) {
|
||||
main = mainClassName
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
workingDir = '../'
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
@ -40,7 +40,7 @@ public class GBDaoGenerator {
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user