Re: Property array?

2008-08-14 Thread Vijay Aravamudhan
What is it you are trying to achieve? I have used a comma-separated string property, split it and iterated over it (using ant-contrib). Would that work for you rather than writing a custom task? hth, Vijay markww wrote: Hmm I just read through a custom Task tutorial, but I don't think they'll

Re: facing the problem in package

2008-08-01 Thread Vijay Aravamudhan
check that your classpath has been set and includes the directory where your sources are being compiled to. hth, Vijay Kamran Hameed wrote: folks .. this is my package structure. I have a root src folder. In src i have a mpjdev package which contains some files. This mpjdev also contains a fol

Re: Depends="init" problem

2008-06-16 Thread Vijay Aravamudhan
hi, I think the way you invoke the targets is like: ant -f buildFile.xml a b c If that is the case, you are invoking each target independent of each other - which means that the dependencies for each are discovered separately and executed - once for a, once for b and once for c. If you had a s

Re: best practice: How to insert unreferenced class files into a JAR

2008-05-22 Thread Vijay Aravamudhan
Since these dynamically loaded classes are part of a separate project, you are already on the correct path. Just jar those files separately and use that jar in the classpath of your project. If you want to go even further, use ivy to manage your dependencies. Vijay Amit Dor-Shifer wrote: Hi

Re: how to change the property value at run time

2008-05-14 Thread Vijay Aravamudhan
I would also look at the documentation about differences between user defined properties vs the ones defined within the build.xml file. Another way to change properties at runtime is to read different property files based on your condition. hth, Vijay Taj, Abdul wrote: When you say runtime,

Re: exclude test and examples from a jar

2008-03-27 Thread Vijay Aravamudhan
i think what you want is: hth, Vijay Luca Ferrari wrote: Hi, is it correct the following file set to be included in a jar task for excluding examples and test files? I still got the classes un

Re: Delete directory with .svn; ant manual issue

2008-03-27 Thread Vijay Aravamudhan
hi, I don't think defaultexcludes takes into account svn directories - though it does handle the cvs directories. hth, Vijay [EMAIL PROTECTED] wrote: Hi all, when following the ant manual for deleting all files including .svn entries, I got to something like: includes="**/*>

Re: Repeating a task for a list of directories

