Re: Classpath problems using the scp task



On Jul 13, 12:06 am, flarosa <fr...@xxxxxxxxxxxxxxx> wrote:
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.

(5) Check in ant in your project (including the extra jar file(s)) and
use that ant while working in the project. That way you know that
everybody will run the same ant version have access to the same tasks
thus all targets will work for all project members.
--
Olle Sundblad

.



Relevant Pages

  • Re: path to ant; ant launcher
    ... ..ant folder in /home/thufir. ... [thufir@localhost java]$ ant ... 153 # Build local classpath using just the launcher in non-rpm mode ... 158 # request optional jars and their dependencies via the ...
    (comp.lang.java.help)
  • Re: Ants
    ... >There was a whole piece on ant and borax in today's Post. ... Pack small jars ... Punch holes in the jar lids and screw them ... Place near ant hills or burry the ant trip ...
    (rec.gardens.orchids)
  • Re: problem compiling project, classpath in xml ".classpath" ""
    ... will be much easier to sort which jars ... with parameters on the command line. ... to understand the ant build tool better, ... But I can do it without it a parser of that sort of thing. ...
    (comp.lang.java.programmer)
  • Ant SignJar task problem in 1.7.0
    ... Ant 1.7.0. ... Now we discovered that our JARs aren't signed correctly any more. ... Enter Passphrase for keystore: ...
    (comp.lang.java.programmer)
  • Re: Any easy way to run a Swing application as standalone?
    ... the OP ("original post") is the first message ... > Java HotSpotClient VM ... > As for my command lines there is no secret about it, it is right there on my ... > exhausting to have to type all the darn JARs and directories in a command ...
    (comp.lang.java.gui)