NetBeans behaves differently if project is run via "Run Project" or build.xml>run
Posted
by
Rogach
on Stack Overflow
See other posts from Stack Overflow
or by Rogach
Published on 2010-12-23T22:13:39Z
Indexed on
2010/12/24
1:54 UTC
Read the original article
Hit count: 700
I slightly modified the build-impl.xml file of my NetBeans project. (Specifically, I made it to insert build time into program code). If I run project via build.xml "run" target, I get behavior I expect - the program displays build time and date. But if I run project using standard (and most obvious, used it always) button "Run Main Project", I get totally another result (no build date). Moreover, if I insert any code into build.xml, I still get result if I run the target explicitly and no result if it is run simply by NetBeans. And this leads me to conclusion, that this button uses another method to run my application. My question is: what does that button do? What method does it call? And can it be configured to run the needed target of make file?
© Stack Overflow or respective owner