Differences
This shows you the differences between two versions of the page.
— |
guidelines:adding_netbeans_wrapper_module_for_javaproject [2011/12/22 14:58] (current) michal.bida created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Task: ==== | ||
+ | Create a new Netbeans wrapper module for JavaProject that rebuilds itself when it should. Using this increases change-build-run developement cycle. | ||
+ | |||
+ | ==== What is wrong with normal Netbeans wizzard? ==== | ||
+ | Nothing, unless you change the project that created the encapsulated jar in the first place, which we do a lot. | ||
+ | Example: SposhCore JavaProject is encapsulated in PogamutNbUTSposhCore. When you change something in SposhCore and compile it, you have to replace the jar that is stored in PogamutNbUTSposhCore. | ||
+ | |||
+ | ==== Howto ==== | ||
+ | We'll call java project JP and wrapper module WM. | ||
+ | |||
+ | === Create a WP from JP using NB wizzard. === | ||
+ | === Alter WM build.xml === | ||
+ | Add following build.xml after <import file=" | ||
+ | <target name=" | ||
+ | <echo message=" | ||
+ | <ant dir=" | ||
+ | | ||
+ | <echo message=" | ||
+ | <copy todir=" | ||
+ | file=" | ||
+ | </ | ||
+ | <target name=" | ||
+ | <echo message=" | ||
+ | <ant dir=" | ||
+ | | ||
+ | <echo message=" | ||
+ | </ | ||
+ | |||
+ | ** Remember to change the paths and variables to suit your project. *** | ||
+ | |||
+ | === Alter WM Project.xml === | ||
+ | |||
+ | * To WP Project.xml add | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | to / | ||