English 中文(简体)
Build file and Ant Targets from Project Menu in Netbeans (6.7)
原标题:
  • 时间:2009-11-10 10:24:32
  •  标签:
  • netbeans

I ve recently started using netbeans for a few hobby projects. I ve come from a JDeveloper background and I m used to been able to see my ant build file from the project explorer window.

In JDeveloper this has the advantage of allowing you to right click on it, allow easy edits, or run a required target when you want to.

The only way I can seem to do this in netbeans is to open up the build.xml file, right click and select my target and run it.

Hope everyone is still with me.

I guess the build, compile, test, clean options you get in the project menu when you right click on a project are wired automagically to the ant targets. But I tried to create a new target and see if it was displayed in the normal project menu, and its not.

Does anyone know why Netbeans doesn t include the build.xml file in the project structure or whether it can be included in the project explorer display easily.

Kris

问题回答

It sounds like you want to switch to the Files view. You can find the build.xml file in that view easily. If you right click on the file, you get a menu that includes items like Run Target and Debug Target .

If you want to have even more control over the mapping between menu items and ant targets, you should explore the Java Free-Form Project type.

Go to Files tab, find your build.xml, expand all targets, right click on the target you want to add and choose between the options provided.





相关问题
Netbeans CVS - existing repo - existing working copy

I m using Netbeans to develop with Drupal. I m trying to let Netbeans get drupal core and modules from the repository on drupal.org to my local working copy. Problem is: I already have a working ...

Java Library and Class Path Problems

Quick personal background: I was hired a few months ago as the sole .NET developer (C#) by a company whose other devs are all php devs. A week into the job I was told they wanted to switch to Java ...

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

Running unit tests on both windows and linux

Is there a way, a method, to be able to effectively run unit tests (phpunit) on both linux and windows? I need to do this because some parts of the system is only available under linux, but i do want ...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I m developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I m ...

热门标签