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


Java TkFiles类代码示例

本文整理汇总了Java中org.takes.tk.TkFiles的典型用法代码示例。如果您正苦于以下问题:Java TkFiles类的具体用法?Java TkFiles怎么用?Java TkFiles使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TkFiles类属于org.takes.tk包,在下文中一共展示了TkFiles类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: TkRefresh

import org.takes.tk.TkFiles; //导入依赖的package包/类
/**
 * Ctor.
 * @param path Path
 * @throws IOException If fails
 */
public TkRefresh(final File path) throws IOException {
    this.take =  new TkFork(
        new FkHitRefresh(
            path,
            () -> new VerboseProcess(
                new ProcessBuilder(
                    "mvn",
                    "generate-resources"
                )
            ).stdout(),
            new TkFiles("./target/classes")
        ),
        new FkFixed(new TkClasspath())
    );
}
 
开发者ID:yegor256,项目名称:rehttp,代码行数:21,代码来源:TkRefresh.java

示例2: refresh

import org.takes.tk.TkFiles; //导入依赖的package包/类
/**
 * Ctor.
 * @param path Path of files
 * @return Take
 * @throws IOException If fails
 */
private static Take refresh(final String path) throws IOException {
    return new TkFork(
        new FkHitRefresh(
            new File(path),
            () -> new VerboseProcess(
                new ProcessBuilder(
                    "mvn",
                    "generate-resources"
                )
            ).stdout(),
            new TkFiles("./target/classes")
        ),
        new FkFixed(new TkClasspath())
    );
}
 
开发者ID:yegor256,项目名称:threecopies,代码行数:22,代码来源:TkApp.java

示例3: TkRefresh

import org.takes.tk.TkFiles; //导入依赖的package包/类
/**
 * Ctor.
 * @param path Path of files
 * @throws IOException If fails
 */
TkRefresh(final String path) throws IOException {
    super(
        new TkFork(
            new FkHitRefresh(
                new File(path),
                () -> new VerboseProcess(
                    new ProcessBuilder(
                        "mvn",
                        "generate-resources"
                    )
                ).stdout(),
                new TkFiles("./target/classes")
            ),
            new FkFixed(new TkClasspath())
        )
    );
}
 
开发者ID:yegor256,项目名称:jare,代码行数:23,代码来源:TkRefresh.java

示例4: refresh

import org.takes.tk.TkFiles; //导入依赖的package包/类
/**
 * Hit refresh fork.
 * @param path Path of files
 * @return Fork
 * @throws IOException If fails
 */
private static Take refresh(final String path) throws IOException {
    return new TkFork(
        new FkHitRefresh(
            new File(path),
            () -> new VerboseProcess(
                new ProcessBuilder(
                    "mvn",
                    "generate-resources"
                )
            ).stdout(),
            new TkFiles("./target/classes")
        ),
        new FkFixed(new TkClasspath())
    );
}
 
开发者ID:yegor256,项目名称:wring,代码行数:22,代码来源:TkApp.java

示例5: refresh

import org.takes.tk.TkFiles; //导入依赖的package包/类
/**
 * Hit refresh fork.
 * @param path Path of files
 * @return Fork
 * @throws IOException If fails
 */
@SuppressWarnings("PMD.DoNotUseThreads")
private static Take refresh(final String path) throws IOException {
    return new TkFork(
        new FkHitRefresh(
            new File(path),
            new Runnable() {
                @Override
                public void run() {
                    new VerboseProcess(
                        new ProcessBuilder(
                            "mvn",
                            "generate-resources"
                        )
                    ).stdout();
                }
            },
            new TkFiles("./target/classes")
        ),
        new FkFixed(new TkClasspath())
    );
}
 
开发者ID:yegor256,项目名称:thindeck,代码行数:28,代码来源:TkApp.java


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