Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
glassfish-hk2
reproducible-now.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File reproducible-now.patch of Package glassfish-hk2
--- glassfish-hk2-2.5.0-RELEASE/maven-plugins/hk2-inhabitant-generator/src/main/java/org/jvnet/hk2/generator/internal/GeneratorRunner.java 2023-09-12 17:24:07.673254218 +0200 +++ glassfish-hk2-2.5.0-RELEASE/maven-plugins/hk2-inhabitant-generator/src/main/java/org/jvnet/hk2/generator/internal/GeneratorRunner.java 2023-09-12 17:26:20.997518588 +0200 @@ -378,7 +378,11 @@ private void writeHeader(PrintWriter writer) { writer.println("#"); if (includeDate) { - writer.println("# Generated on " + new Date() + " by hk2-inhabitant-generator"); + Date now = new Date(); + if (System.getenv("SOURCE_DATE_EPOCH") != null) { + now = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))); + } + writer.println("# Generated on " + now + " by hk2-inhabitant-generator"); } else { writer.println("# Generated by hk2-inhabitant-generator"); --- glassfish-hk2-2.5.0-RELEASE/dependency-visualizer/src/main/java/com/sun/enterprise/tools/visualizer/hk2/DotGenerator.java 2023-09-12 17:28:53.991920312 +0200 +++ glassfish-hk2-2.5.0-RELEASE/dependency-visualizer/src/main/java/com/sun/enterprise/tools/visualizer/hk2/DotGenerator.java 2023-09-12 17:30:06.552427028 +0200 @@ -202,8 +202,12 @@ this.wireOut.println("digraph wiring {"); this.wireOut.println("node [color=grey, style=filled];"); this.wireOut.println("node [fontname=\"Verdana\", size=\"30,30\"];"); + Date now = new Date(); + if (System.getenv("SOURCE_DATE_EPOCH") != null) { + now = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))); + } String date = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, - DateFormat.SHORT).format(new Date()); + DateFormat.SHORT).format(now); StringBuffer footer = new StringBuffer(); footer.append("graph [ fontname = \"Arial\", fontsize = 26,style = \"bold\", "); footer.append("label = \"\\nGlassFish v3 OSGi bundle wiring relationship diagram");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor