AW: How to execute a subtask conditionally if used several times

2005-06-15 Thread Jan.Materne
Maybe would better than a called ... Jan >-Ursprüngliche Nachricht- >Von: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 15. Juni 2005 19:34 >An: Ant Users List >Betreff: Re: How to execute a subtask conditionally if used >several times > >You can put inside . >

AW: Subant - selecting projects to build

2005-06-15 Thread Jan.Materne
Using a selector would be the finest, as you said. The problem is that all selectors check the given file. But your selector has to inspect a different one: - you want to select the module build.xml - you have to check the content of the module build.property Therefore you have to write your own s

Re: sshexec

2005-06-15 Thread luke
Hi, the problem is solved, I was not able to get sshexec to work with just the jsch jar file downloaded from jcraft. I found an ant-jsch.jar file in my netbeans4.1 tree and copied that to the ANT_HOME/lib directory, together with the downloaded jsch-0.1.20.jar file, I got sshexec working My con

Re: sshexec

2005-06-15 Thread luke
Hi, 15Jun2005 @ 23:26 [EMAIL PROTECTED] thusly spake > try a "jar -tvf" against that jsch jar. > have done that, here's the output, kr, Luke /~~~ 0 Thu Jun 16 12:45:14 CST 2005 META-INF/ 106 Thu Jun 16 12:45:12 CST 2005 META-INF/MANIFEST.MF 0 Thu Jun 16 1

Re: sshexec

2005-06-15 Thread eciramella
try a "jar -tvf" against that jsch jar. > Hi, > > 15Jun2005 @ 23:02 [EMAIL PROTECTED] thusly spake >> see my note earlier, I suspect you're not putting it in the correct ant >> home/lib directory. . . >> > > No, that's not it, > output of ant -diagnostics > > /~

Re: sshexec

2005-06-15 Thread luke
Hi, 15Jun2005 @ 23:02 [EMAIL PROTECTED] thusly spake > see my note earlier, I suspect you're not putting it in the correct ant > home/lib directory. . . > No, that's not it, output of ant -diagnostics /~~ --- Ant diagnostics report --- Apache

Re: sshexec

2005-06-15 Thread eciramella
see my note earlier, I suspect you're not putting it in the correct ant home/lib directory. . . > Hi, > > 15Jun2005 @ 17:34 Jacob, Anil - MWL thusly spake >> If it is ANT1.6+ rename the jsch-0.1.20.jar as ant-jsch.jar. > no, that didn't help, > >> What version of Ant are you using? -Rob A > > out

Re: sshexec

2005-06-15 Thread luke
Hi, 15Jun2005 @ 17:34 Jacob, Anil - MWL thusly spake > If it is ANT1.6+ rename the jsch-0.1.20.jar as ant-jsch.jar. no, that didn't help, > What version of Ant are you using? -Rob A output of ${ant.version} Apache Ant version 1.6.2 compiled on March 22 2005 kr, Luke > > > -Original Me

RE: sshexec

2005-06-15 Thread Jacob, Anil - MWL
If it is ANT1.6+ rename the jsch-0.1.20.jar as ant-jsch.jar. Anil -Original Message- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 3:22 PM To: Ant Users List Subject: RE: sshexec What version of Ant are you using? -Rob A > -Original Mes

RE: sshexec

2005-06-15 Thread Anderson, Rob (Global Trade)
What version of Ant are you using? -Rob A > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 15, 2005 3:16 PM > To: user@ant.apache.org > Subject: sshexec > > > Hi, > > I saw some posts on sshexec and decided to try and use it. > I put the j

RE: sshexec

2005-06-15 Thread Anderson, Rob (Global Trade)
What version of Ant are you using? -Rob A > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 15, 2005 3:16 PM > To: user@ant.apache.org > Subject: sshexec > > > Hi, > > I saw some posts on sshexec and decided to try and use it. > I put the j

Re: sshexec

2005-06-15 Thread eciramella
type "echo $ANT_HOME/lib" Make sure that's where you put that jsch jar. > Hi, > > I saw some posts on sshexec and decided to try and use it. > I put the jsch-0.1.20.jar in the ANT_HOME/lib directory, but can't get a > build.xml file to carry out the task. > > > > > command="cd > /home/joe; ls

RE: sshexec

2005-06-15 Thread S I
I think it's missing the attribute trust="yes" Try it and see if it works. Original Message Follows From: [EMAIL PROTECTED] Reply-To: "Ant Users List" To: user@ant.apache.org Subject: sshexec Date: Thu, 16 Jun 2005 07:45:57 +0930 MIME-Version: 1.0 Received: from mail.apache.org ([209.23

RE: Sshexec task, running commands using 'sudo'

