View | Details | Raw Unified | Return to bug 61079
Collapse All | Expand All

(-)a/src/main/org/apache/tools/ant/taskdefs/Tstamp.java (-2 / +8 lines)
Lines 69-75 public class Tstamp extends Task { Link Here
69
    @Override
69
    @Override
70
    public void execute() throws BuildException {
70
    public void execute() throws BuildException {
71
        try {
71
        try {
72
            Date d = new Date();
72
            Date d;
73
            String sde = System.getenv("SOURCE_DATE_EPOCH");
74
            if (sde != null) {
75
                long x = Long.parseLong(sde);
76
                d = new Date(x*1000);
77
            } else {
78
                d = new Date();
79
            }
73
80
74
            customFormats.forEach(cts -> cts.execute(getProject(), d, getLocation()));
81
            customFormats.forEach(cts -> cts.execute(getProject(), d, getLocation()));
75
82
76
- 

Return to bug 61079