ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike McNally ...@works.com>
Subject Re: Custom Task Error
Date Thu, 06 Mar 2003 17:24:53 GMT
> Without knowing what the T3Client code does, are there any obvious
> reasons why working code should fall over when placed in a user
> written task or why just running the code via <java...> would
> appear to effect Ant after it returns unless it is run in another
> JVM ?

Class loader issues can cause that.  The second possibility you
describe is almost certainly impossible, unless the program in 
the other JVM writes files the Ant process later picks up.

Ant will load your task code via the system classloader if your
task code is on your system classpath.  If not, then it loads
it with an instance of AntClassLoader.  If your weblogic stuff
has its own class loader (probably does), then strange things
can happen at the boundaries.

Try adding debug code to your Ant task class like this:

  log("Loader is: " + this.getClass().getClassLoader().getClass().getName());


--
[ you are my main foo ] Mike McNally -- m5@works.com

Mime
View raw message