2005-06-15 Thread Anderson, Rob (Global Trade)
Yeah, It's reasonable for the admins to be reluctant with this request. They should be aware that they only need to setup passwordless sudo for the few commands you need to run noninteractively via sshexec. I'm glad to hear you got it worked out. -Rob A > -Original Message- > From: S I

RE: Sshexec task, running commands using 'sudo'

2005-06-15 Thread S I
Thank you Rob. After I posted yesterday...our unix Admin did finally figured it out and now I can use the ssh task w/o requiring a password. I think they just didn't want to hand-over a passwordless Sudo over to me? Thanks again. :) Original Message Follows From: "Anderson, Rob (Glo

sshexec

2005-06-15 Thread luke
Hi, I saw some posts on sshexec and decided to try and use it. I put the jsch-0.1.20.jar in the ANT_HOME/lib directory, but can't get a build.xml file to carry out the task. I get: /home/joe/build.xml:11: Could not create task or type of type: sshexec. what am I doing wrong? Any help app

RE: Oracle, SQL Task, and XML

2005-06-15 Thread Anderson, Rob (Global Trade)
The sql task does not support all the same stuff that you might find in sqlplus. The query is run via jdbc driver. This may be the cause of the descrepency between what you see using ant and what you see using sqlplus. -Rob A > -Original Message- > From: Renick, Garrel [mailto:[EMAIL PR

Help on submitting a patch to ant

2005-06-15 Thread Tobias K. Tobiasen
Hello, As you properly know the junit task there are some classloading problems. See http://ant.apache.org/faq.html#delegating-classloader I have made a patch that solves these classloader problems. See http://issues.apache.org/bugzilla/show_bug.cgi?id=6606#c22 I would like to submit the patch.

RE: Sshexec task, running commands using 'sudo'

2005-06-15 Thread Anderson, Rob (Global Trade)
I recall seeing your post that you were not able to use sshexec even after your admin removed the requirement for a password when running sudo for the command you were trying to run. I have had success with this. I am able to use sshexec when sudo is configured to not require a password for the

Re: Question: List

2005-06-15 Thread David TROGDON
Hi Thats a pretty loaded question. I don't wnat to come off flipant but I would start with some very basic steps. First, Im not familiar with Websphere so I cant help you much there. ANT is pretty flexable and will certainly run under Windows. I would go to the ANT site, down load and install

Re: Detecting JDK Version using ANT

2005-06-15 Thread Alexey N. Solofnenko
Actually the best property is ${java.specification.version} it is just two digit version 1.4 or 1.5. - Alexey. Ivan Ivanov wrote: Hello, you can try with java.version property: $${java.version} is ${java.version} $${java.runtime.version} is ${java.runtime.version} Regar

Re: Detecting JDK Version using ANT

2005-06-15 Thread Alexey N. Solofnenko
Java sets ${java.vm.version} property with its version. - Alexey. Zarar Siddiqi wrote: Hi, Is there a clean way to detect what version of Java is being used when running a build file? Some possible solutions include: 1) parsing the JAVA_HOME variable to detect the version number 2) Checking

Re: Detecting JDK Version using ANT

2005-06-15 Thread Zarar Siddiqi
Thank you all. ${ant.java.version} and ${java.version} yield two different values. 1.5 and 1.5.0_01, respectively. I'm assuming ${ant.java.version} is the version Ant is using in case there are multiple JDK's installed on the system and ${java.version} queries the JAVA_HOME variable. Am I

RE: Question: List

2005-06-15 Thread RADEMAKERS Tanguy
Frank, Download and install the latest binary for windows. The included docco is excellent. Once you can write your own simple build files, a great way to learn is by examining existing (working!) build scripts, so grab some open source stuff and see if you can build it with ant, then peek at the

RE: Detecting JDK Version using ANT

2005-06-15 Thread RADEMAKERS Tanguy
java version: ${ant.java.version} >-Original Message- >From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 15, 2005 9:49 PM >To: user@ant.apache.org >Subject: Detecting JDK Version using ANT > >Hi, > >Is there a clean way to detect what ver

Re: Detecting JDK Version using ANT

2005-06-15 Thread Ivan Ivanov
Hello, you can try with java.version property: $${java.version} is ${java.version} $${java.runtime.version} is ${java.runtime.version} Regards Ivan --- Zarar Siddiqi <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a clean way to detect what version of Java > is being used w

Question: List

2005-06-15 Thread Frank Hansen
Dear All, Can some someone tell me the best way to get started on ANT under Windows I have websphere Studio - is that possible to compile some script to get familiar with the environment, or do I have to go LINUX. Not that Im not familiar but just dont feel like going from machine to machine, but

Detecting JDK Version using ANT

