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 141996

Summary: XML Refactoring on Copy Bug
Product: xml Reporter: qbeukes <qbeukes>
Component: RefactoringAssignee: Sonali Kochar <sonali>
Status: RESOLVED INCOMPLETE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description qbeukes 2008-07-29 08:09:43 UTC
I have an enterprise project with 2 sub projects, and EJB and a WAR.

In the WAR''s "Web Pages" node I have an "xml" sub directory. In this subdirectory I have a OBS.xsd file.
I wanted to copy this file to SMS.xsd, so I click on it, select Copy, click on the "xml" directory and 
select Paste (which provided a submenu). So I selected the "refactor" option in the sub menu, thinking it
might change my root node or what not.

After completing this I noticed no difference.
Trying it again I noticed it has a "package" option. It copied the XSD to my Java source, iow. the "src" directory
into the package "xml".
Comment 1 Sonali Kochar 2008-08-06 19:01:11 UTC
I dont see this issue. When doing a copy, did you select the right destination package in "To package" drop down? By
default, it copies the file to "src" directory...Not sure how the complete "src" directory got copied under "xml"..That
copy is not done by XML by is handled by java refactoring..
Comment 2 qbeukes 2008-08-06 21:36:50 UTC
That's the problem.

I have the {project}/src/java directory, 
and the {project}/web/xml directory.

I tried to paste into the web/xml directory, but the file ended up in the "src/java/xml" directory. 
Comment 3 Sonali Kochar 2008-08-06 21:48:07 UTC
What did you select in "To Package"?..Do you see a "web.xml" in the drop down box?