This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204551 - Make Ant build output dir configurable to avoid "Cannot place the project in a project folder that already contains "dist" folder."
Summary: Make Ant build output dir configurable to avoid "Cannot place the project in ...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 22:17 UTC by pekarna
Modified: 2011-11-12 16:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pekarna 2011-11-01 22:17:55 UTC
NetBeans refuses to create an Ant project where there's already a dist directory, without leaving any option to configure other name for NB's build output.


STR:

1) Download Java EE 6 TCK
2) New Project -> Java -> with Existing Sources
3) Navigate to the TCK dir
4) NetBeans will refuse to create a project there:
  "Cannot place the project in a project folder that already contains "dist" folder."

Marking as DEFECT since it actually breaks functionality.
(I wonder whether no one uses NetBeans in TCK team?)
Comment 1 Jesse Glick 2011-11-10 15:24:35 UTC
Workaround would be to temporarily move aside the dist folder, create the project via wizard, change dist location in project.properties, move back dist folder.
Comment 2 Tomas Zezula 2011-11-10 16:21:04 UTC
The dist can be changed in the project.properties when the project is created, not in the wizard :-(
I agree that for new project from existing sources it should be customizable.
Comment 3 Tomas Zezula 2011-11-11 20:17:11 UTC
Fixed jet-main bea59862a927
Comment 4 Tomas Zezula 2011-11-11 20:18:29 UTC
Fixed for J2SE project types.
If the report is about web (j2ee) project please create a new issue on j2ee/web project.
Comment 5 Quality Engineering 2011-11-12 16:30:33 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/bea59862a927
User: Tomas Zezula <tzezula@netbeans.org>
Log: #204551:Make Ant build output dir configurable to avoid "Cannot place the project in a project folder that already contains "dist" folder."