PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/rmic-maven-plugin-1.1/src/it/rmic-multiple-runs-MRMIC-23/verify.bsh

#
Unknown | 25 lines | 23 code | 2 blank | 0 comment | 0 complexity | 56b47cd968e86215c3734ac572780ae3 MD5 | raw file
  1. import java.io.*;
  2. import java.util.*;
  3. try
  4. {
  5. File file = new File( basedir, "target/classes/rmictest/BasicRemoteImpl_Stub.class" );
  6. if ( !file.exists() || file.isDirectory() )
  7. {
  8. System.err.println( "Could not find generated stub file: " + file );
  9. return false;
  10. }
  11. File file2 = new File( basedir, "target/classes/rmictest/BasicRemoteImpl_Stub_Stub.class" );
  12. if ( file2.exists() )
  13. {
  14. System.err.println( "BasicRemoteImpl_Stub should not be compiled: " + file2 );
  15. return false;
  16. }
  17. }
  18. catch( Throwable t )
  19. {
  20. t.printStackTrace();
  21. return false;
  22. }
  23. return true;