当前位置: 首页>>代码示例>>Java>>正文


Java PropertyHelper.testUnlessCondition方法代码示例

本文整理汇总了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);
}
 
开发者ID:apache,项目名称:ant,代码行数:11,代码来源:SelectSelector.java

示例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);
}
 
开发者ID:apache,项目名称:ant,代码行数:6,代码来源:PatternSet.java

示例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);
}
 
开发者ID:apache,项目名称:ant,代码行数:11,代码来源:XSLTProcess.java

示例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());
}
 
开发者ID:apache,项目名称:ant,代码行数:13,代码来源:JUnitTest.java

示例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);
}
 
开发者ID:apache,项目名称:ant,代码行数:12,代码来源:FormatterElement.java


注:本文中的org.apache.tools.ant.PropertyHelper.testUnlessCondition方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。