1
0
mirror of synced 2026-08-04 09:17:02 +00:00

SEC-1689: Re-instate crypto as separate library (for use in non-Spring Security apps), as well as packaging with core.

This commit is contained in:
Luke Taylor
2011-06-10 00:01:25 +01:00
parent ecfffaaa3f
commit e27f655e9d
31 changed files with 48 additions and 11 deletions
@@ -45,6 +45,7 @@ class BundlorPlugin implements Plugin<Project> {
public class Bundlor extends DefaultTask {
@InputFile
@Optional
File manifestTemplate
@OutputDirectory
@@ -69,13 +70,26 @@ public class Bundlor extends DefaultTask {
Bundlor() {
manifestTemplate = new File(project.projectDir, 'template.mf')
if (!manifestTemplate.exists()) {
logger.info("No bundlor template for project " + project.name)
manifestTemplate = null
}
inputPaths = project.files(project.sourceSets.main.classesDir)
project.jar.manifest.from manifest
project.jar.inputs.files manifest
if (manifestTemplate != null) {
project.jar.manifest.from manifest
project.jar.inputs.files manifest
}
}
@TaskAction
void createManifest() {
if (manifestTemplate == null) {
return;
}
logging.captureStandardOutput(LogLevel.INFO)
project.mkdir(bundlorDir)