Community
Participate
Working Groups
I have trouble to make AJDT work with Perforce plug-in (P4WSAD). The problem is that AspectJ output folder is not marked as Derived Resource. Because of it P4WSAD trying to add every compiled file into change request. Can you call IResource.setDerived(true) for the compilation output folder, please? The work around is add this folder to the Ignore list. Thank you,
Will investigate further. Is it a requirement that the output folder *and* all of its children be marked as derived, or is it sufficient for the output folder only to be marked as derived?
The requirement is only for the root folder.
Hmmm...seems that Java projects do *not* have the output folder itself as derived, but all of its children are derived. In AspectJ, files are not marked as derived. I think the proper behavior is to replicate the behavior of Java projects.
However, the creation of files and folders during compilation is the job of the AspectJ compiler, not AJDT. Andy, is this something that you can do in the compiler? When creating files and folders during a build, simply call resource.setDerived(true).
assign it to me and i'll look at it at some point
after a bit of further thinking on this I'm not sure I'll be able to do much as I don't have the IResource for the files I create, I create them directly on the disk using java.io. The best I can do is either call AJDT back on creating each file for it to do 'whatever' for the files being created, or return a big list of them at the end. Or do you just need the first level of files/folders below the root output folder?
To Mimic the behavior of the JavaBuilder, this needs to be done for *every* file and folder that has been created by the compiler (including non-Java resources copied over), but not for the output folder root itself. I don't have a preference for whether it happens as a call back or in batch after the compile.
I should be able to squeeze this into the 1.6.2 release that is coming out on January 5.
Fix has been committed to head (non-weaving branch) with tests. Will be out in next dev build available at the update site: http://download.eclipse.org/tools/ajdt/34/dev/noweaving