-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (50 loc) · 1.58 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apply plugin: 'java'
/**
* assetIn, assetBin are files
* assetOverwrite is a boolean
*/
class AssetProcessorSettings {
//def creates setter and getter methods
String assetIn, assetBin, assetOverwrite
AssetProcessorSettings(assetIn, assetBin, assetOverwrite)
{
this.assetIn = assetIn
this.assetBin = assetBin
if(assetOverwrite)
{
this.assetOverwrite = '--overwrite=on'
}
else
{
this.assetOverwrite = '--overwrite=off'
}
}
}
//dependsOn(':AssetProducer')
dependencies
{
project('AssetProcessor')
}
//evaluationDependsOn(':AssetProcessor')
//println "project properties list:\n"
//println project.properties
//println
//println project.properties.ART_IN
//Gradle has deprecated dynamic properties--all project properties should be accessed through project.ext
//project.ext.assetProcessorSettings = new AssetProcessorSettings(project.properties.globalProperties["ART_IN"], project.properties.ART_BIN, project.properties.globalProperties.ASSET_OVERWRITE)
project.ext.assetProcessorSettings = new AssetProcessorSettings(project.properties.GLOBAL_ART_IN, project.properties.GLOBAL_ART_BIN, project.properties.GLOBAL_ASSET_OVERWRITE)
println 'ASSETPROCESSOR PROJECT OBJECT'
println project('AssetProcessor').getParent()
println 'ASSETPROCESSOR PROJECT OBJECT DONE'
println project.getSubprojects()
/*
task run(type: Exec) {
//dependsOn project('AssetProcessor').runAssetProcessor
commandLine ''
}*/
/*project('AssetProcessor')
{
//println project
//println project.getSubprojects().get('AssetProcessor')
//project.getSubprojects()['AssetProcessor'].args = []
} */