Re: Syncing very large directories

2008-01-24 Thread Antti Luoma
BTW, very large in this case means ~17 GB :) -- -Antti- 2008/1/25, Antti Luoma <[EMAIL PROTECTED]>: > > Hi, > > I did take a look from sources and noticed the basic java File API, I > think there might be some optimization (like getting rid of unnecessary > vector creation). Also caching src fold

Re: JUNIT testing in WSAD

2008-01-24 Thread Antti Luoma
Hi, You are obiously missing the class com/ibm/crypto/provider/IBMJCA from classpath. You need some classed from ibm wsad runtime components to be in your classpath when you run this junit task. -antt- 2008/1/24, Mevitha <[EMAIL PROTECTED]>: > > > I am trying to run a junit test using ANT in WSA

Re: Syncing very large directories

2008-01-24 Thread Antti Luoma
Hi, I did take a look from sources and noticed the basic java File API, I think there might be some optimization (like getting rid of unnecessary vector creation). Also caching src folder contents (is maybe storing contenst to outputstream directly and reading from there) might improve it? This of

AW: For each jar in a fileset

2008-01-24 Thread Jan.Materne
Just Tested example Jan > -Ursprüngliche Nachricht- > Von: Clifton [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 24. Januar 2008 21:58 > An: user@ant.apache.org > Betreff: For each jar in a fileset > > > I need to unjar each jar in a fil

RE: Variable numbers of s to

2008-01-24 Thread Judy Anderson
YES! Where would I have learned about the line="xxx" format of ? The only examples under are value="xxx". Oh, I see if I drill down hard enough I find an example that isn't about running java but apparently uses the same structure. Well, thanks for finding it for me, sorry to be a bother...

nohup and Ant question

2008-01-24 Thread Z W
Hi I have a shell script where in it, it has these lines nohup ./mdmctl start-t -dep zg & nohup vmstat 10 > $log_location/vmstat_$1.log & echo "Wait to come up...sleep for 100 secs" sleep 100 echo "Starting prstat." pid=`ps -ef|awk '/'"java -server -XX:CompileThreshold"'/ && !/bash/ {print $2}'`

RE: SSHExec Target

2008-01-24 Thread Anderson, Rob (Global Trade)
I would use sshexec to first connect to server x and run the some commands (or a script), then use sshexec again to connect to server y and run some commands (or a script). I just don't see why you need server x to connect to server y, rather than connecting directly to both server x and server y.

RE: Variable numbers of s to

2008-01-24 Thread David Jackman
Does do what you want (without the warnings)? -Original Message- From: Judy Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 2:24 PM To: user@ant.apache.org Subject: Re: Variable numbers of s to Replying to my own message: I found

Re: Variable numbers of s to

2008-01-24 Thread Judy Anderson
Replying to my own message: I found an example of a mapper that did what I wanted to create a string "foo.jar bar.jar baz.jar". Then I was cooking with gas, and I used the DEPRECATED form It's pretty ugly because in addition to the mapped list there are several positional arguments that have

Re: Traceback when building ant from source

2008-01-24 Thread David Pratt
Hi Peter and Steve. I downloaded junit-3.8.2 from sourceforge and copied junit.jar to /lib in the uncompressed ant-1.7.0 source and ran build.sh again. I believe I am doing what the manual what the manual is instructing so would appreciate any guidance of what I may be missing. The full traceba

Triggers and Event attributes

2008-01-24 Thread Jim Adams
I am trying to write a trigger that happens at post-resolve-dependency time. I don't want this trigger to run every time I run a resolve (which happens several times for us), just sometimes. Also I want the trigger to also run a resolve with a different configuration. So I thought I would filter

For each jar in a fileset

2008-01-24 Thread Clifton
I need to unjar each jar in a fileset. What's the easiest approach without getting into extra libs, scripting and what not? -- View this message in context: http://www.nabble.com/For-each-jar-in-a-fileset-tp15074819p15074819.html Sent from the Ant - Users mailing list archive at Nabble.com. --

Re: Overwrite Property at runtime

2008-01-24 Thread Chuck Holzwarth
The vars override the property for the current target and antcall targets. I have seen something about using callback to call and allow var changes to come back but haven't tried it. So, if you use vars to override existing properties make sure you watch the scope of usage. The var can disappear

Re: Overwrite Property at runtime

2008-01-24 Thread Gilbert Rebhan
Hi, > I would recommend using ant-contrib's and logic to overwrite > properties and dynamically assign the values you need to implement your > solution: http://ant-contrib.sourceforge.net/tasks/tasks/index.html normally properties in ant are immutable once set, but you may always use the ant a

RE: SSHExec Target

2008-01-24 Thread Anderson, Rob (Global Trade)
Post the relevant portion of your build.xml and the output. -Rob A -Original Message- From: Rishi Gogia [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 11:15 AM To: Ant Users List Subject: RE: SSHExec Target Hi Rob Basically I have to perform some function of this script on

Re: Variable numbers of s to

2008-01-24 Thread Dominique Devienne
On Jan 24, 2008 2:11 PM, Judy Anderson <[EMAIL PROTECTED]> wrote: > One of our steps involves calling a Java program which takes a number of > arguments, and the last few are varargs, for lack of a better description. I > have a list, e.g., "foo,bar,baz", in a property, which should be mapped to

Variable numbers of s to

2008-01-24 Thread Judy Anderson
One of our steps involves calling a Java program which takes a number of arguments, and the last few are varargs, for lack of a better description. I have a list, e.g., "foo,bar,baz", in a property, which should be mapped to foo.jar, bar.jar, and baz.jar as the final arguments. I spent a little

JUNIT testing in WSAD

2008-01-24 Thread Mevitha
I am trying to run a junit test using ANT in WSAD I am getting the following error: Running com.lxnx.ols.ldc.answerset.model.AsetStatusEvaluatorTest [junit] java.lang.NoClassDefFoundError: com/ibm/crypto/provider/IBMJCA (wrong name: org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunn

RE: Overwrite Property at runtime

2008-01-24 Thread James Oltmans
I would recommend using ant-contrib's and logic to overwrite properties and dynamically assign the values you need to implement your solution: http://ant-contrib.sourceforge.net/tasks/tasks/index.html James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thur

RE: SSHExec Target

2008-01-24 Thread Rishi Gogia
Hi Rob Basically I have to perform some function of this script on one server and some on the other so i have one script on Server X and another on Server Y. and the script on Server X calls the script on Server Y using ssh. and the script on Server X again needs to be called from the Ant S

RE: SSHExec Target

2008-01-24 Thread Anderson, Rob (Global Trade)
So you are using the sshexec task to connect to a remote server and execute a script that connects via ssh to another remote server. That doesn't really make sense to do, in my opinion. Why not just use sshexec to connect to the directly to the remote server you intend to execute something on? Why

RE: SSHExec Target

2008-01-24 Thread Amarjit Jutla
SSHExec executes without any environment. So the script that you call with SSHExec should set the environment variables you requires (eg: PATH) See what the environment is when you run via command prompt and set the same in the first script that SSHExec calls. -Original Message- From

Re: SSHExec Target

2008-01-24 Thread Chuck Holzwarth
What does the sshexec code look like? Rishi Gogia <[EMAIL PROTECTED]> wrote: Hi I am using SSHExec target in my Build.xml which is calling a shell script. This shell script internally connects to another server in the network through SSH. The shell script is running fine when executed from sol

Re: AW: Checking a property with ant

2008-01-24 Thread Gilbert Rebhan
[EMAIL PROTECTED] schrieb: > But dont forget: checks whether a property with > the given name is set/not-set. therefore in my example the property thats' used afterwards with target if|unless is set via condition + equals ... ;-) > > > I will be executed > > > > > I will be execu

SSHExec Target

2008-01-24 Thread Rishi Gogia
Hi I am using SSHExec target in my Build.xml which is calling a shell script. This shell script internally connects to another server in the network through SSH. The shell script is running fine when executed from solaris command prompt. but when executed from the build.xml, it doesn't call th

Re: sshexec and outputproperty

2008-01-24 Thread Chuck Holzwarth
As an answer, which resule would you want? There are multiple commands in the sshexec string. You are testing to assure that directory ${a_dir} exists or making the dir apparently. both commands "test" and "mkdir" return values. Does the destination OS perform shortcut execution? This problem is

Re: Traceback when building ant from source

2008-01-24 Thread Peter Reilly
On Jan 24, 2008 3:46 PM, Steve Loughran <[EMAIL PROTECTED]> wrote: > David Pratt wrote: > > Hi. I am attempting to build ant from source. In my first go, I was not > > aware the build would fail without junit. For second attempt I copied > > the junit-4.4.jar and placed it into the /lib folder of t

Re: Rexec task for bash command in ant script

2008-01-24 Thread Chuck Holzwarth
bash is an interactive command interpreter. cd, pwd etc. are commands that allow input then do their jobs and exit. You can issue "bash " to execute the commands in the command_file and exit, but bash on its own will start an interactive shell that then waits for input. Swati Gaikwad <[EMAIL PR

Re: Halt Ant script question

2008-01-24 Thread Chuck Holzwarth
One way is to redirect the output from your shell commands to files: cd 2>/tmp/cd_err This would execute the cd shell command and redirect the error result to the file /tmp/cd_err. Be careful with this and make sure you check the file for contents. The redirect will create the file even if there

RE: Overwrite Property at runtime

2008-01-24 Thread Sumit.Srivastava
Hi Barry, Thanks for the response. Since it's not a ANT releated property, I done think providing an option of -DPROP_VALUE from cmd prompt would work. Also, I cant afford to have user intervention is providing the value of the Property at runtime.. The Variable is actually defined insid

Re: Syncing very large directories

2008-01-24 Thread Dominique Devienne
On Jan 24, 2008 3:53 AM, Antti Luoma <[EMAIL PROTECTED]> wrote: > Hi, > > I am using ant 1.7.0 task to sync 2 very large directories. It > currently takes too much time to do this (to be usable). Sorry Antti, but there's no free lunch. Either you want to sync, in which case you need to scan both

Re: Traceback when building ant from source

2008-01-24 Thread Steve Loughran
David Pratt wrote: Hi. I am attempting to build ant from source. In my first go, I was not aware the build would fail without junit. For second attempt I copied the junit-4.4.jar and placed it into the /lib folder of the uncompressed source. I believe this is where it is to go based on the inst

Traceback when building ant from source

2008-01-24 Thread David Pratt
Hi. I am attempting to build ant from source. In my first go, I was not aware the build would fail without junit. For second attempt I copied the junit-4.4.jar and placed it into the /lib folder of the uncompressed source. I believe this is where it is to go based on the instructions in the ant

Re: Syncing very large directories

2008-01-24 Thread Chuck Holzwarth
Have you looked at rsync? Antti Luoma <[EMAIL PROTECTED]> wrote: Hi, I am using ant 1.7.0 task to sync 2 very large directories. It currently takes too much time to do this (to be usable). Here is the target that I run. I invoked it whit build metrics listener and the outp

Re: lint4j in build.xml

2008-01-24 Thread Peter Reilly
I have not used lint4j, but the user manual (google lint4j) gives an example of how to use an an ant task; http://www.jutils.com/uguide.html Peter On Jan 24, 2008 12:01 PM, venkata prasad <[EMAIL PROTECTED]> wrote: > > Hi All, > > Can any one tell me how to integrate lint4j in build.xml? > If an

lint4j in build.xml

2008-01-24 Thread venkata prasad
Hi All, Can any one tell me how to integrate lint4j in build.xml? If any one have same plz send sample scripts. Thanks in adavnce, Prasad.

Re: Rmic problems

2008-01-24 Thread Steve Loughran
Knuplesch wrote: Hi everybody, I come across with a problem with rmic. I might have found sth. Like a bug or mysterios behaviour of Ant 1.7. I was working wit Ant 1.6.5 and still do. But my Eclipse DIE changed to ANT 1.7. If I run the following rmic task: I get err

Syncing very large directories

2008-01-24 Thread Antti Luoma
Hi, I am using ant 1.7.0 task to sync 2 very large directories. It currently takes too much time to do this (to be usable). Here is the target that I run. I invoked it whit build metrics listener and the output that I (finally) got was: [sync] Removed 1 dangling direc

RE: Overwrite Property at runtime

2008-01-24 Thread Barry Andreasen
There are several ways to accomplish this depending on your workflow and process requirements. You could do this with the -D= command parameter (passing the runtime value in from the ant commandline). Another option is to use the element to prompt the user for a dynamic value. For example:

AW: Checking a property with ant

2008-01-24 Thread Knuplesch , Jürgen
Alternativly use if-Task of antcontrib to do it in one step. -- Jürgen Knupleschwww.icongmbh.de icon Systemhaus GmbHTel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart Fax. +49 711 806098-299 Geschäftsführer: Uwe

RE: Checking a property with ant

2008-01-24 Thread Barry Andreasen
This is a 2 step process. First you need to also create a conditional property based on the value of the property test. Then you can use that conditional property in target elements to conditionalize their execution. For instance Step 1: Step 2: ... your target elements __

Rmic problems

2008-01-24 Thread Knuplesch , Jürgen
Hi everybody, I come across with a problem with rmic. I might have found sth. Like a bug or mysterios behaviour of Ant 1.7. I was working wit Ant 1.6.5 and still do. But my Eclipse DIE changed to ANT 1.7. If I run the following rmic task: I get errors like: : Class de

RE: scp fileset and copy subdirectory/files issue

2008-01-24 Thread Bizard Nicolas (KIRO 41)
Hi, i ran into the same problems, i think it's a bug... However, there is a simple workaround -> zip all the files, and then unzip remotely with sshexec... Hope that helps. Nicolas -Original Message- From: Z W [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 6:00 AM To: user@a