~ubuntu-branches/ubuntu/trusty/build-helper-maven-plugin/trusty-proposed

« back to all changes in this revision

Viewing changes to src/it/regex-valid/verify.bsh

  • Committer: Package Import Robot
  • Author(s): tony mancill, Emmanuel Bourg, tony mancill
  • Date: 2013-06-01 20:19:34 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130601201934-hzv7zmdcgazfyupp
Tags: 1.7-1
[ Emmanuel Bourg ]
* Team upload.
* New upstream release
* Set the compiler source/target to 1.5
* Updated Standards-Version to 3.9.4 (no changes)
* debian/copyright:
  - Updated the Format URI to 1.0
  - Removed the duplicate Copyright fields

[ tony mancill ]
* debian/control:
  - Add libmaven-invoker-plugin-java to build-depends-indep.
  - Wrap long lines.
  - Update Vcs-Git URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import java.io.*;
 
2
import java.util.*;
 
3
 
 
4
try
 
5
{
 
6
    File file = new File( basedir, "target/classes/test.properties" );
 
7
    Properties p = new Properties();
 
8
    p.load( new FileInputStream( file ) );
 
9
    String value = p.getProperty( "version" );
 
10
 
 
11
    if ( value.indexOf( "-RC" ) < 0 )
 
12
    {
 
13
        System.err.println( "Regex not applied" );
 
14
        return false;
 
15
    }
 
16
}
 
17
catch( Throwable t )
 
18
{
 
19
    t.printStackTrace();
 
20
    return false;
 
21
}
 
22
 
 
23
return true;