~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/RequireActiveProfile.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.util.ArrayList;
22
23
import java.util.Iterator;
29
30
import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException;
30
31
import org.codehaus.plexus.util.StringUtils;
31
32
 
32
 
// TODO: Auto-generated Javadoc
33
33
/**
34
34
 * This rule checks that some profiles are active.
35
 
 * 
 
35
 *
36
36
 * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
37
37
 */
38
38
public class RequireActiveProfile
47
47
 
48
48
    /*
49
49
     * (non-Javadoc)
50
 
     * 
 
50
     *
51
51
     * @see org.apache.maven.enforcer.rule.api.EnforcerRule#execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper)
52
52
     */
53
53
    public void execute( EnforcerRuleHelper theHelper )
114
114
 
115
115
    /**
116
116
     * Checks if profile is active.
117
 
     * 
 
117
     *
118
118
     * @param project the project
119
119
     * @param profileName the profile name
120
120
     * @return <code>true</code> if profile is active