PageRenderTime 15ms CodeModel.GetById 13ms app.highlight 0ms RepoModel.GetById 1ms 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
 1import java.io.*;
 2import java.util.*;
 3
 4try
 5{
 6    File file = new File( basedir, "target/classes/rmictest/BasicRemoteImpl_Stub.class" );
 7    if ( !file.exists() || file.isDirectory() )
 8    {
 9        System.err.println( "Could not find generated stub file: " + file );
10        return false;
11    }
12    File file2 = new File( basedir, "target/classes/rmictest/BasicRemoteImpl_Stub_Stub.class" );
13    if ( file2.exists() )
14    {
15        System.err.println( "BasicRemoteImpl_Stub should not be compiled: " + file2 );
16        return false;
17    }
18}
19catch( Throwable t )
20{
21    t.printStackTrace();
22    return false;
23}
24
25return true;