ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: refactoring a large project
Date Sat, 20 Jul 2002 20:27:58 GMT
Not at all ;-)

I'm talking about your own little Java class with a main (e.g.
com.ncs.AntInterceptor). Write it, compile it, add it a place on the
classpath where it can be found (in $ANT_HOME/lib something.jar for
example), and append com.ncs.AntInterceptor to ANT_OPTS.

When the ant.{bat|sh} script calls ant, it does:

java ... $ANT_OPTS $ANT_ARGS

but unbeknownst to it, it will in fact call your com.ncs.AntInterceptor with $ANT_ARGS as argument. You do whatever you want
with the arguments, and turn around and call ant.

Is that clearer? --DD

-----Original Message-----
From: Shackelford, John-Mason []
Sent: Saturday, July 20, 2002 3:22 PM
To: 'Ant Users List'
Subject: RE: refactoring a large project


Ah, great idea! You are speaking of: 

 -inputhandler <class>  the class which will handle input requests


The properties file is in a well known location, but even if it weren't I
could use java.util.PropertyResourceBundle to load it from anywhere on the

John-Mason Shackelford

Software Developer
NCS Pearson - Measurement Services
2510 North Dodge St.
Iowa City, IA 52245

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message