[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-user
Subject: RE: taskdef
From: "Radha Sangal" <Radha.Sangal () pega ! com>
Date: 2004-11-30 17:47:00
Message-ID: 37D311729CFBE4469223D519F60703AA068328D8 () exchus1 ! rpega ! com
[Download RAW message or body]
Correct, that is what we are doing but the format which the core task gives the result is manipulated in the custom task , that's all...
There is a new problem arising in ant 1.6 .. pls give suggestion ...
C:\apache-ant-1.6.1>echo %ANT_HOME%
C:\apache-ant-1.6.1
C:\apache-ant-1.6.1>echo %PATH%
C:\WINDOWS;C:\WINDOWS\system32;C:\j2sdk1.4.2_01\bin;C:\oracleHome_client\ora92\b
in;C:\oracleHome_client\ora92\jre\1.4.2\bin\client;C:\oracleHome_client\ora92\jr
e\1.4.2\bin;C:\IBM\WebSphere MQ\Java\lib;C:\apache-ant-1.6.1\bin;C:\oracleHome_c
lient\ora92\bin;C:\IBM\WebSphere MQ\bin;C:\IBM\WebSphere MQ\WEMPS\bin;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;C:\apache-ant-1.6.1\bin;.
C:\apache-ant-1.6.1>ant
java.lang.InstantiationException: org.apache.tools.ant.Main
at java.lang.Class.newInstance0(Class.java:293)
at java.lang.Class.newInstance(Class.java:261)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
-----Original Message-----
From: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com]
Sent: Tuesday, November 30, 2004 11:24 AM
To: Ant Users List
Subject: RE: taskdef
Radha,
this is slightly off-topic but from your post I assume
that you are trying to generate a diff report between
two cvs tags. If I am right, Ant has <cvstagdiff> task
that does the job and outputs its result in XML file,
so there is no need to write a custam Ant task. If you
want you can take a look at it and see if it is useful
for you.
--- Radha Sangal <Radha.Sangal@pega.com> wrote:
> Look at this ...... when I set the classpath to
> point to my jar , I end up messing with the ant
> -version !!!
>
>
> C:\DiffReport_Scripts>ant -version
> Apache Ant version 1.6.1 compiled on February 12
> 2004
> C:\DiffReport_Scripts>manualcvsdiffs.bat
>
> C:\DiffReport_Scripts>set
> CLASSPATH=prconfig;lib;lib/log4j-1.2.8.jar;lib/xala
>
ar;lib/pr3native.jar;lib/pr3private.jar;lib/pr3public.jar;lib/icu4j_2_6_1.jar
>
b/concurrent-1.3.2.jar;lib/mail.jar;lib/activation-1.0.2.jar
>
> C:\DiffReport_Scripts>set
> CLASSPATH=prconfig;lib;lib/log4j-1.2.8.jar;lib/xala
>
ar;lib/pr3native.jar;lib/pr3private.jar;lib/pr3public.jar;lib/icu4j_2_6_1.jar
>
b/concurrent-1.3.2.jar;lib/mail.jar;lib/activation-1.0.2.jar;lib/msbase.jar;l
> mssqlserver.jar;lib/msutil.jar
>
> C:\DiffReport_Scripts>cmd /c ant -buildfile
> manualcvsdiffs.xml
> java.lang.InstantiationException:
> org.apache.tools.ant.Main
> at
> java.lang.Class.newInstance0(Class.java:293)
> at
> java.lang.Class.newInstance(Class.java:261)
> at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
>
> C:\DiffReport_Scripts>ant -version
> java.lang.InstantiationException:
> org.apache.tools.ant.Main
> at
> java.lang.Class.newInstance0(Class.java:293)
> at
> java.lang.Class.newInstance(Class.java:261)
> at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
>
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de
> [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: Tuesday, November 30, 2004 11:10 AM
> To: user@ant.apache.org
> Subject: AW: taskdef
>
> Alternatively: create a JAR containing that class
> and place that in
> ${user.home}/.ant/lib then you dont need a
> <classpath> on the
> <taskdef>.
>
> That directory is included in Ant´s classpath.
>
>
> Jan
>
> > -----Ursprüngliche Nachricht-----
> > Von: Radha Sangal [mailto:Radha.Sangal@pega.com]
> > Gesendet am: Dienstag, 30. November 2004 17:06
> > An: Ant Users List
> > Betreff: RE: taskdef
> >
> > My lib dir was on the same level as the dir which
> contained
> > the ant script
> > C:\0402\lib
> > C:\0402\DiffReport_Scripts\ant-script.xml
> >
> > I included the lib inside the scripts dir and got
> rid of that
> > error but now I have a new one coming :(
> >
> > java.lang.InstantiationException:
> org.apache.tools.ant.Main
> > at
> java.lang.Class.newInstance0(Class.java:293)
> > at
> java.lang.Class.newInstance(Class.java:261)
> > at
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
> > at
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
> >
> > -----Original Message-----
> > From: Charles Daniels [mailto:cjd4@yahoo.com]
> > Sent: Tuesday, November 30, 2004 10:35 AM
> > To: 'Ant Users List'
> > Subject: RE: taskdef
> >
> > You also need to include in your <classpath> any
> jars that PRTagDiff
> > depends upon. Since your class is a Task (I
> assume), I believe that
> > means you need to include the ant jar file at a
> minimum since you are
> > specifying your own classpath to taskdef. So it's
> probably
> > not your own
> > class that taskdef can't find, but some dependency
> that it cannot find
> > (perhaps the ant Task class).
> >
> > > -----Original Message-----
> > > From: Radha Sangal
> [mailto:Radha.Sangal@pega.com]
> > > Sent: Tuesday, November 30, 2004 8:25 AM
> > > To: Ant Users List
> > > Subject: RE: taskdef
> > >
> > > yes
> > >
> > > -----Original Message-----
> > > From: Jan.Materne@rzf.fin-nrw.de
> > [mailto:Jan.Materne@rzf.fin-nrw.de]
> > > Sent: Tuesday, November 30, 2004 10:23 AM
> > > To: user@ant.apache.org
> > > Subject: AW: taskdef
> > >
> > > Is there a file named
> > >
>
C:\0402\lib\com\util\infrastructure\ant\tasks\PRTagDiff.class
> ?
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Radha Sangal
> [mailto:Radha.Sangal@pega.com]
> > > > Gesendet am: Dienstag, 30. November 2004 16:19
> > > > An: Ant Users List
> > > > Betreff: RE: taskdef
> > > >
> > > > Thanks, but it did not work , I did the
> following for the
> > > > class in lib directory...
> > > >
> > > > <taskdef name="prtagdiff"
> > > >
>
classname="com.util.infrastructure.ant.tasks.PRTagDiff">
> > > > <classpath>
> > > > <fileset dir="C:\0402\lib\"/>
> > > > </classpath>
> > > >
> > > > </taskdef>
> > > >
> > > > I get the error:
> > > > taskdef class
> com.util.infrastructure.ant.tasks.PRTagDiff
> > > > cannot be found
> > > >
> > > > -----Original Message-----
> > > > From: Jan.Materne@rzf.fin-nrw.de
> > > [mailto:Jan.Materne@rzf.fin-nrw.de]
> > > > Sent: Tuesday, November 30, 2004 10:07 AM
> > > > To: user@ant.apache.org
> > > > Subject: AW: taskdef
> > > >
> > > > Should be a ClassDefNotFoundException (or so).
> > > > That´s why Ant uses another classpath for
> itself than for
> > running a
> > > > program. So you have to provide the info to
> Ant where the lib is:
> > > >
> > > > <taskdef ...>
> > > > <classpath><fileset dir="..."/> </>
> > > > </>
> > > >
> > > >
> > > > Jan
> > > >
> > > >
> > > > > -----Ursprüngliche Nachricht-----
> > > > > Von: Radha Sangal
> [mailto:Radha.Sangal@pega.com]
> > > > > Gesendet am: Dienstag, 30. November 2004
> 16:03
> > > > > An: Ant Users List
> > > > > Betreff: taskdef
> > > > >
> > > > > Hi,
> > > > >
> > > > > I am a new bee in Ant. I am using taskdef as
> follows
> > > > > <taskdef name="prtagdiff"
> > > > >
>
classname="com.util.infrastructure.ant.tasks.PRTagDiff"/>
> > > > >
> > > > > I have a lib dir with the same dir structure
> but still when I
> > > > > build it,
> > > > > the class is not visible , is there any
> classpath/path
> > > > > setting for this
> > > > > task ?
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic