Building Netbeans 5.0 NBMs for an entire suite

Creating NBMs (or Netbeans 5.0 Pluggins) for a large number of modules can be quite annoying. I decided to write my own ant task so that it will build all the modules in a suite and put the subsequent nbms into a local nbm directory. I figured others might be interested in these codes lines that can be added to your build.xml in your suite.
Make sure to add the following taskdef. You can get the foreach task as defined in nbbuild of the netbeans src. The following clip was taken from nbbuild/build.xml <taskdef name="for-each" classname="org.netbeans.nbbuild.ForEach" classpath="nbantext.jar"/>

Here is the build-nbm-pack:
<target name="build-nbm-pack" depends="init" description="Builds all modules into nbms">
        <delete dir="nbms"/>
        <mkdir dir="nbms" />

        <loadproperties srcFile="../mysuite/nbproject/project.properties">
           <filterchain>
                 <tokenfilter>
                   <deletecharacters chars=".."/>
                 </tokenfilter>
             </filterchain>
        </loadproperties>
       <for-each startdir=".." target="nbm" locations="${modules}" propertyna
me="nbm.target.dir" propertyvalue="${basedir}/nbms"/>
    </target>


Comments:

which plat form is more copatabe for a web site ? Is PHP or JAVA ?

Posted by krishna on April 13, 2007 at 01:45 AM PDT #

Yes it is right.......

Posted by krishna on April 13, 2007 at 01:48 AM PDT #

how to use this code for diffrent modules? <target name="build-nbm-pack" depends="init" description="Builds all modules into nbms"> <delete dir="nbms"/> <mkdir dir="nbms" />

Posted by krishna on April 13, 2007 at 01:50 AM PDT #

what is this ? <loadproperties srcFile="../mysuite/nbproject/project.properties"> <filterchain> <tokenfilter> <deletecharacters chars=".."/> </tokenfilter> </filterchain> </loadproperties>

Posted by krishna on April 13, 2007 at 01:51 AM PDT #

what is the use. above?

Posted by krishna on April 13, 2007 at 01:51 AM PDT #

it is more difficult to understand. <target name="build-nbm-pack" depends="init" description="Builds all modules into nbms"> <delete dir="nbms"/> <mkdir dir="nbms" /> <loadproperties srcFile="../mysuite/nbproject/project.properties"> <filterchain> <tokenfilter> <deletecharacters chars=".."/> </tokenfilter> </filterchain> </loadproperties> <for-each startdir=".." target="nbm" locations="${modules}" propertyna me="nbm.target.dir" propertyvalue="${basedir}/nbms"/> </target>

Posted by krishna on April 13, 2007 at 01:52 AM PDT #

yes

Posted by krishna on April 13, 2007 at 01:54 AM PDT #

no comments.....

Posted by krishna on April 13, 2007 at 01:54 AM PDT #

sodi site i need link.

Posted by krishna on April 13, 2007 at 01:55 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

joellelam

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today