Re: ssh exectuion failure from build task in

2010-03-01 Thread Robert Anderson
This is probably not an ant issue. When you sshexec something on the remote host, the environment is not setup the same as if you are logged in. Your .profile is not sourced and your PATH and other variable can be different. To troubleshoot this, I suggest running the command outside of ant like th

Re: What's Up with FTP task?

2010-03-01 Thread Robert Anderson
Or try using the scp task. -Rob Anderson On Sat, Feb 27, 2010 at 11:21 AM, Antoine Levy-Lambert wrote: > Hi, > > commons-net-2.0 could be the culprit. Try with commons-net-1.4.0. > > I have looked at our library dependencies manual page [1] > > Regards, > > Antoine > > [1] http://ant.apache.org/m

Re: How to stop receiving postings but stay subscribed? Web only

2010-01-26 Thread Robert Anderson
Filter your incoming emails. -Rob A On Tue, Jan 26, 2010 at 6:15 AM, BenXS wrote: > > But this way I could NOT send any questions. > Your suggestion is a read-only solution. > > It seems to me that all Apache Mailing-Lists have NO > "stop-mail-devlivery-but-stay-subscribed" option > > :-( > > or

Re: Ho Do I ftp put files only if the don't exist at target

2009-12-02 Thread Robert Anderson
Try rsync. On Wed, Dec 2, 2009 at 5:11 AM, Nordmeyer wrote: > > Hi, > I would like to update a ftp remote site with files that exist locally > ignoring files that already exist at the remote site - only comparing by > file name. > > I Found this posting > http://old.nabble.com/forum/ViewPost.j

Re: Slash issue in ANT script

2009-11-27 Thread Robert Anderson
There are several ways to handle this. 2 possibilities are... 1. Use relative paths. 2. Set an environment variable, like SERVER_PATH. Then use the environment variable in Ant. -Rob A On Fri, Nov 27, 2009 at 10:38 AM, glenn opdycke-hansen wrote: > I agree that there are some things to be aware

Re: Ant API

2009-11-26 Thread Robert Anderson
For scp, Ant uses jsch... http://www.jcraft.com/jsch/ There are several examples in the source, or you could look at the scp ant tasks source. -Rob Anderson On Thu, Nov 26, 2009 at 8:13 AM, Rebhan, Gilbert < gilbert.reb...@huk-coburg.de> wrote: > > > -Original Message- > From: LukeS [mai

Re: Ant API

2009-11-25 Thread Robert Anderson
Actually the cvs ant task system.execs the cvs binary. You can probably find pure java cvs api to use. A quick search turned up this... http://www.jcvs.org/ For the database, I'm not sure what you are doing but there are some really great persistance layers worth looking at, like hibernate and iba

Re: task not accepting relative path

2009-11-02 Thread Robert Anderson
You need to use the wildcard in the includes attribute like this... I have tested that this works with the following... After running this target, all the files in **/Capital have an been touched. -Rob Anderson On Sat, Oct 31, 2009 at 11:06 AM, cvsusr wr

Re: SSL keystore export/import with ant tasks.

2009-10-30 Thread Robert Anderson
I don't believe there is a way to do this with pure Ant currently. As you mention, options are exec task or write your own task. The key to writing your own taks would be to find a java implementation of keytool. -Rob Anderson On Mon, Oct 12, 2009 at 11:51 PM, Max Danielsson wrote: > Hi, I've b

Re: if and conditions

2009-03-13 Thread Robert Anderson
You can also use the if and unless attributes of the target to control certain behavior. On Fri, Mar 6, 2009 at 10:59 AM, Scott Stark wrote: > >The task is part of the AntContrib package which is available > >from http://ant-contrib.sourceforge.net/>. Task descriptions are from > >

Re: ant clearcase task issue

2009-03-03 Thread Robert Anderson
The attribute is failonerr, not failonerr*or*. -Rob Anderson On Mon, Feb 23, 2009 at 8:50 AM, meher03 wrote: > > Hi > I am using ant 1.7.1. I am utilising the ant task ccmklabel within the > build.xml. > > According to the online documentation there is an attribute called > failonerror which ca

Re: SCP and SSHExec tasks

2008-11-26 Thread Robert Anderson
The scp task will not create remote directories. Also, there is no recursive option. Yes, you can specify a fileset, but the directory structure will not be preserved (as far as I know). If you are moving a bunch of files and want to preserve the directory structure, the best thing to do is... 1.

problem with exec

2008-11-05 Thread Robert Anderson
I am having a problem with the exec task. The command being executed works fine on the command line, but there is an error when trying to run it via ant. I have also looked at the permissions and everything should be good. Any help would be appreciated. Here is the debug output... Execute:Java13Co

Re: Using scp -- how to find or make a keyfile?

2008-08-19 Thread Robert Anderson
Can you post your ant build file (remove any passwords that may be in it), and the error message? If you want to use ssh keys for authentication, you need to do the following: 1. Generate a key pair... ssh-keygen -d 2. Copy the public key to the remote server. scp ~/.ssh/id_dsa.pub [EMAIL PROTECTE