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"m trying to create a java application project from existing sources. The existing sources are located in /export/home/java/simple which contains two java files w/o packages. I.e. 'simple' is _not_ the package name for them. I set the Source Packages Folder to /export/home/java/simple And Project Name to simple And Project location to /export/home/test/java so that I get the Project Folder be /export/home/java/simple But the error message says Project Folder already exists and is not empty. I think it should accept this. Where else would I want to put my project folder other than the existing src directory? I reason that the Project folder is where information about the project is stored and since I"m creating from existing sources and telling it where the existing sources are it won't care that the project folder is not near the sources so I try Project Name to simple And Project location to /export/home/test/java/simple so that I get the Project Folder be /export/home/java/simple/simple But the error message says Project Folder is not valid. Now that's a helpful message. How is it invalid? It doesn't even exist. Does it need to be created? Why can't NB create it? Apparently it doesn't have to do with it's existence or non-existence because if I .... Project Name to simple And Project location to /tmp so that I get the Project Folder be /tmp/simple I don't get an error message. And the project folder does get created for me.
Tomas probably a qestion for you.
Duplicate of issues: http://www.netbeans.org/issues/show_bug.cgi?id=44926 Will be fixed fo Promo D. *** This issue has been marked as a duplicate of 44926 ***
Not really dupe of #44926 since Ivan is requesting to put the metadata folder inside the Java package root...
...which is not supported.
a) If it's not supported you need a better error message than "invalid directory". b) If I"m dealing with existing src code it might not make sense to have to create a project directory above it or anywhere else. Testcases in testsuite, one-time testcases for bug reproduction and all that kind of stuff usually usually doesn't have any package structure: /export/home/ivan/tests/java/ .../bug123 .../bug234 ... I usualy just javac *.java in these directories.
Re. (a) - we've updated the UI spec to have better messages and will work on putting those into the code. Re. (b) - sorry, you cannot put metadata into a package root. You can move those files into a different directory, or create an Ant script and freeform project.
Good on (a). On (b) ... is it posible to create a freeform project which uses javac instead of ant? I"m thinking of how one write little bug reproducibility examples or testcases and just javac's them. Then you send the testcase to someone who uses NB. The only way to do anything from within NB is to create project as quickly as they can and they don't want to botehr with ant scripts.
Re. (b) - you can certainly create a fresh project very quickly and it will be runnable easily via Ant (or without much difficulty using raw JDK tools). If you have existing scratch sources you have to put them into a separate source directory if you want to import them (or make a project metadata directory anywhere else). What you cannot do is put project metadata inside the package tree; the generated build scripts are not prepared to handle such a case, since they would need to exclude their own metadata from processing in a number of situations.
closed