< prev index next >
src/java.corba/share/classes/com/sun/corba/se/impl/activation/ORBD.java
Print this page
rev 47855 : 8189102: All tools should support -?, -h and --help
*** 1,7 ****
/*
! * Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 182,192 ****
private void processArgs(String[] args)
{
Properties props = System.getProperties();
for (int i=0; i < args.length; i++) {
! if (args[i].equals("-port")) {
if ((i+1) < args.length) {
props.put(ORBConstants.ORBD_PORT_PROPERTY, args[++i]);
} else {
System.out.println(CorbaResourceUtil.getText(
"orbd.usage", "orbd"));
--- 182,198 ----
private void processArgs(String[] args)
{
Properties props = System.getProperties();
for (int i=0; i < args.length; i++) {
! if (args[i].equals("-?") ||
! args[i].equals("-h") ||
! args[i].equals("--help")) {
! System.out.println(CorbaResourceUtil.getText(
! "orbd.usage", "orbd"));
! System.exit(0);
! } else if (args[i].equals("-port")) {
if ((i+1) < args.length) {
props.put(ORBConstants.ORBD_PORT_PROPERTY, args[++i]);
} else {
System.out.println(CorbaResourceUtil.getText(
"orbd.usage", "orbd"));
< prev index next >