Bug 114147 - Enable running ajc on single binary file
Summary: Enable running ajc on single binary file
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-28 12:49 EDT by Michelle Xue CLA
Modified: 2007-10-23 11:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michelle Xue CLA 2005-10-28 12:49:25 EDT
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.
Comment 1 Matthew Webster CLA 2005-11-15 04:11:48 EST
Have you tried refining your pointcut e.g. "&& within(org.myorg.myclass)"?
Comment 2 Michelle Xue CLA 2005-11-15 12:15:41 EST
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.
Comment 3 Matthew Webster CLA 2005-11-17 05:57:59 EST
This is a request for a workaround to bug 114146.
Comment 4 Matthew Webster CLA 2005-11-21 09:37:04 EST
Please see Ant suggestion in bug 114146.