< prev index next >

test/tools/jar/multiRelease/Basic1.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @library /test/lib
  27  * @modules java.base/jdk.internal.misc
  28  *          jdk.compiler
  29  *          jdk.jartool
  30  * @build jdk.test.lib.JDKToolFinder jdk.test.lib.Utils
  31  * @build MRTestBase






  32  * @run testng Basic1
  33  */
  34 
  35 import org.testng.annotations.*;
  36 
  37 import java.nio.file.*;
  38 import java.util.*;
  39 
  40 public class Basic1 extends MRTestBase {
  41 
  42     @BeforeTest
  43     public void setup() throws Throwable {
  44         String test = "test01";
  45         Path classes = Paths.get("classes");
  46 
  47         Path base = classes.resolve("base");
  48         Files.createDirectories(base);
  49         Path source = Paths.get(src, "data", test, "base", "version");
  50         javac(base, source.resolve("Main.java"), source.resolve("Version.java"));
  51 




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @library /test/lib
  27  * @modules java.base/jdk.internal.misc
  28  *          jdk.compiler
  29  *          jdk.jartool
  30  * @build jdk.test.lib.util.FileUtils
  31  *        jdk.test.lib.Utils
  32  *        jdk.test.lib.Asserts
  33  *        jdk.test.lib.JDKToolFinder
  34  *        jdk.test.lib.JDKToolLauncher
  35  *        jdk.test.lib.Platform
  36  *        jdk.test.lib.process.*
  37  *        MRTestBase
  38  * @run testng Basic1
  39  */
  40 
  41 import org.testng.annotations.*;
  42 
  43 import java.nio.file.*;
  44 import java.util.*;
  45 
  46 public class Basic1 extends MRTestBase {
  47 
  48     @BeforeTest
  49     public void setup() throws Throwable {
  50         String test = "test01";
  51         Path classes = Paths.get("classes");
  52 
  53         Path base = classes.resolve("base");
  54         Files.createDirectories(base);
  55         Path source = Paths.get(src, "data", test, "base", "version");
  56         javac(base, source.resolve("Main.java"), source.resolve("Version.java"));
  57 


< prev index next >