简体   繁体   English

如何使用Tizen Studio将.tproject中的文件列入黑名单

[英]How do I blacklist files in .tproject using Tizen Studio

Disclaimer: I have no idea what I am doing here. 免责声明:我不知道我在这里做什么。

I was given a project with a large .tproject file (7956 lines). 我得到了一个带有大.tproject文件(7956行)的项目。 This is because it is blacklisting numerous files that shouldn't build. 这是因为它正在将不应构建的许多文件列入黑名单。 It's mostly node_modules. 主要是node_modules。 Each file in a module is blacklisted. 模块中的每个文件都被列入黑名单。

Making sure I have installed the node packages, I have followed these steps: 确保已经安装了节点软件包,请按照以下步骤操作:

  • Remove blacklist node from .tproject 从.tproject删除黑名单节点
  • Open Tizen Sudio (2.3) on Windows 10 在Windows 10上打开Tizen Sudio(2.3)
  • File > Open Projects from File System 文件>从文件系统打开项目
  • Show other specialized import wizards 显示其他专门的导入向导
  • Tizen > Tizen Project Tizen> Tizen项目
  • Browse root directory location 浏览根目录位置
  • Profile > tv 个人资料>电视
  • Finish (project is created but modal hasn't closed) 完成(创建项目,但模态尚未关闭)

I get this message: 我收到此消息:

   Resource '/project' already exists

and then: 接着:

    Errors occurred during the build.
    Errors running builder 'Tizen Web Builder' on project 'DStv Now'.
    java.lang.NullPointerException

What I want to know: 我想知道的是:

  • To get the NullPointerException, my project is definitely missing something in order to get setup. 为了获得NullPointerException,我的项目肯定缺少某些东西以便进行设置。 Any ideas what could be missing? 有什么想法可能会丢失吗?
  • How do I import the project as a Tizen TV application? 如何将项目导入为Tizen TV应用程序?
  • How is the .tproject file created? .tproject文件如何创建?
  • Is it a suitable file to add to .gitignore? 添加到.gitignore是否合适? It looks auto generated. 它看起来是自动生成的。
  • If not, is there a way to use regex to blacklist files instead of listing them one by one? 如果不是,是否可以使用正则表达式将文件列入黑名单,而不是一一列出?

What I know about .tproject is, It holds Project template Information. 我对.tproject了解的是,它包含项目模板信息。 Like : tv-samsung-3.0, wearable-2.3.2. 像:三星电视3.0,可穿戴2.3.2。 This will change only when the developer changes the template for some reason (Suppose update app for new tizen version). 仅当开发人员出于某些原因更改模板时(这将更改为新的tizen版本的更新应用程序),这将更改。

About Importing Tizen TV Project-> 关于导入Tizen TV项目->

Tizen-Studio > File > Import > Tizen > Tizen Project > Root Directory > Select Specific Project Folder Tizen Studio>文件>导入> Tizen> Tizen项目>根目录> 选择特定项目文件夹

If every-thing's okay till now you would see a project on Project list. 如果到目前为止一切正常,您将在“项目”列表中看到一个项目。 Set the Profile and Version, then finish. 设置配置文件和版本,然后完成。 The project should be on your Tizen-Studio Project Explorer. 该项目应该在您的Tizen-Studio Project Explorer中。 Project > Clean > Build. 项目>清理>构建。

About .gitignore what I can suggest is to add only the files that get removed at Clean Project command. 关于.gitignore,我建议您仅添加在Clean Project命令中删除的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tizen Studio 未开放 - Tizen Studio Not Opening 如何从Explorer / Finder中的项目打开Zend Studio / Eclipse文件 - How do I open Zend Studio/Eclipse Files from a project in Explorer/Finder 如何使用EGit将所有文件还原到以前的提交? - How do I revert all files to a previous commit using EGit? 如何使用Eclipse将.apk文件传输到设备 - How do I transfer .apk files to device using Eclipse 如何在Zend Studio中设置书签? - How do I set a bookmark in Zend Studio? 使用Android使用指定的输出约定,如何读取输出文件 - Using the specified output convention by android, how do I go about reading output files 如何使用Intellij运行需要其他项目/模块的配置文件的Java类? - How do I run a java class, using Intellij, that needs configuration files from another project/module? 如何将我的Android Eclipse项目迁移到使用Gradle和Android Studio? - How do I migrate my Android Eclipse project to using Gradle and Android Studio? 如何设置Eclipse以使用XAMPP在本地主机上运行php文件? - How do I set up Eclipse to run php files on my localhost using XAMPP? 如何关闭Aptana Studio for Eclipse中的自动更新? - How do I turn off automatic updates in Aptana Studio for Eclipse?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM