Re: Using SCP and Email Ant targets

Thomas C Amundsen III <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <1241189989.5822.3.camel@avalokiteshvara>
Yes, I tried that as well, but it did not fix the problem.

However, I did resolve the issue. I fixed it by downloading my own
version of Ant (I'm running CC on a machine where Ant is contained in a
directory I don't have permission to write to) and putting the jar files
in this distribution of Ant's lib/. Then, I modified the CC Ant task
with antscript and antWorkingDir attributes to point into this
distribution of Ant. This worked.

Upon further inspection, I realized that CruiseControl (at least the
binary distribution) comes with its own version of Ant. I'm willing to
bet that this is the version it was using, and that if I put the jars in
cruise-control/apache-ant/lib, that it would work as well. But, as it is
working fine as I've set it up now, I'm not going to touch it!

Thanks for your help Jani.

- Tom

On Fri, 2009-05-01 at 17:07 +0300, Jani Mikkonen wrote:
> Im not 100% sure but i do have faint recollection about setting the
> classpath .. You basicly do not put the directory where the jars are
> into the classpath but you put the whole jar file. But when you have
> *.class files, you just put the directory ..
> 
> For example, if you have a file  /home/user/lib/stuff.jar  that you
> need to add to your classpath  you should propably try something like
> this:
> 
> export CLASSPATH=${CLASSPATH}:/home/user/lib/stuff.jar
> 
> 
> Could this be the case ?
> 
> 
> 
> On Fri, May 1, 2009 at 1:30 AM, Thomas Amundsen <[email protected]> wrote:
> > Hi all,
> >
> > I was having trouble trying to do SCP and Email CruiseControl commands, so I just created Ant targets that I can run just fine. In order to get them working, I put some jar files into ~/.ant/lib. However, when I go to run an ant task within cruise control that calls one of these targets, I am getting errors saying that it couldn't find the library that it needed. The funny thing is that it told me to fix it by putting the appropriate jars into one of three places, one of them being ~/.ant/lib. I also set my CLASSPATH variable to include .ant/lib.
> >
> > So, I'm not quite sure what is going on, but I would really like to get this to work. Does anyone have any clue what is going on?
> >
> > - Tom
> >
> >
> > ------------------------------------------------------------------------------
> > Register Now & Save for Velocity, the Web Performance & Operations
> > Conference from O'Reilly Media. Velocity features a full day of
> > expert-led, hands-on workshops and two days of sessions from industry
> > leaders in dedicated Performance & Operations tracks. Use code vel09scf
> > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> > _______________________________________________
> > Cruisecontrol-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
> >
> 
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations 
> Conference from O'Reilly Media. Velocity features a full day of 
> expert-led, hands-on workshops and two days of sessions from industry 
> leaders in dedicated Performance & Operations tracks. Use code vel09scf 
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.