📄 preverifier.java
字号:
package org.momeunit.ant.preverifier;import java.io.File;import org.momeunit.ant.core.WtkTool;/** * Abstract base class of all preverifiers. Extends {@link WtkTool}. Contains * {@link #execute(File, File, File)} abstract method that every preverifier * must implement. Contains <code>config</code> property accessible via * {@link #setConfig(String)} and {@link #getConfig()} methods. * * @author Sergio Morozov * @version 1.1.2 */public abstract class Preverifier extends WtkTool{ /** * Config property. */ private String config = null; /** * Instantiates preverifier with given WTK home directory. * * @param wtkHome * WTK home directory. * @since 1.1 */ public Preverifier(File wtkHome) { super(wtkHome); } /** * Instantiates preverifier. * * @since 1.1 */ public Preverifier() { this(null); } /** * Return CLDC version. * * @return CLDC version. * @since 1.1 */ public String getConfig() { return this.config; } /** * Sets CLDC version. * * @param cldc * CLDC version. * @since 1.1 */ public void setConfig(String cldc) { this.config = cldc; } /** * Abstract method intended to run preverifier that every preverifier must * implement. * * @param src * source to preverify. Either directory or jar file. Can't be * <code>null</code>. * @param toDir * Destination directory of preverfier. Can't be <code>null</code>. * @param atDir * Current directory of running preverifier. Can't be * <code>null</code>. * @return {@link Process} associated with running preverifier. * @since 1.1 */ public abstract Process execute(File src, File toDir, File atDir);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -