本文整理汇总了Java中org.apache.tools.ant.PropertyHelper.testUnlessCondition方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyHelper.testUnlessCondition方法的具体用法?Java PropertyHelper.testUnlessCondition怎么用?Java PropertyHelper.testUnlessCondition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.tools.ant.PropertyHelper
的用法示例。
在下文中一共展示了PropertyHelper.testUnlessCondition方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: passesConditions
import org.apache.tools.ant.PropertyHelper; //导入方法依赖的package包/类
/**
* Ensures that the selector passes the conditions placed
* on it with <code>if</code> and <code>unless</code>.
* @return true if conditions are passed
*/
public boolean passesConditions() {
PropertyHelper ph = PropertyHelper.getPropertyHelper(getProject());
return ph.testIfCondition(ifCondition)
&& ph.testUnlessCondition(unlessCondition);
}
示例2: valid
import org.apache.tools.ant.PropertyHelper; //导入方法依赖的package包/类
private boolean valid(Project p) {
PropertyHelper ph = PropertyHelper.getPropertyHelper(p);
return ph.testIfCondition(ifCond)
&& ph.testUnlessCondition(unlessCond);
}
示例3: shouldUse
import org.apache.tools.ant.PropertyHelper; //导入方法依赖的package包/类
/**
* Ensures that the param passes the conditions placed
* on it with <code>if</code> and <code>unless</code> properties.
* @return true if the task passes the "if" and "unless" parameters
*/
public boolean shouldUse() {
final PropertyHelper ph = PropertyHelper.getPropertyHelper(project);
return ph.testIfCondition(ifCond)
&& ph.testUnlessCondition(unlessCond);
}
示例4: shouldRun
import org.apache.tools.ant.PropertyHelper; //导入方法依赖的package包/类
/**
* Check if this test should run based on the if and unless
* attributes.
* @param p the project to use to check if the if and unless
* properties exist in.
* @return true if this test or testsuite should be run.
*/
public boolean shouldRun(Project p) {
PropertyHelper ph = PropertyHelper.getPropertyHelper(p);
return ph.testIfCondition(getIfCondition())
&& ph.testUnlessCondition(getUnlessCondition());
}
示例5: shouldUse
import org.apache.tools.ant.PropertyHelper; //导入方法依赖的package包/类
/**
* Ensures that the selector passes the conditions placed
* on it with <code>if</code> and <code>unless</code> properties.
* @param t the task the this formatter is used in.
* @return true if the formatter should be used.
*/
public boolean shouldUse(Task t) {
PropertyHelper ph = PropertyHelper.getPropertyHelper(t.getProject());
return ph.testIfCondition(ifCond)
&& ph.testUnlessCondition(unlessCond);
}