]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added hyphenation JAR task Temp_Gradle_Build Temp_Gradle_Build
authorMehdi Houshmand <mehdi@apache.org>
Wed, 26 Sep 2012 07:59:01 +0000 (07:59 +0000)
committerMehdi Houshmand <mehdi@apache.org>
Wed, 26 Sep 2012 07:59:01 +0000 (07:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Gradle_Build@1390310 13f79535-47bb-0310-9956-ffa450edef68

build.gradle

index aa7943c968b9aae607477ce47376d7b85912cf70..0a0401ade9a1435f1e82b0a4c7cfac9db19d6e4b 100644 (file)
@@ -268,3 +268,15 @@ task uptodateJarHyphenation(dependsOn: compileHyphenation) << {
     }
 }
 
+task jarHyphenation(dependsOn: uptodateJarHyphenation) << {
+    ant.jar(jarfile: "$buildDir/fop-hyph.jar", basedir: buildClassesDir, includes: "hyph/*.hyph") {
+        delegate.manifest {
+            attribute(name: 'Implementation-Title', value: project.ext.name)
+            attribute(name: 'Implementation-Version', value: project.ext.version)
+            attribute(name: 'Implementation-Vendor', value: "The Apache Software Foundation (http://xmlgraphics.apache.org/fop/)")
+            // TODO: the Java version is a global property in the Ant version
+            attribute(name: 'Build-Id', value: "${new Date()} (${getProperty('user.name')} [${getProperty('os.name')} ${getProperty('os.version')} ${getProperty('os.arch')}, Java ${getProperty('java.runtime.version')}, Target Java 1.5])")
+        }
+    }
+}
+