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.
I tried to create a free-form project (for testing purposes). The build script was copied from the official ant manual, thus it should be valid. Nevertheless, I couldn't create the project with a message saying "The selected file is not a valid ant script"
Created attachment 18247 [details] the refused build script
I just updated sources and rebuilt the IDE and it works fine. However, I reported the bug against sources from yesterday morning, so I doubt this was realy fixed between yesterday and today. It's more likely to be connected with the rebuild. I encountered the same problem some time ago - I was unable to create a free-form project from an apparently valid ant-script. I looks like the problem is not in the build script . I downgrade the priority and add "Sometimes" to the summary. When I experience it again, I'll add more details.
Please use ant/code, not java/project, for freeform project issues. No idea why such a thing would happen, so just going to wait for more info.
Reopen with details if it happens again.
Created attachment 20005 [details] problem build.xml script
problem happens consistently with attached build script.
Remove the unnecessary (and incorrect) "file:" prefix from the relative URI in the entity include and the script should be fine.
I too have encountered several times when creating a free-form project. Isn't it better not to validate the build file when creating the project.
The wizard needs to inspect the Ant script to find targets, so it needs to be well-formed.
Reverting awawdeh's metadata changes, which seem to be junk.