最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Can I specify ant properties in Netbeans project configuration - Stack Overflow

programmeradmin1浏览0评论

In Apache Netbeans, is it possible to set an ant property in the Project Configuration?

I've got this line in my projects build.xml:

<property name="Create Installer" value="y" />

What I'd like to do is set the value differently in different NetBeans project configurations.

In Apache Netbeans, is it possible to set an ant property in the Project Configuration?

I've got this line in my projects build.xml:

<property name="Create Installer" value="y" />

What I'd like to do is set the value differently in different NetBeans project configurations.

Share Improve this question asked Feb 5 at 22:53 mstoreysmithmstoreysmith 1391 silver badge7 bronze badges 2
  • What happened when you tried it? – g00se Commented Feb 6 at 10:22
  • I'm looking in the Netbeans project configuration dialog boxes, g00se, but I just don't see a place where I can put the property definition. Nor can I find any hint in the Apache Netbeans documentation. So for now, I'm just manually changing the build.xml file whenever I need to alter the value. – mstoreysmith Commented Feb 6 at 13:51
Add a comment  | 

1 Answer 1

Reset to default 0

After much investigation, I discovered that creating a Project Configuration in Apache Netbeans results in the creation of a property file in the folder nbproject/configs. I opened this file (in my case Deploy.properties) and made it look like this:

$label=Deploy
CreateInstaller=true

This made CreateInstaller visible in my project's build.xml.

发布评论

评论列表(0)

  1. 暂无评论