简体   繁体   English

如何使用 eclipse webtool 使用 tomcat 创建 adempiere 自定义模板的 webui 工作区

[英]How to create webui workspace of adempiere customization templae using eclipse webtool using tomcat

I want to run adempiere customization with webui from eclipse using webtool and tomcat server, so i can run and debug code more efficiently for webui customziation.我想使用 webtool 和 tomcat 服务器从 eclipse 使用 webui 运行 adempiere 自定义,这样我就可以更有效地运行和调试代码以进行 webui 自定义。

These thing i have tried in adempiere trunk by using following link :- http://www.adempiere.com/Creating_WebUI_Workspace_using_Eclipse_Webtool ,but for this i can not do in customization.我使用以下链接在 adempiere 主干中尝试过这些东西:- http://www.adempiere.com/Creating_WebUI_Workspace_using_Eclipse_Webtool ,但为此我无法在定制中进行。 As i build trunk project using utils_dev/build.xml after that it created webui.war which showing while adding project in server.当我使用 utils_dev/build.xml 构建主干项目之后,它创建了 webui.war,它在服务器中添加项目时显示。 As for customization given directory were not available i have copied that in customization and try to build it it's not working and showing a lot of files not found.至于定制给定的目录不可用,我已经在定制中复制了它并尝试构建它它不起作用并显示很多文件未找到。 As i think that's not correct way because many of files will not be there in customization.因为我认为这不是正确的方法,因为许多文件不会在自定义中出现。

         [javac] Note: Some input files use or override a deprecated API.
         [javac] Note: Recompile with -Xlint:deprecation for details.
         [javac] Note: Some input files use unchecked or unsafe operations.
         [javac] Note: Recompile with -Xlint:unchecked for details.

Secondly i have tried one another link :- https://github.com/adempiere/Customization-Template , in which it showing i have to customize ant build.xml files.其次,我尝试了另一个链接:- https://github.com/adempiere/Customization-Template ,其中显示我必须自定义 ant build.xml 文件。 As the project is available to me i referred the build.xml files also created build.xml files in client,base and zkwebui folder.由于该项目对我可用,我引用了 build.xml 文件还在 client、base 和 zkw​​ebui 文件夹中创建了 build.xml 文件。 But while executing that xml file it showing following error message.但是在执行该 xml 文件时,它显示以下错误消息。 I think it's related issue with deprecation, but i am confused in this i will get proper output or not.Any one please suggest me how can i accomplish this things.我认为这是与弃用相关的问题,但我对此感到困惑我是否会得到正确的输出。请建议我如何完成这些事情。

The given link http://www.adempiere.com/Creating_WebUI_Workspace_using_Eclipse_Webtool worked successfully for adempiere trunk project but that's not worked for customization.给定的链接http://www.adempiere.com/Creating_WebUI_Workspace_using_Eclipse_Webtool对 adempiere 主干项目成功运行,但不适用于定制。 Can any one suggest me how can i accomplish same for customization任何人都可以建议我如何完成相同的定制

Second link i have followed :- https://github.com/adempiere/Customization-Template the same process i followed which i mentioned above.我遵循的第二个链接:- https://github.com/adempiere/Customization-Template遵循我上面提到的相同过程。

Check the online book section on development environments .查看有关开发环境在线书籍部分 This may be a copy of what you were reading in the wiki.这可能是您在 wiki 中阅读的内容的副本。 (Note, the wiki has moved to wiki.adempiere.net). (请注意,维基已移至 wiki.adempiere.net)。

To create customizations in ZK, you'll need to create a file zkcustomization.jar and add it to the install ADEMPIERE_HOME/lib directory (not the eclipse project) before you RUN_Setup/RUN_SilentSetup to build.要在 ZK 中创建自定义,您需要创建一个文件 zkcustomization.jar 并将其添加到安装 ADEMPIERE_HOME/lib 目录(不是 eclipse 项目),然后再使用 RUN_Setup/RUN_SilentSetup 进行构建。 Any class you add to this jar will override the equivalent class in the main project.您添加到此 jar 的任何类都将覆盖主项目中的等效类。

From Eclipse, you can modify the main project directly and debug it normally but you will need to keep track of the classes you modified and add them to the jar file manually.在 Eclipse 中,您可以直接修改主项目并正常调试它,但您需要跟踪您修改的类并手动将它们添加到 jar 文件中。 This is a bit tedious.这有点乏味。

The template approach is useful when you have many customized classes and need to ensure you get the jar file correct.当您有许多自定义类并需要确保获得正确的 jar 文件时,模板方法很有用。 It allows you select or add the specific java files you require and modify them while keeping the core project untouched.它允许您选择或添加您需要的特定 java 文件并修改它们,同时保持核心项目不变。 It suffers from the lack of a "hot-swap" feature which is so useful in the SWING interface and also that the web deployment doesn't span projects.它缺乏“热交换”功能,该功能在 SWING 界面中非常有用,而且 Web 部署不会跨越项目。 For this reason, when debugging the customized ZK interface, the template needs to copy all the compiled classes from the main project in order to deploy the web server.为此,在调试自定义 ZK 接口时,模板需要从主项目中复制所有已编译的类,以便部署 Web 服务器。 There are ANT configurations/scripts to help with this but they may need some tweaking as the main project is updated.有 ANT 配置/脚本可以帮助解决这个问题,但随着主项目的更新,它们可能需要一些调整。 Also, the template needs access to the correct libraries so you may have to update the build configuration as you add customizations.此外,模板需要访问正确的库,因此您可能需要在添加自定义项时更新构建配置。 Once you can run the adempiere zk interface from the template, you can create the zkcustomization.jar file automatically.一旦您可以从模板运行 adempiere zk 界面,您就可以自动创建 zkcustomization.jar 文件。 Then be sure to add it to your deployment package.然后确保将其添加到您的部署包中。

Its a bit of a hassle getting the template configured but it works quite well once you have it set up.配置模板有点麻烦,但是一旦设置好它就可以很好地工作。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM