~ubuntu-branches/ubuntu/wily/maven-enforcer/wily

« back to all changes in this revision

Viewing changes to enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AlwaysPass.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 org.apache.maven.enforcer.rule.api.EnforcerRuleException;
22
23
import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
37
38
        throws EnforcerRuleException
38
39
    {
39
40
        final Log log = helper.getLog();
40
 
        log.info( "Always pass!" );
 
41
        StringBuffer buf = new StringBuffer();
 
42
        if ( message != null )
 
43
        {
 
44
            buf.append( message + "\n" );
 
45
        }
 
46
        buf.append( "Always pass!" );
 
47
        log.info( buf.toString() );
41
48
    }
42
49
 
43
50
}