Community
Participate
Working Groups
Currently, there are only two options to run ajc on binary files, either a jar file or a directory. Sometimes I need to run ajc on a single binary file in a directory, but since that directory have other files, ajc will apply the other files too. If there is a option to run ajc on a single binary file, it will be very useful.
Have you tried refining your pointcut e.g. "&& within(org.myorg.myclass)"?
The reason I want to run it on single file is that when ajc crushes on a file in the directory, it will stop injecting other files. I am working on the legacy binary apps, where ahead of time, I have no knowledge about which file will fail ajc and need to skip. So I have to programmatically run ajc on each file in a directory, and so that if ajc fails on one file, my program can continue run ajc on other files. If when ajc crashes on one file, it can still continue on other files, it will solve my problem too.
This is a request for a workaround to bug 114146.
Please see Ant suggestion in bug 114146.