📄 libdir.java
字号:
package org.momeunit.ant.taskdefs;import org.apache.tools.ant.Task;import org.apache.tools.ant.types.FileSet;/** * MoMEUnit nested tag intended to specify files of external library to be * included in resulting test J2ME application. Extends {@link FileSet}. Adds * if/unless functionality. * * @author Sergio Morozov * @version 1.1.2 */public class LibDir extends FileSet{ private String ifProp = null; private String unlessProp = null; /** * Sets <code>if</code> attribute. * * @param ifProp * the <code>if</code> attribute to set. * @since 1.1 */ public void setIf(String ifProp) { this.ifProp = ifProp; } /** * Sets <code>unless</code> attribute. * * @param unlessProp * the <code>unless</code> attribute to set. * @since 1.1 */ public void setUnless(String unlessProp) { this.unlessProp = unlessProp; } /** * Is this tag allowed to use. * * @param task * owning task * @return <code>true</code> if this tag is allowed to use, * <code>false</code> otherwise. * @since 1.1 */ public boolean shouldUse(Task task) { return (ifProp == null || task.getProject().getProperty(ifProp) != null) && (unlessProp == null || task.getProject().getProperty(unlessProp) == null); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -