Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / July 2007

Tip: Looking for answers? Try searching our database.

Classpath problems using the scp task

Thread view: 
flarosa - 12 Jul 2007 23:06 GMT
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
Roedy Green - 13 Jul 2007 17:01 GMT
>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.

many tasks allow you to specify the classpath.  Does scp?

In the ENV classpath, does ant want ; or : separators or does it
handle both?

Can you echo the classpath inside your script?

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Olle - 15 Jul 2007 09:34 GMT
> 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.
[quoted text clipped - 14 lines]
> (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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.