ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: Exec Class cast exception
Date Wed, 09 Aug 2000 23:05:14 GMT
I've started a discussion in Ant-Dev for this issue.

--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: Cory Wandling [mailto:cory@ObjectDynamics.com]
> Sent: Thursday, 10 August 2000 4:47
> To: ant-user@jakarta.apache.org
> Subject: Re: Exec Class cast exception
>
>
> Sorry, I am using the latest RELEASED version.
>
> ----- Original Message -----
> From: Doremieux, Olivier <Olivier.Doremieux@fc.celera.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Wednesday, August 09, 2000 1:14 PM
> Subject: RE: Exec Class cast exception
>
>
> > I got yesterday version (2000-08-08/)
> > The ExecTask is in main/org/apache/tools/ant/taskdefs
> >
> > Olivier
> >
> > -----Original Message-----
> > From: Cory Wandling [mailto:cory@objectdynamics.com]
> > Sent: Wednesday, August 09, 2000 11:20 AM
> > To: ant-user@jakarta.apache.org
> > Subject: Re: Exec Class cast exception
> >
> >
> > I see no ExecTask class in what I have.  I got the new stuff a couple of
> > days ago.
> >
> > Cory
> >
> > ----- Original Message -----
> > From: Doremieux, Olivier <Olivier.Doremieux@fc.celera.com>
> > To: <ant-user@jakarta.apache.org>
> > Sent: Wednesday, August 09, 2000 1:02 PM
> > Subject: RE: Exec Class cast exception
> >
> >
> > > The Object I am getting back from project.createTask("exec"); is an
> > > ExecTask.
> > > SignJar is doing it the exact same way, so there might be a
> problem with
> > > SignJar.
> > >
> > > Olivier
> > >
> > > -----Original Message-----
> > > From: Cory Wandling [mailto:cory@objectdynamics.com]
> > > Sent: Wednesday, August 09, 2000 11:06 AM
> > > To: ant-user@jakarta.apache.org
> > > Subject: Re: Exec Class cast exception
> > >
> > >
> > > Try debugging it by getting back an Object asking for its
> class and then
> > > printing that out.
> > >
> > > final Object cmd = project.createTask("exec");
> > > System.out.println(cmd.getClass().getName());
> > >
> > > Cory
> > >
> > > ----- Original Message -----
> > > From: Doremieux, Olivier <Olivier.Doremieux@fc.celera.com>
> > > To: <ant-user@jakarta.apache.org>
> > > Sent: Wednesday, August 09, 2000 12:44 PM
> > > Subject: Exec Class cast exception
> > >
> > >
> > > > I am trying to create my own task, but with the following line I am
> > > getting
> > > > a ClassCastException. What am I doing wrong
> > > >
> > > >     final Exec cmd = (Exec)project.createTask("exec");
> > > >
> > > > java.lang.ClassCastException: org.apache.tools.ant.taskdefs.ExecTask
> > > >         at signtoolTask.execute(signtoolTask.java:21)
> > > >         at org.apache.tools.ant.Target.execute(Target.java:132)
> > > >         at org.apache.tools.ant.Project.runTarget(Project.java:720)
> > > >         at
> org.apache.tools.ant.Project.executeTarget(Project.java:451)
> > > >         at
> org.apache.tools.ant.Project.executeTargets(Project.java:425)
> > > >         at org.apache.tools.ant.Main.runBuild(Main.java:298)
> > > >         at org.apache.tools.ant.Main.main(Main.java:119)
> > > >
> > > > Thank you
> > > >
> > > > Olivier
>
>


Mime
View raw message