~ubuntu-branches/ubuntu/utopic/maven-enforcer/utopic

« back to all changes in this revision

Viewing changes to enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequireFilesDontExist.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-12 22:30:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110912223016-e2pk04avoq8bur7t
Tags: 1.0-1
* Team upload
* New upstream release.
* Add more Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.apache.maven.plugins.enforcer;
 
2
 
1
3
/*
2
4
 * Licensed to the Apache Software Foundation (ASF) under one
3
5
 * or more contributor license agreements.  See the NOTICE file
16
18
 * specific language governing permissions and limitations
17
19
 * under the License.
18
20
 */
19
 
package org.apache.maven.plugins.enforcer;
20
21
 
21
22
import java.io.File;
22
23
 
23
 
// TODO: Auto-generated Javadoc
24
24
/**
25
25
 * The Class RequireFilesDontExist.
26
26
 */
30
30
 
31
31
    /*
32
32
     * (non-Javadoc)
33
 
     * 
 
33
     *
34
34
     * @see org.apache.maven.plugins.enforcer.AbstractRequireFiles#checkFile(java.io.File)
35
35
     */
36
36
    boolean checkFile( File file )
37
37
    {
38
38
        //if we get here and the handle is null, treat it as a success
39
 
        return file == null ? true : !file.exists();
 
39
        return file == null ? true : !file.exists();
40
40
    }
41
41
 
42
42
    /*
43
43
     * (non-Javadoc)
44
 
     * 
 
44
     *
45
45
     * @see org.apache.maven.plugins.enforcer.AbstractRequireFiles#getErrorMsg()
46
46
     */
47
47
    String getErrorMsg()