Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What ant target does netbeans "Clean & Build" call?

Tags:

ant

netbeans

I am trying to automatically copy files after the "dist" directory has been created and populated. The provided ant targets "-post-jar" and "-post-compile" seem to run before the dist directory is created. I can't find the actual build target in the build-impl.xml file. So I was going to attempt to put the command directly in build-impl.xml but can't seem to determine the correct target.

edit: -post-jar does work, however I am still curious what target is called.

like image 350
Edward Armstrong Avatar asked Sep 27 '22 17:09

Edward Armstrong


2 Answers

The Clean & Build calls the following ant targets:

  1. clean
  2. deps-jar
like image 91
JHead Avatar answered Oct 06 '22 20:10

JHead


Edit Ant settings to run build with verbose mode and you get get better insights into what targets are executed and when. build-impl.xml probably includes another build files from NetBeans installation where you can find all the details (some targets are defined through macros and it is not very readable).

like image 27
Radim Avatar answered Oct 06 '22 18:10

Radim