Create a j2see project from ant. Don't map clean
action to the buildscript clean target. The Clean
action is now disabled in Build main menu. Set
mapping for Clean action, using project properties
panel, to the build script clean target. The
action is then disabled. There exists workaround
how to changed the action status. Switch the main
project to a other. And switch back main project
to the previous.
The IllegalArgument exception is thrown when the targed doesn't exist
in the ant script. See to the attachment.
Created attachment 16782 [details]
Freeform, not j2seproject.
Well there is no way currently to fire a change in the set of actions
supported by a project. No solution for D (would require an API
change). Anyway, as you found, the workaround is straightforward, and
there is no loss of functionality.
Can put in a temporary tweak to make the recovery smoother if you try
to run a disabled command (should then disable the action).
Minor robustness improvement as mentioned:
committed Up-To-Date 1.7
*** Issue 48783 has been marked as a duplicate of this issue. ***
*** Issue 50499 has been marked as a duplicate of this issue. ***
Note: proposed fix of issue #46886 would render this a P5 (probably)
since standard actions would always be enabled anyway.
*** Issue 52879 has been marked as a duplicate of this issue. ***
Skip it; with issue #46886, it doesn't matter much.