本文整理匯總了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());
}