2005-06-15 Thread Zarar Siddiqi
Hi, Is there a clean way to detect what version of Java is being used when running a build file? Some possible solutions include: 1) parsing the JAVA_HOME variable to detect the version number 2) Checking the existence of a file which is specific to a version Both methods are somewhat brittle.

Re: sshexec and remote compilation

2005-06-15 Thread EJ Ciramella
Yeah, that was my initial thought exactly, but I tried: command="echo $PATH"/> command="echo $SHELL"/> command=". ~/.profile; cd /home/source/engineering/main/csrc; ./ configure; make all"/> All of which look ok, but the results are still the same: [sshexec] checking for a BSD-compatible i

Re: sshexec and remote compilation

2005-06-15 Thread EJ Ciramella
I hate when people post questions but nothing in regards to the success/failure/solution. I added one more command to add in a few other directories and -bingo- . Perfect for those rare occasions where you're not allowed to install anything! Thanks! On Jun 15, 2005, at 2:06 PM, Anderson,

RE: sshexec and remote compilation

2005-06-15 Thread Anderson, Rob (Global Trade)
The ssh server has a PATH compiled into it. You probably want to source your .profile first in the command attribute. I hope this helps. -Rob A > -Original Message- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 15, 2005 9:43 AM > To: Ant Users List > Subject:

RE: Mail a nice pretty html build log...

2005-06-15 Thread Anderson, Rob (Global Trade)
Here is the code. Line 82 - 87 is where the work is needed. Could parameterize some stuff also. This is mostly the same as the MailLogger, in fact that was my starting point, as you may notice the documentation section below the imports has not been updated. -Rob A /* * Copyright 2002-2004 T

Re: How to execute a subtask conditionally if used several times

2005-06-15 Thread Alexey N. Solofnenko
You can put inside . - Alexey. Dr. Michael Lipp wrote: Hi, I have a target that produces an output file based on an input file. I invoke this target several times using antcall with different pairs of input and output files (using ). As an optimization, I want to do the generation only if th

How to execute a subtask conditionally if used several times

2005-06-15 Thread Dr. Michael Lipp
Hi, I have a target that produces an output file based on an input file. I invoke this target several times using antcall with different pairs of input and output files (using ). As an optimization, I want to do the generation only if the input file is newer than the output file. In order to do t

sshexec and remote compilation

2005-06-15 Thread EJ Ciramella
Is anyone here using ant to build on remote machines? I looked at rant and a few others, but they aren't quite what I need (and in some cases, there's no way to sell installing anything more than what's there). All I want to do is something like: password="password" command="cd /home/sour

Subant - selecting projects to build

2005-06-15 Thread Dick, Brian E.
I have my project directory structured similar to the last example in the subant doc. I have a root directory with a common build file and module directories with a simple build file that imports the common build file. Currently, my project consists of 50+ modules. I deploy these modules across 10

Oracle, SQL Task, and XML

2005-06-15 Thread Renick, Garrel
I'm trying to get an XML result set from an Oracle 9i server using ANT's SQL task with the Oracle JDBC Thin Driver. I can successfully connect to the database and issue standard SQL through the ANT SQL task and get the expected result set. However, if I issue SELECT statements with Oracle's XML-re

Oracle, SQL Task, and XML

2005-06-15 Thread Renick, Garrel
I'm trying to get an XML result set from an Oracle 9i server using ANT's SQL task with the Oracle JDBC Thin Driver. I can successfully connect to the database and issue standard SQL through the ANT SQL task and get the expected result set. However, if I issue SELECT statements with Oracle's XML-rel

RE: macrodef: setting options dynamically

2005-06-15 Thread hind.lwahhabi
hi jan; i already saw the manual but my goal is a little bit more complex; i want to do the following: attribute1 and attribute2 belong to macrodef SomeMacro. if attribute1=x then attribute2="blablabla @{attribute1" else attribute2="other blabla" Thanks for any help. -Original Message---

AW: macrodef: setting options dynamically

2005-06-15 Thread Jan.Materne
>In a macrodef definition,how can i set option2 from a macrodef >based on option1 from the same macrodef? See manual - last example. >Can i use IF Task from ant-contrib.? Yes Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Difference in Ant task output and -log

2005-06-15 Thread al.sutton
Does anyone know the reason why the behaviour of running is different to sepecifying in a build file? The difference I see is that when using the ant task the output of the sub-build is displayed on the output stream for the main build as well as being put into the log file, whereas when

macrodef: setting options dynamically

2005-06-15 Thread hind.lwahhabi
Hello guys, In a macrodef definition,how can i set option2 from a macrodef based on option1 from the same macrodef?Can i use IF Task from ant-contrib.? Thanks for any help. Hind. -Original Message- From: Ivan Ivanov [mailto:[EMAIL PROTECTED] Sent: Wed 6/15/2005 7:14 AM To: user@ant.apac