在 Netbeans 7 中更改 JAR 文件的目标文件夹 [英] Change destination folder of JAR files in Netbeans 7

查看:33
本文介绍了在 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?

推荐答案

您可以通过编辑 project.properties 中的 dist.dir 键来更改 dist 文件夹位于 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 文件的目标文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