blob: 893842ab3ca825f92f455fb5e015a84153ea70eb [file] [log] [blame]
apply plugin: 'java'
apply plugin: 'sdk-java-lib'
group = 'com.android.tools'
archivesBaseName = 'archquery'
version = rootProject.ext.baseVersion
// configure the manifest of the sdkJar task.
sdkJar.manifest.attributes('Main-Class': 'com.android.archquery.Main')
task archQueryStartScripts(type: CreateStartScripts) {
classpath = project.getTasks().getAt(JavaPlugin.JAR_TASK_NAME).getOutputs().getFiles().plus(
project.getConfigurations().getByName('runtime'))
outputDir new File(project.getBuildDir(), 'scripts')
description 'Creates OS specific scripts to start archQuery'
mainClassName = 'com.android.archquery.Main'
applicationName = 'archquery'
}
sdk {
common(mac, linux) {
item(new File(buildDir, 'scripts/archquery')) {
into 'bin'
builtBy 'archQueryStartScripts'
}
}
windows {
item(new File(buildDir, 'scripts/archquery.bat')) {
into 'bin'
builtBy 'archQueryStartScripts'
}
}
}
jar {
from 'NOTICE'
}