Re: ant global properies (variable)

2008-08-27 Thread mindspin311
Here's a simple version of what I'm trying to do. -- View this message in context: http://www.nabble.com/ant-global-properies-%28variable%29-tp19184177p19186036.ht

ant global properies (variable)

2008-08-27 Thread mindspin311
I have a unit-test task which uses foreach to break up a list of unit test files, and runs the task 'parse' on each file. When I receieve an error code, or an empty log file is created, I want to set a certain property to true inside the parse task. I was hoping this would work, but as soon as th

javadoc from class or jar files?

2008-07-31 Thread mindspin311
Can I create documentation from class or jar files? I tried both. Putting a list of jars in the classpath, and unjarring and putting the class files themselves as the classpath. Both times I was including actual source I was building too, but want to generate documentation for the dependencies. I

Re: hooks/post-commit not being called when commiting with Ant.

2008-07-30 Thread mindspin311
he output. That will help you determine whether or not the hook > is actually firing. > > Copy your repository, and startup another server instance, and use > that as a test bed. I have a special "xdev" repository defined in > Apache for this type of experimenting. > >

Re: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-29 Thread mindspin311
Found a solution. Have to go into sudoers and comment 'requiretty' Doesn't seem to be a way around this other than commenting out this line. krzysieq wrote: > > Forgot to close the double quote at the end of arg line... > > 2008/7/25 Krzysieq <[EMAIL PROTECTED]> > >> Not sure, but maybe this

hooks/post-commit not being called when commiting with Ant.

2008-07-28 Thread mindspin311
What I'm doing is tagging a build in an ant script using a user 'build'. This is an actual user, and not something like apache or someone without a shell account. I've got automated builds triggered using Atlassian Bamboo when done from the command line or doing a commit in a third party app like

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-24 Thread mindspin311
meh.. I give up. ssh'in into root by adding build's pub key to root's authorized_keys' file. Systems might have some problems with it, but it works for now. -- View this message in context: http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-t

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-23 Thread mindspin311
ll script: > ./antRunAsync.sh ./run.sh > > In this way I never use the -t argument and nohup works properly from > the run script. Maybe a similar setup would work for you? > > > -Original Message- > From: mindspin311 [mailto:[EMAIL PROTECTED] > Sent: Tuesday

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread mindspin311
/marc.info/?l=ant-user&m=120128316829325&w=2 > > > -Original Message- > From: mindspin311 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2008 11:08 AM > To: user@ant.apache.org > Subject: RE: sshexec (running remote commands with sudo) forced > psuedo-t

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread mindspin311
ne. ruel loehr wrote: > > why can't you just do an exec with the command ssh -t .? > > -Original Message- > From: mindspin311 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2008 10:37 AM > To: user@ant.apache.org > Subject: sshexec

sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread mindspin311
I'm trying to mimic this command in ant: [EMAIL PROTECTED]ssh -t [EMAIL PROTECTED] sudo /sbin/service httpd restart build has password-less ssh access to deploy's accounts. Deploy also has password-less sudoers access to run any root owned apps. This is the only way I can do this without bein

extracting revision number using ant-contrib regexp

2008-04-18 Thread mindspin311
I'm using ant-contrib's propertyregex task to try to extract a revision number from the repository without making any changes to a sandbox, so svn up is no good... I'm using this for the regexp attribute to parse the output of svn info: regexp="Path: ([^\.]*)\n

PHPUnit testing

2008-04-07 Thread mindspin311
I want to do some phpunit testing using I can't do this if I'm not gonna know the names of the files to test. All I know is that they end with *Test.php where * can be whatever.. I just want to be able to generate a string of all of these files in the current and all subdirectories. Something l

sudo permissions with scp

2008-04-01 Thread mindspin311
I'm using scp to transfer a file to a server. I need to gain access of the user deploy in order to to this (sudo su deploy) Is there a way to do this inside the scp task? I currently had to ask a systems guy at my work to give me temp permissions to use deploy under my current name, but was wonder

Re: Need to find current directory (not entire path)

2008-03-31 Thread mindspin311
ow, how do I extract just the 100? Is there any built in functionality that will solve this, or do I have to make my own task to handle something like this? mindspin311 wrote: > > If I have the following path: /blah/foo/trunk/ > > I want to be able to assign just "trunk

Need to find current directory (not entire path)

2008-03-31 Thread mindspin311
If I have the following path: /blah/foo/trunk/ I want to be able to assign just "trunk" to a property, similar to dirname: This returns the whole path. I just want it to return the last element of a directory. -- View this message in context: http://www.nabble.com/Need-to-find-current

moving from server to server

2008-03-30 Thread mindspin311
First let me say, sorry for posting on the dev board. I'll try to delete it after submitting this post. This is all being done in Unix for tarring a directory of php files. The process I'm trying to do is: given a folder you're either in or are sending as a command line argument, 1. tar it 2.