langtools/test/tools/sjavac/CompileWithInvisibleSources.java
changeset 35356 e919fd8db52c
parent 34991 ff8be37d1164
child 36526 3b41f1c69604
equal deleted inserted replaced
35355:817b3a285dbb 35356:e919fd8db52c
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2016, 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.
    68                 "-sourcepath", GENSRC2.toString(),
    68                 "-sourcepath", GENSRC2.toString(),
    69                 "-sourcepath", GENSRC3.toString(),
    69                 "-sourcepath", GENSRC3.toString(),
    70                 "-d", BIN.toString(),
    70                 "-d", BIN.toString(),
    71                 "--state-dir=" + BIN,
    71                 "--state-dir=" + BIN,
    72                 "-h", HEADERS.toString(),
    72                 "-h", HEADERS.toString(),
    73                 "-j", "1",
    73                 "-j", "1");
    74                 SERVER_ARG);
       
    75 
    74 
    76         System.out.println("The first compile went well!");
    75         System.out.println("The first compile went well!");
    77         Map<String,Long> new_bin_state = collectState(BIN);
    76         Map<String,Long> new_bin_state = collectState(BIN);
    78         verifyThatFilesHaveBeenAdded(previous_bin_state, new_bin_state,
    77         verifyThatFilesHaveBeenAdded(previous_bin_state, new_bin_state,
    79                                      BIN + "/alfa/omega/A.class",
    78                                      BIN + "/alfa/omega/A.class",
    85                              "-sourcepath", GENSRC2.toString(),
    84                              "-sourcepath", GENSRC2.toString(),
    86                              "-sourcepath", GENSRC3.toString(),
    85                              "-sourcepath", GENSRC3.toString(),
    87                              "-d", BIN.toString(),
    86                              "-d", BIN.toString(),
    88                              "--state-dir=" + BIN,
    87                              "--state-dir=" + BIN,
    89                              "-h", HEADERS.toString(),
    88                              "-h", HEADERS.toString(),
    90                              "-j", "1",
    89                              "-j", "1");
    91                              SERVER_ARG);
       
    92 
    90 
    93         System.out.println("----- Compile without exluded beta failed, as expected! Good!");
    91         System.out.println("----- Compile without exluded beta failed, as expected! Good!");
    94     }
    92     }
    95 }
    93 }