Change destination folder of JAR files in Netbeans 7

I am working on a multi-project solution for the client, and we try to ensure that all of our assemblies automatically go to the predefined BIN folder. All C ++ projects were moved quite easily, but the Java side was not so easily configured. When I go to the project properties and go to Build-> Packaging, the text box β€œJAR file:” displays a read-only text box that points to β€œdist / App.jar” (which I would like to change to β€œ../. ./../bin/App.jar ". Any thoughts on how to do this?

+5
source share
3 answers

You can change the dist folder by editing the key dist.dirin the file project.propertieslocated in the directory nbprojectfrom

dist.dir=dist

to

dist.dir=../../../bin

In my case, the key is on line 24. The name of the jar file itself is determined by the key dist.jar, if you also need to rename the file.

+15
source

You checked in the menu

[Run] β†’ [Set project configuration] β†’ [Configure]
You have many options for changing there, it's easy.

Good luck.

+1
source

add to build.xml

<target name="-post-jar">
    <copy file="${dist.jar}" todir="drive\path\"/>
</target>
0
source

All Articles