Skip to content

Commit 114ede3

Browse files
committed
Suppress episode file header comment when "-no-header" is set
The header comment generated for episode files contains a timestamp with the date of generation. This causes problems for tools that do a binary comparison of artifacts, in order to check for e.g. a required version increment. Signed-off-by: Patrick Ziegler <ziegler.patrick@hotmail.de>
1 parent ccae74a commit 114ede3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/addon/episode/PluginImpl.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2025 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -148,7 +148,9 @@ public boolean run(Outline model, Options opt, ErrorHandler errorHandler) throws
148148
else
149149
bindings._namespace(Const.JAXB_NSURI,"");
150150
bindings.version("3.0");
151-
bindings._comment("\n\n"+opt.getPrologComment()+"\n ");
151+
if (!opt.noFileHeader) {
152+
bindings._comment("\n\n"+opt.getPrologComment()+"\n ");
153+
}
152154

153155
// generate listing per schema
154156
for (Map.Entry<XSSchema,PerSchemaOutlineAdaptors> e : perSchema.entrySet()) {

0 commit comments

Comments
 (0)