1 /* |
1 /* |
2 * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
207 List<String> pOpts = Arrays.asList("-d", classesDir.getPath()); |
207 List<String> pOpts = Arrays.asList("-d", classesDir.getPath()); |
208 new Jsr199Compiler(verbose).run(null, null, false, pOpts, procFiles); |
208 new Jsr199Compiler(verbose).run(null, null, false, pOpts, procFiles); |
209 opts.add("-classpath"); // avoid using -processorpath for now |
209 opts.add("-classpath"); // avoid using -processorpath for now |
210 opts.add(classesDir.getPath()); |
210 opts.add(classesDir.getPath()); |
211 createAnnotationServicesFile(classesDir, procFiles); |
211 createAnnotationServicesFile(classesDir, procFiles); |
|
212 } else if (options != null) { |
|
213 int i = options.indexOf("-processor"); |
|
214 // check for built-in anno-processor(s) |
|
215 if (i != -1 && options.get(i + 1).equals("DocCommentProcessor")) { |
|
216 opts.add("-classpath"); |
|
217 opts.add(System.getProperty("test.classes")); |
|
218 } |
212 } |
219 } |
213 |
220 |
214 if (srcPathDir != null) { |
221 if (srcPathDir != null) { |
215 opts.add("-sourcepath"); |
222 opts.add("-sourcepath"); |
216 opts.add(srcPathDir.getPath()); |
223 opts.add(srcPathDir.getPath()); |