Classpath problems using the scp task



I want to add an scp task to my build script. I'm aware that it
depends on some nonstandard jars, and I have those jars.

Here is the problem. I work in a company with a number of developers.
Our build script is under version control. I need to modify the script
such that it will work for everyone in my group, not just me, and
without having to go to each person's computer and install jar files.

Ant's documentation says I can put the extra jars in one of four
places:

(1) ANT_HOME/lib. This would only solve the problem for me.
(2) /Users/myname/.ant/lib. Again, this only helps me.
(3) On the command line with a -lib parameter. This would mean I'd
have to explain to everyone in my team that they have to type a giant
command line where they now just type "ant". Unworkable.
(4) In the CLASSPATH environment variable. Another way that won't
work.

The jars are checked into my project in a lib directory. I know
exactly where this lib directory is. The problem is that Ant (it would
seem) does not give me a way to specify this path when I invoke the
task.

I find it difficult to believe that I'm the first person who's had
this problem. Surely there's some way to solve it?

Thanks,
Frank

.



Relevant Pages

  • Re: Classpath problems using the scp task
    ... depends on some nonstandard jars, ... Our build script is under version control. ... On the command line with a -lib parameter. ... command line where they now just type "ant". ...
    (comp.lang.java.softwaretools)
  • Re: How to copy one jar inside another
    ... up script that sets HOME as the current dir and adds all the jars in say, ... HOME/lib to your classpath, think I remember reading somewhere that java ... dir rather than having to specify all the jars individually as well. ... click or "if that wasn't required" start from a script i.e. set your jars on ...
    (comp.lang.java.help)
  • Re: time
    ... In my script, this is the point where I start pouring boiling oil into the ... big jars. ... Ali Baba ...
    (uk.people.silversurfers)