Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using deprecated Apache Commons CLI classes #122

Open
psybers opened this issue Jun 8, 2017 · 1 comment
Open

Using deprecated Apache Commons CLI classes #122

psybers opened this issue Jun 8, 2017 · 1 comment

Comments

@psybers
Copy link
Member

psybers commented Jun 8, 2017

    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/BoaMain.java:27: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] import org.apache.commons.cli.PosixParser;
    [javac]                              ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/compiler/BoaCompiler.java:44: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] import org.apache.commons.cli.PosixParser;
    [javac]                              ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/datagen/BoaGenerator.java:25: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] import org.apache.commons.cli.PosixParser;
    [javac]                              ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/evaluator/BoaEvaluator.java:30: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] import org.apache.commons.cli.PosixParser;
    [javac]                              ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/runtime/BoaRunner.java:23: warning: [deprecation] OptionBuilder in org.apache.commons.cli has been deprecated
    [javac] import org.apache.commons.cli.OptionBuilder;
    [javac]                              ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/runtime/BoaRunner.java:26: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] import org.apache.commons.cli.PosixParser;
    [javac]                              ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/BoaMain.java:49: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac]                 final CommandLine cl = new PosixParser().parse(options, new String[] { args[0] });
    [javac]                                            ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/compiler/BoaCompiler.java:394: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] 			cl = new PosixParser().parse(options, args);
    [javac] 			         ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/compiler/BoaCompiler.java:433: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] 			cl = new PosixParser().parse(options, args);
    [javac] 			         ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/datagen/BoaGenerator.java:46: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] 			cl = new PosixParser().parse(options, args);
    [javac] 			         ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/evaluator/BoaEvaluator.java:78: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] 				final CommandLine cl = new PosixParser().parse(options, args);
    [javac] 				                           ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/runtime/BoaRunner.java:116: warning: [deprecation] OptionBuilder in org.apache.commons.cli has been deprecated
    [javac] 		options.addOption(OptionBuilder.withLongOpt("job")
    [javac] 		                  ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/runtime/BoaRunner.java:121: warning: [deprecation] OptionBuilder in org.apache.commons.cli has been deprecated
    [javac] 		options.addOption(org.apache.commons.cli.OptionBuilder.withLongOpt("ast")
    [javac] 		                                        ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/runtime/BoaRunner.java:126: warning: [deprecation] OptionBuilder in org.apache.commons.cli has been deprecated
    [javac] 		options.addOption(org.apache.commons.cli.OptionBuilder.withLongOpt("comments")
    [javac] 		                                        ^
    [javac] /Users/rdyer/boa/compiler-master/src/java/boa/runtime/BoaRunner.java:139: warning: [deprecation] PosixParser in org.apache.commons.cli has been deprecated
    [javac] 			line = new PosixParser().parse(options, args);
@psybers
Copy link
Member Author

psybers commented Jun 28, 2017

Hadoop 1.2.1 (what Boa currently runs on) has it's own version of apache CLI 1.2 and thus we can not currently upgrade to 1.3. The changes in 93e9f86 are reverted.

@psybers psybers reopened this Jun 28, 2017
@psybers psybers reopened this Jun 28, 2017
psybers added a commit that referenced this issue Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant