Community
Participate
Working Groups
Build Identifier: 20110615-0604 Copying an *.ocl file to another source folder in the same project gives a warning: "The ressource is a duplicate of XXX/test.ocl and was not copied to the output folder." This makes sence. However, deleting the first original file does not remove the warning. Neither reopening the copied file nor changing and saving it does help. I can't get rid of this warning. Reproducible: Always Steps to Reproduce: 1. create a source folder "model" 2. create an ocl file "test.ocl" in that folder with some contents 3. create a source folder "model2" 4. copy the "test.ocl" to "model2" -> warning will be shown in the copy file 5. delete the "test.ocl" in "model" -> warning will still be present It seems to be essential that the folders are source folders.
I cannot reproduce this, with Xtext 2.0 or 2.0.1 with or without Xtext nature. I don't understand "warning will be shown in the copy file"; I presume you mean the project explorer not the file content. This kind of error probably comes from the Xtext builder or indexer, but in Indigo the Xtext nature is not applied by default so no builder. Eclipse OCL has no builder. I suggest reproducing with test.xtext and then report against Xtext.
CLOSED after a year in the RESOLVED state.