Community
Participate
Working Groups
I'm trying to create a special jsp compilation servlet in Tomcat 4.x that uses the aspectj compiler. I can plug in the compiler adapter, but I don't have control of the ant code they use to invoke the compiler, so I'd like to use an environment variable to do this (apparently the only mechanism they do support). I'm doing this so I can pass an aspectpath in to weave aspects into the compiled jsp servlet.
Done for 1.1.1. To rewrite the command-line arguments, specify an ICommandEditor class name either in the environment or dynamically in the task invocation. i.e., implement ICommandEditor in com.company.CommandEditor... ------ package org.aspectj.tools.ant.taskdefs; public interface ICommandEditor { String[] editCommand(String[]); } ------ define the environment variable on the command line: -Dorg.aspectj.tools.ant.taskdefs.AjcTask.COMMAND_EDITOR=com.company.CommandEditor or specify it in the task invocation: <iajc ... commandEditorClass="com.company.CommandEditor" (task specifications take precedence)
updated target milestone field to 1.1.1