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 46169 - Cannot place j2seproject metadata dir inside existing package root
Summary: Cannot place j2seproject metadata dir inside existing package root
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-07-15 00:42 UTC by ivan
Modified: 2006-03-24 10:25 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 ivan 2004-07-15 00:42:30 UTC
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.
Comment 1 Petr Hrebejk 2004-07-15 09:51:42 UTC
Tomas probably a qestion for you.
Comment 2 Tomas Zezula 2004-07-15 15:01:05 UTC
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 ***
Comment 3 Jesse Glick 2004-07-15 23:33:44 UTC
Not really dupe of #44926 since Ivan is requesting to put the metadata
folder inside the Java package root...
Comment 4 Jesse Glick 2004-07-15 23:34:30 UTC
...which is not supported.
Comment 5 ivan 2004-07-16 00:57:01 UTC
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.



Comment 6 Jesse Glick 2004-07-16 21:29:14 UTC
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.
Comment 7 ivan 2004-07-16 21:45:35 UTC
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.
Comment 8 Jesse Glick 2004-07-16 22:10:41 UTC
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.
Comment 9 Marian Mirilovic 2005-07-12 10:01:51 UTC
closed