NetBeans Sources as a Platform

news/2024/6/18 21:31:02 标签: 开发工具, 数据库
http://blogs.oracle.com/geertjan/entry/netbeans_sources_as_a_platform

——————————————————————————————————————————————————————————————————————————————

NetBeans Sources as a Platform

By Geertjan on Nov 26, 2011

By default, when you create a new NetBeans module, the 'development IDE' is the platform to which you'll be deploying your module. It's a good idea to create your own platform and check that into your own repo, so that everyone working on your project will be able to work with a standardized platform, rather than whatever happens to be beneath the development IDE your using.

Something else you can do is use the NetBeans sources as your platform, once you've checked them out. That's something I did the other day when trying to see whether adding 'setActivatedNodes' to NbSheet was sufficient for getting UndoRedo enabled in the Properties Window. So that's a good use case, i.e., you'd like to change the NetBeans Platform somehow, or you're fixing a bug, in other words, in some way you need to change the NetBeans Platform sources and then would like to try out the result of your changes as a client of your changes.

In that scenario, here's how to set up and use a NetBeans Platform from the NetBeans sources.

  1. Run 'ant -Dcluster.config=platform build-platform' on the root of the NetBeans sources. In about two minutes, you'll end up with nbbuild/netbeans containing a subfolder 'platform' and a subfolder 'harness'. There's your NetBeans Platform.
  2. Go to Tools | NetBeans Platform and browse to 'nbbuild/netbeans', registering it as your NetBeans Platform.
  3. Create a new NetBeans module, using the new NetBeans Platform as the platform.

  4. Now the cool thing is you can open any of the NetBeans modules from the NetBeans Platform modules in the NetBeans sources. When you change the source code of one of these modules and then build that module, the changed JAR will automatically be added to the right place in the nbbuild/netbeans folder. And when you do a 'clean' on a NetBeans Platform module, the related JAR will be removed from nbbuild/netbeans.
In other words, in this way, by changing the NetBeans sources, you're directly changing the platform that your custom module will be running on when you deploy it. That's pretty cool and gives you a more connected relationship to your platform, since you're able to change it in the same way as the custom modules you create.
 

http://www.niftyadmin.cn/n/1580135.html

相关文章

在网页中加入flv视频

首先下载http://www.cgfans.net/bbs/Medias/2007/10/jw_flv_player.zip flv播放器下载下来。 使用方法&#xff1a;如果你仅需要播放一个FLV文件[例如“video.flv”],那么只要把“video.flv”和压缩包内的flvplayer.swf复制到同一个目录内,然后在页面内添加 程序代码 <objec…

[转]double free or corruption (!prev): 0x080644c8 ***

写了一个多线程的代码&#xff0c;在主线程中申请了一块内存&#xff0c;在另一个线程中释放内存&#xff0c;老出错误&#xff0c;不知道是怎么回事。 *** glibc detected *** /home/ydx/vehicle-program/vehicle-v1.0/t: double free or corruption (!prev): 0x080644c8 *** …

[收藏]iframe的WPO优化技巧

为什么80%的码农都做不了架构师&#xff1f;>>> http://www.webusability.cn/howto-wpo-for-iframe-460/ 转载于:https://my.oschina.net/leeoo/blog/39101

写在新年伊始

快过年了&#xff0c;今天一个人在家折腾了一天&#xff0c;打扫屋子&#xff0c;现在刚刚坐下来。遂燃起一支烟&#xff0c;泡上一杯北京人都喜欢的花茶&#xff0c;放上一张CD&#xff0c;享受一下。 很久没有写过东西了&#xff0c;博客也很久没有写了。在这新旧交替的时刻&…

ZOOKEEPER启动遇到显示IT IS PROBABLY NOT RUNNING的众多问题解决

加粗样式 ZOOKEEPER启动遇到显示IT IS PROBABLY NOT RUNNING的问题解决 本人是启动三台虚拟机分别是hadoop01&#xff0c;hadoop02,hadoop03&#xff0c;我在主节点启动zookeeper的zkServer.sh start服务后&#xff0c;在通过status查看其状态&#xff0c;发现第三台hadoop03节…

匹配一个字符

/[Ll]ove/ []表示匹配括号字符集中的一个字符即可。在本例子中&#xff0c;vi将寻找包含Love或者love的行。转载于:https://blog.51cto.com/huyanshu/767732

Flume架构及核心组件

Flume架构及核心组件 1&#xff09;Source 收集 2&#xff09;Channel 聚集 3&#xff09;Sink 输出 channel相当于一个通道&#xff0c;类似于一个数据的缓存池&#xff0c;提供一个数据临时存放的地方。在操作系统层面&#xff0c;写数据到磁盘&#xff0c;先会把数据写到内存…

sencha touch 2与phonegap结合开发web app

1、下载sencha-touch-2-pr3和phonegap-1.3.0&#xff1b; 2、在assets&#xff08;Java EE IDE&#xff09;下面创建www, 然后在www下面创建js文件夹,如下所示&#xff1a; 3、把sencha-touch-all.js和phonegap-1.3.0.js复制到js文件夹下面&#xff1b; 4、在工程目录下创建lib…