File: write_build_properties.patch

package info (click to toggle)
jalview 2.11.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 453,400 kB
  • sloc: java: 370,444; xml: 2,999; sh: 1,578; perl: 336; lisp: 139; python: 120; makefile: 82; haskell: 60
file content (33 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download
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
Description: modifying the .build_properties file to account for Debian repackaging
 Also ensuring build reproductibility as timestamps are used.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2021-07-28

--- a/build.gradle
+++ b/build.gradle
@@ -690,21 +690,13 @@
   outputs.dir(outputDir)
 }
 
-task createBuildProperties(type: WriteProperties) {
+//task createBuildProperties(type: WriteProperties) {
+task createBuildProperties(type: Exec) {
   dependsOn copyResources
   group = "build"
   description = "Create the ${buildProperties} file"
   
-  inputs.dir(sourceDir)
-  inputs.dir(resourcesBuildDir)
-  outputFile (buildProperties)
-  // taking time specific comment out to allow better incremental builds
-  comment "--Jalview Build Details--\n"+getDate("yyyy-MM-dd HH:mm:ss")
-  //comment "--Jalview Build Details--\n"+getDate("yyyy-MM-dd")
-  property "BUILD_DATE", getDate("HH:mm:ss dd MMMM yyyy")
-  property "VERSION", JALVIEW_VERSION
-  property "JAVA_COMPILE_VERSION", JAVA_INTEGER_VERSION
-  outputs.file(outputFile)
+  commandLine 'sh', 'debian/write_build_properties_file.sh'
 }