本文介绍了在Netbeans 7中更改JAR文件的目标文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为客户端开发一个多项目解决方案,我们正在尝试让所有构建自动进入预定的BIN文件夹。所有的C ++项目都很容易被移除,但Java方面已经证明不那么容易配置。当我转到项目的属性并转到Build-> Packaging时,JAR文件:文本框显示一个指向dist / App.jar的只读文本框(我想将其更改为.. /../../bin/App.jar。有关如何做到这一点的任何想法?

I'm working on a multiproject solution for a client and we're trying to have all our builds automatically go into a predetermined BIN folder. All the C++ projects were easily enough moved over but the Java side has proven not so easily configured. When I go to the project's properties and go to Build->Packaging the "JAR File:" text box shows a read-only text-box pointing to "dist/App.jar" (which I would like to change to "../../../bin/App.jar". Any thoughts on how to do this?

推荐答案

你可以改变dist-folder通过编辑 project.properties 文件中的 dist.dir 键,该文件位于 nbproject 目录来自

You can change the dist-folder by editing the dist.dir key in the project.propertiesfile which is located in the nbproject directory from

dist.dir=dist

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

在我的情况下,密钥在第24行。 jar文件本身的名称由 dist.jar 键确定,如果您还需要重命名该文件。

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

这篇关于在Netbeans 7中更改JAR文件的目标文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 17:17