本文整理汇总了Java中com.sun.squawk.builder.Target类的典型用法代码示例。如果您正苦于以下问题:Java Target类的具体用法?Java Target怎么用?Java Target使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Target类属于com.sun.squawk.builder包,在下文中一共展示了Target类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTarget
import com.sun.squawk.builder.Target; //导入依赖的package包/类
/**
* Convenience method that gets the <code>Target</code> associated with the
* specified module assuming that the module's entire source code is found
* solely in a subdirectory "src", that the module's directory is a valid
* <code>Target</code> name, and that preprocessing is enabled.
*
* @param baseDir The base directory of the module.
* @param classpath Additional classpath required by the module.
* @param j2me Whether or not this is a j2me module.
* @return The associated <code>Target</code>.
*/
protected Target getTarget(File baseDir, String classpath, boolean j2me) {
return new Target(classpath, j2me, baseDir.getPath(), new File[] { new File(baseDir, "src") }, true, env, baseDir.getName());
}