1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/jxc/ap/Options.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/jxc/ap/Options.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -39,6 +39,8 @@ 1.11 */ 1.12 public class Options { 1.13 1.14 + public static final String DISABLE_XML_SECURITY = "-disableXmlSecurity"; 1.15 + 1.16 // honor CLASSPATH environment variable, but it will be overrided by -cp 1.17 public String classpath = System.getenv("CLASSPATH"); 1.18 1.19 @@ -46,6 +48,8 @@ 1.20 1.21 public File episodeFile = null; 1.22 1.23 + private boolean disableXmlSecurity = false; 1.24 + 1.25 // encoding is not required for JDK5, 6, but JDK 7 javac is much more strict - see issue 6859289 1.26 public String encoding = null; 1.27 1.28 @@ -85,6 +89,14 @@ 1.29 return 1; 1.30 } 1.31 1.32 + if (args[i].equals(DISABLE_XML_SECURITY)) { 1.33 + if (i == args.length - 1) 1.34 + throw new BadCommandLineException( 1.35 + (Messages.OPERAND_MISSING.format(args[i]))); 1.36 + disableXmlSecurity = true; 1.37 + return 1; 1.38 + } 1.39 + 1.40 if (args[i].equals("-encoding")) { 1.41 if (i == args.length - 1) 1.42 throw new BadCommandLineException( 1.43 @@ -106,5 +118,13 @@ 1.44 1.45 } 1.46 1.47 + /** 1.48 + * @return the disableXmlSecurity 1.49 + */ 1.50 + public boolean isDisableXmlSecurity() { 1.51 + return disableXmlSecurity; 1.52 + } 1.53 + 1.54 + 1.55 1.56 }