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
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
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
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
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,
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
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="**/*>
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://
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
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
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
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
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
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
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
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
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
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
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
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).
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
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
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 :
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
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
25 matches
Mail list logo