You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by KrustyDerClown <Kr...@gmx.de> on 2005/08/03 15:03:27 UTC

Pass Argument to CVS Command

Hello,

how can i pass the argument "-d 2005-10-10<2005-12-12" to the cvs command 
"log" ?

<cvs cvsRoot="${cvs.root}" command="log" dest="${cvs.log.dir}" 
failonerror="yes" >
<commandline>
<argument line="${cvs_log_command}"/>
</commandline>
</cvs>

The problem is the "<" symbol. Is that possible that i use this symbol in 
the argument line ?

And another question: Can i use the cvs command "rlog" also in ANT ? When i 
start my build file with -debug i see that ANT will call CVS without this 
command .. then i get an error ( consequently ).

Thank you for your support.

Greets Oliver 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: Adding to ant's classpath from an ant build script

Posted by Moran Ben-David <mo...@place-base.com>.
Thank you, Antoine.  I used the following worked like a charm.


Moran

> -----Original Message-----
> From: Antoine Levy-Lambert [mailto:antoine@gmx.de]
> Sent: Wednesday, August 03, 2005 12:17 PM
> To: Ant Users List
> Subject: Re: Adding to ant's classpath from an ant build script
> 
> Hello Moran,
> 
> if your use case does not bring you in the delegating class loader case,
> you can use the classpath attribute of the <taskdef/> task (actually
> documented under typedef, because taskdef is an extension of <typedef/>).
> 
> Cheers,
> 
> Antoine
> 
> > --- Ursprüngliche Nachricht ---
> > Von: "Moran Ben-David" <mo...@place-base.com>
> > An: "'Ant Users List'" <us...@ant.apache.org>
> > Betreff: Adding to ant's classpath from an ant build script
> > Datum: Wed, 3 Aug 2005 11:56:34 -0400
> >
> > I have a custom Ant task in a jar file (custom.jar) that I would like to
> > use
> > in my ant build.xml.
> >
> > However, I would like to add this jar to the ant runtime only during the
> > execution of my script.  Is there a way I can tell ant to include this
> jar
> > (/home/me/custom.jar) in its classpath from my build.xml?
> >
> > I don't want to copy the file to the ant/lib directory.  Instead, I just
> > want to expose it for my script alone.
> >
> > Thanks in advance,
> > Moran Ben-David
> >
> >
> > ---------------------------------------------------------------------
> > 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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Adding to ant's classpath from an ant build script

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Moran,

if your use case does not bring you in the delegating class loader case,
you can use the classpath attribute of the <taskdef/> task (actually
documented under typedef, because taskdef is an extension of <typedef/>).

Cheers,

Antoine

> --- Ursprüngliche Nachricht ---
> Von: "Moran Ben-David" <mo...@place-base.com>
> An: "'Ant Users List'" <us...@ant.apache.org>
> Betreff: Adding to ant's classpath from an ant build script
> Datum: Wed, 3 Aug 2005 11:56:34 -0400
> 
> I have a custom Ant task in a jar file (custom.jar) that I would like to
> use
> in my ant build.xml.
> 
> However, I would like to add this jar to the ant runtime only during the
> execution of my script.  Is there a way I can tell ant to include this jar
> (/home/me/custom.jar) in its classpath from my build.xml?
> 
> I don't want to copy the file to the ant/lib directory.  Instead, I just
> want to expose it for my script alone.
> 
> Thanks in advance,
> Moran Ben-David
> 
> 
> ---------------------------------------------------------------------
> 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


Adding to ant's classpath from an ant build script

Posted by Moran Ben-David <mo...@place-base.com>.
I have a custom Ant task in a jar file (custom.jar) that I would like to use
in my ant build.xml.

However, I would like to add this jar to the ant runtime only during the
execution of my script.  Is there a way I can tell ant to include this jar
(/home/me/custom.jar) in its classpath from my build.xml?

I don't want to copy the file to the ant/lib directory.  Instead, I just
want to expose it for my script alone.

Thanks in advance,
Moran Ben-David


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Pass Argument to CVS Command

Posted by Andrew Goktepe <an...@gmail.com>.
For the '<' char you can use '&lt;'
 Ant should take whatever you give for the 'command' value and use it for 
the CVS command line. For rlog you could do the following:
 <cvs cvsRoot="${cvs.root}" command="rlog <args>" dest="${cvs.log.dir}" 
failonerror="yes"/>
 -Andrew

 On 8/3/05, KrustyDerClown <Kr...@gmx.de> wrote: 
> 
> Hello,
> 
> how can i pass the argument "-d 2005-10-10<2005-12-12" to the cvs command
> "log" ?
> 
> <cvs cvsRoot="${cvs.root}" command="log" dest="${cvs.log.dir}"
> failonerror="yes" >
> <commandline>
> <argument line="${cvs_log_command}"/>
> </commandline>
> </cvs>
> 
> The problem is the "<" symbol. Is that possible that i use this symbol in
> the argument line ?
> 
> And another question: Can i use the cvs command "rlog" also in ANT ? When 
> i
> start my build file with -debug i see that ANT will call CVS without this
> command .. then i get an error ( consequently ).
> 
> Thank you for your support.
> 
> Greets Oliver
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>