nebula-plugins/gradle-ospackage-plugin
View on GitHubExclude parent directory of base "into" statement from spec file
Open
#297 opened on Jul 26, 2018
Hacktoberfest
Repository metrics
- Stars
- (388 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Hi,
I am creating my application rpm with this plugin version 2.2.3. Here is how I am applying this plugin:
`
version = version.substring(0, version.indexOf('-'))
preInstall = file('deploy/preInstall.sh')
postInstall = file('deploy/postInstall.sh')
preUninstall = file('deploy/preUninstall.sh')
postUninstall = file('deploy/postUninstall.sh')
requires('jdk', '1.8.0_25', GREATER | EQUAL)
into '/usr/local/share/myapp'
from(jar.outputs.files) {
into 'lib'
}
from(configurations.runtime) {
exclude '**/*.yml', '*.yml', '**/*.properties', '*.properties', '*.xml', '**/*.xml', 'jmxremote.*', '*.xsd', '**/*.xsd'
into 'lib'
}
from(configurations.runtime) {
include '**/*.yml', '*.yml', '**/*.properties', '*.properties', '*.xml', '**/*.xml', 'jmxremote.*', '*.xsd', '**/*.xsd'
into 'conf'
}
`
When I build RPM and extract it to see the files its modifying, it also lists "/usr/local/share". How can I exclude "/usr/local/share" from list of files in spec?