langtools/test/tools/javac/processing/T6920317.java
changeset 13634 91f0b2d4d816
parent 6720 f16f91662ad8
child 14963 974d4423c999
equal deleted inserted replaced
13633:0ea4283af723 13634:91f0b2d4d816
     1 /*
     1 /*
     2  * Copyright (c) 2010, 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.
   154 
   154 
   155         // expected value for annotation
   155         // expected value for annotation
   156         String expect = null;
   156         String expect = null;
   157 
   157 
   158         opts.add("-processorpath");
   158         opts.add("-processorpath");
   159         opts.add(System.getProperty("test.classes"));
   159         String testClasses = System.getProperty("test.classes");
       
   160         String testClassPath = System.getProperty("test.class.path", testClasses);
       
   161         opts.add(testClassPath);
   160         opts.add("-processor");
   162         opts.add("-processor");
   161         opts.add(Processor.class.getName());
   163         opts.add(Processor.class.getName());
   162         opts.add("-proc:only");
   164         opts.add("-proc:only");
   163         opts.add("-d");
   165         opts.add("-d");
   164         opts.add(test_tmp.getPath());
   166         opts.add(test_tmp.getPath());