File: verify.bsh

package info (click to toggle)
ruby-jar-dependencies 0.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,172 kB
  • sloc: ruby: 2,407; sh: 137; xml: 117; java: 20; makefile: 9
file content (29 lines) | stat: -rw-r--r-- 814 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import java.io.*;
import org.codehaus.plexus.util.FileUtils;


String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "jar dependencies for foo-0.0.1-java.gemspec";
if ( !log.contains( expected ) )
{
    throw new RuntimeException( "log file does not contain '" + expected + "'" );
}

expected = "lib/foo_jars.rb";
if ( ! new File( basedir, expected ).exists() )
{
    throw new RuntimeException( "log file does not exists '" + expected + "'" );
}

// expected = "lib/io";
// if ( ! new File( basedir, expected ).exists() )
// {
//     throw new RuntimeException( "log file does exists '" + expected + "'" );
// }

// expected = "lib/org";
// if ( ! new File( basedir, expected ).exists() )
// {
//     throw new RuntimeException( "log file does exists '" + expected + "'" );
// }