SKITSANOS FOR RIA

Skitsanos

Thursday, October 22, 2009

Integrating JSBuilder into IntelliJ IDEA

Seems I’ve decided to stuff my IDEA with all possible things that i use daily and since I love comfortable living, i want to have things doing job in a right way. Days ago i wrote about Wrapping YUI Compressor into your IntelliJ IDEA so today I've got one more hint for you – adding JSBuilder, just this time I will explain things in less steps since previous article explains primary steps. JSBuilder2 is a JavaScript and CSS project build tool. You can download it from here: http://www.extjs.com/products/jsbuilder/

Why I needed it first of all, – one simple reason, when you working with ExtJS SVN there are tons of files, sometimes you can get new files daily, but you need to have a build tool that will wrap gazillion of standalone JavaScript files into one single ext-all.js (in my case, in reality you can create your own scenario and create own builds for others projects). So that’s why you need to have JSBuilder next to you.

So let’s have job done, go into your IDEA Settings\External Tools and hit Add and following dialog will popup:

image

Name your tool  let’s say JSBuilder, you can put it into the same group as you did with YUI Compressor – JavaScript Tools. Now let’s add program settings, since it’s a Java application, our program will be java. Parameters would be following line:

-jar "D:\FTP\Devx\JavaScript\JSBuilder2\JSBuilder2.jar" --projectFile "$FilePath$" --homeDir "$ProjectFileDir$"

Notice that i wrapped "$FilePath$" and "$ProjectFileDir$" into quotes, this will save you from issues where file path contains spaces. And the last thing is working directory which is equal to $FileDir$. Then just hit Ok and you’ve got new tool added to your IDEA.

image

0 comments:

Webware development dedicated blog by Skitsanos R&D Labs. ASP.NET, XML, RIA, Adobe Flex, ActionScript 3, AIR, AJAX, Web 2.0, Backbase, CGI development with RealBasic and other web development issues.
News
Downloads