本文整理汇总了Java中com.android.SdkConstants.OS_SDK_TOOLS_LIB_FOLDER属性的典型用法代码示例。如果您正苦于以下问题:Java SdkConstants.OS_SDK_TOOLS_LIB_FOLDER属性的具体用法?Java SdkConstants.OS_SDK_TOOLS_LIB_FOLDER怎么用?Java SdkConstants.OS_SDK_TOOLS_LIB_FOLDER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.android.SdkConstants
的用法示例。
在下文中一共展示了SdkConstants.OS_SDK_TOOLS_LIB_FOLDER属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: installTemplate
/**
* Installs a new file that is based on a template file provided by the tools folder.
* Each match of each key from the place-holder map in the template will be replaced with its
* corresponding value in the created file.
*
* @param templateName the name of to the template file
* @param destFile the path to the destination file, relative to the project
* @param placeholderMap a map of (place-holder, value) to create the file from the template.
* @throws ProjectCreateException
*/
public void installTemplate(String templateName, File destFile,
Map<String, String> placeholderMap)
throws ProjectCreateException {
// query the target for its template directory
String templateFolder = mSdkFolder + File.separator + SdkConstants.OS_SDK_TOOLS_LIB_FOLDER;
final String sourcePath = templateFolder + File.separator + templateName;
installFullPathTemplate(sourcePath, destFile, placeholderMap);
}