User Tools

Site Tools


info:netbeans

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
info:netbeans [2008-06-26 18:04]
sam libraries
info:netbeans [2009-10-20 20:25] (current)
sam Ant in Netbeans
Line 2: Line 2:
 It seems like a pretty nice IDE, but there must be some reason I still use Eclipse, right? It seems like a pretty nice IDE, but there must be some reason I still use Eclipse, right?
 ===== Positive ===== ===== Positive =====
-  * Seems faster than Eclipse.+  * Seems faster than Eclipse ​(maybe not on Linux).
   * GUI editor: I just tried it again (2008-06-24) and it seems pretty awesome. It blocks you from editing the code directly, but you can still customize as you like (most of the need for editing manually in Eclipse VE was when it broke things).   * GUI editor: I just tried it again (2008-06-24) and it seems pretty awesome. It blocks you from editing the code directly, but you can still customize as you like (most of the need for editing manually in Eclipse VE was when it broke things).
   * Good interface for looking at and installing available plugins.   * Good interface for looking at and installing available plugins.
Line 20: Line 20:
  
   * I don't get the library settings screen.   * I don't get the library settings screen.
 +
 +===== Notes =====
 +  * Unlike Eclipse (which has an option), Netbeans refreshes its view on the file system automatically
 +
 +==== Ant ====
 +//For debugging problems with Ant, the verbosity level can be set in Options/​Miscellaneous/​Ant.//​
 +
 +When using the Netbeans-generated Ant files, libraries will be copied into the dist folder only if there is a main class and if a ''​manifest.mf''​ file exists in the base directory (and, unless on Windows, it must be the expected case, which I believe is all lowercase); confer ''​build-impl.xml''​. Here is how I generated a manifest with the SVN version (this is added to ''​build.xml''​):​
 +
 +<code xml>
 +    <!--
 +    target: version
 +    Gets the SVN version number using the svnversion command (requires that
 +    it be in the PATH).
 +    -->
 +    <target name="​version">​
 +        <exec executable="​svnversion"​ outputproperty="​svn.version">​
 +            <arg value="​."​ />
 +        </​exec>​
 +    </​target>​
 +
 +    <!--
 +    Add the SVN version to the manifest, which will get put in the JAR
 +    (build-impl.xml handles that part, and adds the main class and classpath).
 +
 +    Need to do this in the -pre-init target so that build-impl.xml knows that
 +    a manifest.mf file exists; otherwise it won't use the one we generate,
 +    and it seems that also it won't copy the libraries into the dist directory.
 +    -->
 +    <target name="​-pre-init"​ depends="​version">​
 +        <​manifest file="​manifest.mf">​
 +            <​attribute name="​Implementation-Version"​ value="​r${svn.version}"​ />
 +        </​manifest>​
 +    </​target>​
 +</​code>​
 +
 +
info/netbeans.txt · Last modified: 2009-10-20 20:25 by sam