1
0
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:
Lem Dulfo 2016-04-10 00:18:16 +08:00 committed by cpfeiffer
parent 3fb252f74d
commit 206b0670a4
2 changed files with 6 additions and 4 deletions

View File

@ -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 {

View File

@ -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) {