2008-03-05 Thread Vijay Aravamudhan
hi, if all you are doing is calling a different ant file within each subdirectory - you can look at subant (http://ant.apache.org/manual/CoreTasks/subant.html) If your main build file has a target which you want to repeat for each subdirectory, use ant-contrib's for or foreach tasks (http://

Verifying checksum of files after ftp'ing to remote server

2008-03-03 Thread Vijay Aravamudhan
hi, In our build process, some files are ftp'ed onto a remote server. I would like to incorporate a step that can be used to verify that the ftp process worked correctly - by verifying the checksum of the local file(s) to the corresponding remote one(s). Could someone please help with how this

How can we use the checksum task (or another ant task) to compare that the ftp worked

2008-02-26 Thread Vijay Aravamudhan
hi, We have a client where a build process creates artifacts (jar, exe) and uses the scp task to copy them over to an ftp server. Once this process completes, an email is sent to the offshore team asking them to verify that the file sizes (obtained from the build machine) are the same for each

Re: env.COMPUTERNAME not working in linux

2008-02-26 Thread Vijay Aravamudhan
Is COMPUTERNAME only for windows? Is there any workaround to print the hostname(Linux)? The end of that statement is misleading - are you looking for the hostname or the host OS? Or is your machine named 'Linux'? Vijay Ramu Sethu wrote: Hi We have a build script which runs in both windows

Re: how to detect failed build

2008-02-26 Thread Vijay Aravamudhan
hi, I have also seen some clients who use ant's MailLogger to notify interested parties of failed builds - in case you have a wide audience. btw: are you running inside a CI environment? If not, try CruiseControl, Hudson, Bamboo or TeamCity. Depending on whether you want an open source tool o

Re: Delete with Wildcard

2008-02-22 Thread Vijay Aravamudhan
hi Tom, You should be able to do the following to delete the multiple nested directories: hth, Vijay Tom Henricksen wrote: I have seen a little discussion with this in past but no resolution. Is it possible to We have multiple nested directories under dojox we

Re: Inheriting tasks?

2008-02-19 Thread Vijay Aravamudhan
are you referring to tasks or targets? I think what you want to find out abt is a target. If its a target, then you can use the task to import common definitions of tasks, properties, etc. hth, Vijay jpyork wrote: I know you can inherit properties, but can you do this with tasks also? I am

Re: Ant's preferred location of toolkit.jar?

2008-02-07 Thread Vijay Aravamudhan
set the JAVA_HOME environment variable to point to the JDK. hth, Vijay [EMAIL PROTECTED] wrote: I have just installed Ant on a laptop I haven't used previously for development. When I ran ant.bat, I got a message telling me that Ant couldn't find toolkit.jar in my jre directory. The file is i

Re: Running TestSuite with ANT

2008-01-22 Thread Vijay Aravamudhan
Look at the manual here: http://ant.apache.org/manual/OptionalTasks/junit.html specifically the section for batchtest. That task can be used to run a suite of tests matching a specified pattern. This also allows you to not have to code and maintain a class implementing the TestSuite API from jun

Re: Is there a way to search for a file matching a condition and assign it to a variable ?

2008-01-15 Thread Vijay Aravamudhan
hi Hari, You might be able to try this: That has worked for me in the past - with Ant 1.7.0 (not sure if it works in Ant 1.6.5). Doesn't hurt to try! thanks, Vijay Gilbert Rebhan wrote: Hariharasudhan R schrieb: Hi Gilbert, That worked. Many Thanks

Re: AW: Redefining a task

2007-12-19 Thread Vijay Aravamudhan
does it work if the name of the presetdef is the same name as the actual task? I tried it some time ago - but with not much luck. Also, the examples for presetdef show using it with a different name, thanks, Vijay [EMAIL PROTECTED] wrote: Jan -Ursprüngliche Nachric

Is there an ant task (inbuilt in ant core) to verify the version of a jre?

2007-10-25 Thread Vijay Aravamudhan
hi, On many of my projects, we need to compile against the 1.4 JDK. Depending on what any individual developer might have installed, we run into issues with JDK versions ranging from 1.4.x, 1.5.x and 1.6. Does anyone know if there is a task in ant which can be used to verify the version of the

Re: Ant build vs. CruiseControl

2007-10-25 Thread Vijay Aravamudhan
Also, make sure CC is using the ant install that you have dropped the jera jar in. Typically, CC comes with its own version of ant - and to use a different install directory of ant, you have to pass in some parameters or set a system environment variable. (Cant remember what they are offhand).

Re: My first build with ant failed

2007-10-08 Thread Vijay Aravamudhan
Your target for compile is incorrect. It should read: You are missing " in two places. hth, Vijay Mohammad Khan wrote: below is the part of my build.xml

Re: how to replace a segment in a XML file?

2007-09-10 Thread Vijay Aravamudhan
we use the xmltask (http://www.oopsconsultancy.com/software/xmltask/) to work with xml structures within an ant file. And it seems to fit our needs. Based on what you want to do, this might help. NOTE: I am in no way affiliated to/with OOPS consultancy. Just think that this package/tool is a gr

Re: Updated : Failonerror does not have any effect on compilation failure

2007-08-31 Thread Vijay Aravamudhan
it would be better to call it using the task. That way the build will fail if any step or target fails. Exec creates a different process and so cannot cause the current build to fail. hth, Vijay Ravi Roy wrote: Hi All, I am calling ant.bat using in the following way :

Re: copyng and renaming files

2007-08-29 Thread Vijay Aravamudhan
you can achieve the same without using ant-contrib: by using a flattenmapper to get the list of files (without directory names), and then using that in an include to move from 'destination' to 'destination/old' and then copying from 'origin' to 'destination'. hth, Vijay Kriss wrote: Hi, You

accessing antlib svn

2007-08-20 Thread Vijay Aravamudhan
hi, I would like to contribute to the ant dotnet antlib. Does anyone know how I can get at least anonymous access to the repository? I couldnt find anything for the ant libs. Also, having some documentation about which branch I can code against would be helpful. Maybe I just havent searched en