Hello!
I'm using the Javac task to compile Java sources programmatically. If
there is an compile error, the Javac tasks (more specific the
com.sun.tools.javac.Main compiler) prints it's error to the console
(System.err).
Currently, I'm setting System.err to a new PrintStream just before I
c
> if you want the nested failure to propagate, set failonerror="true" in
>
>
>
I had thought that I already did this.. But I double checked and had left it
out.
Thanks very much.
-
This mail sent through IMP: http://horde.org/imp/
--
Hi again,
So I investigated further and realized that the command I am using to move
all directories(and their contents) which have name of the pattern UHM-*
moves all the directories and its files across to the new directory, but
leaves the directory structure behind in the old directory. Can any
There seem to many places in the code where there is a clause:
try {
[...]
} catch (Throwable t) {
[...]
}
This will cause many problems if t is a thread death. From the JavaDocs
for ThreadDeath:
"If ThreadDeath is caught by a method, it is important that it be rethrown
so that the thre
Well, if you use Ant-Contrib's var and side-step property immutability
altogether the problem is moot then, no? In any case, there's no need
for entities. Easier on the eye to simply use an explicit prefix. Of
course one runs the risk of overriding an existing 'real'
property, but any prefix speci
Improved version (using ant-contrib). I suppose we'll have to wait for
ANT 1.7 in order to have a 100% solution for scoped variables.
build.xml :
]>
&test-uid;.test : ${&test-uid;.test}
macrodef.xml:
]>
¯odef1-uid;.test :
<[EMAIL PROTECTED]> writes:
> Running the stats on our code is a rather lenghty process (currently +/-70
> minutes)... I therefore consider to run the targets only at night. Would
> someone have an hint on how to evaluate the current time and set a flag if
> it is between say : 10 PM and 6:00 AM
One way is to use the task with a custom pattern to contain only the
hour (in 24hour format). Then using the task (from the ant-contrib
project) along with the a condition (like the and
also from ant-contrib or write your own ) to control the setting
of a property (called "isLateNight")
I don't see how this really helps, I'm sorry ;-)
The problem is when you invoke *several times* a macrodef that uses
internally. You would need to use a different prefix (that
what your entity is equivalent to) for the different runs of the same
macro to use different property names.
Which is wh
The time at which ${lib} is resolved is not when you refid it, but
when you id it, i.e. when the control flow of Ant defines the
the first time. This is when the 'lib' property must be defined in
order for your path to be valid.
Ensuring that a property is defined before its first use can be done
Thanks for the responses. There are no locks that I am aware of.
Kinjal, can you elaborate on that please? Which "file name" should I
include? I want all files under those directories to be moved along with the
directory. I have defined my fileset as
Running the stats on our code is a rather lenghty process (currently +/-70
minutes)...
I therefore consider to run the targets only at night.
Would someone have an hint on how to evaluate the current time and set a flag
if it is between say
: 10 PM and 6:00 AM ?
Tx,
\T,
--
Any fool can write
It's a single build script.
Though it may behave like property does, it looks really confusing, that
I assign undefined property "${lib}" to pathelement's location
attribute, define it later, supposing that when it will be used, e.g.
referenced by id, it'll be resolved. As a result, I see inste
Just wanted to share our (temporary) solution we currently use to have
scoped variables in macrodefs. Not ideal, but it currently works.
build.xml:
]>
&uid;.test : ${&uid;.test}
macrodef.xml
]>
&uid;.test : ${&uid;.test}
--
It looks like the problem occurs within a single build script. The bug
mentioned applies only when you make a call to another script using .
On 9/13/05, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote:
>
> Hello Aliaksandr,
>
> this sounds like bug 25777, which was fixed in Ant 1.6.3,
> Which v
Hello Aliaksandr,
this sounds like bug 25777, which was fixed in Ant 1.6.3,
Which version of ant are you using ?
Cheers,
Antoine
http://issues.apache.org/bugzilla/show_bug.cgi?id=25777
Aliaksandr Voitau wrote:
> Hi,
> here is a piece of my buildfile.
>
>
>
>
>
>
> classname="my.
That looks like the correct behavior to me. This is analogous to properties,
which are set once and cannot be changed again.
On 9/13/05, Aliaksandr Voitau <[EMAIL PROTECTED]> wrote:
>
> Hi,
> here is a piece of my buildfile.
>
>
>
>
>
>
> classname="my.pkg.Sample">
>
>
>
>
> While t
Read the examples of fileset in Apache Ant document and do the changes as
per it. It should work.
Including the file name in your script should work.
Thanks and Regards,
Kinjal Vohra
LionBridge Technologies Pvt. Ltd.
Kinjal Vohra
SCM/Build Engineer
[EMAIL
I am guessing here. Is there some process keeping a lock on those files or
folders that left behind in source directory?
Jatin Bhadra
www.cmware.co.uk
-Original Message-
From: Rizwan Merchant [mailto:[EMAIL PROTECTED]
Sent: 13 September 2005 17:07
To: 'Ant Users List'
Subject: moving dire
Ninju Bohra <[EMAIL PROTECTED]> wrote on 09/13/2005 11:37:02 AM:
> You know based upon your response I would guess that you work for
Microsoft
>
> Microsoft Joke #1:
http://members.aol.com/godx2/humor/assorted/microsoft1.html
I found it to more along the lines of the typical hacker response to
Hi,
I'm trying to move directories that have a certain pattern in their name to
another directory using the command below
Hi,
here is a piece of my buildfile.
While trying to invoke this target from java code i get the following
error:
taskdef class my.pkg.Sample cannot be found,
although i set ${lib} from java code using setProperty(...) right before
executing target "target-name".
However
Greg Akins wrote:
I am developing some Eclipse Plugins.
Because of Eclipse Plugin architecture, the Ant files to build the project need
to be run from Eclipse's antRunner
So my Ant build file includes a task to call Eclipse and launch
antRunner.
Consequenty, if the core build.xml that antRun
You know based upon your response I would guess that you work for Microsoft
Microsoft Joke #1: http://members.aol.com/godx2/humor/assorted/microsoft1.html
Good day all,
Ninju
Matt Benson <[EMAIL PROTECTED]> wrote:
--- Barak Yaish wrote:
> Hello,
>
> I would like to find a set of files, whi
Thanks.
What I meant to write in the subject was: Is there parallel ant task to the
Unix utility named find?
But thanks, anyway.
-Original Message-
From: Ninju Bohra [mailto:[EMAIL PROTECTED]
Sent: ?? 13 ?? 2005 18:23?
To: Ant Users List
Subject: Re: Find - is there parallel ant tas
Barak Yaish wrote:
>Hello,
>
>I would like to find a set of files, which are newer than a certain file (or
>time stamp). Is this possible to be done using ant?
>
>Thanks,
>
>Barak.
>
>
>
What you want is possible using filesets, selectors, and the pathconvert
task.
Look at the Concepts and T
Strange subject line...
To get only the files newer than a certain date, try using a nested
selector on a
Barak Yaish <[EMAIL PROTECTED]> wrote:
Hello,
I would like to find a set of files, which are newer than a certain file (or
time stamp). Is this possible to be done using ant?
Thanks
--- Barak Yaish <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I would like to find a set of files, which are newer
> than a certain file (or time stamp). Is this
> possible to be done using ant?
Yes.
>
> Thanks,
You're welcome.
-Matt
>
> Barak.
>
_
Hello,
I would like to find a set of files, which are newer than a certain file (or
time stamp). Is this possible to be done using ant?
Thanks,
Barak.
|Hi.
While trying to invoke this target from java code i get the following error:
taskdef class my.pkg.Sample cannot be found,
although i set ${lib} from java code using setProperty(...) right before
executing target "target-name".
However, if i'll just paste content
Hello Kinjal,
What are you trying to do? What have you ried so far? What is/isn't working?
/t
>-Original Message-
>From: Kinjal [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 13, 2005 3:32 PM
>To: Ant Users List; [EMAIL PROTECTED]
>Subject: RE: Very basic newby problem?
>
>how to
I am developing some Eclipse Plugins.
Because of Eclipse Plugin architecture, the Ant files to build the project need
to be run from Eclipse's antRunner
So my Ant build file includes a task to call Eclipse and launch
antRunner.
Consequenty, if the core build.xml that antRunner is executing fai
how to use ant in clear case
write procedure asap
LionBridge Technologies Pvt. Ltd.
Kinjal Vohra
SCM/Build Engineer
[EMAIL PROTECTED]
5th Floor, Spectra Bldg.,
Hiranandani Business Park,
Powai, Mumbai-400076.
Maharashtra, India.
tel: +912255567349
mobile: +9198
Thanks for the input - it was due to the lack of a default target
Thanks.
Regards
Andy
On 9/13/05, Erskine, Chris <[EMAIL PROTECTED]> wrote:
>
> When you are calling Ant, are you giving it a target to execute? Since
> your project tag does not have the 'default' attribute in it, Ant does
> not kn
When you are calling Ant, are you giving it a target to execute? Since
your project tag does not have the 'default' attribute in it, Ant does
not know what target to execute.
Chris Erskine
EDS Consulting Services
Colorado Springs, CO
Phone: 719-265-5962
Cell: 719-640-6488
> -Original M
When you invoke ant with no arguments, it looks for a file called
build.xml in the working directory. So build.xml needs to come out of
common and into the working directory. The relaitive paths that you have
in the javac task are correct if the build file is up one level (working
dir).
Try t
Hi,
I am attempting the run the following ant script:
simple example build file
where common is a directory under the root directory (containing the
build.xml file) that contains some java source files.
When I run the script with the debug option i get the following output:
---
37 matches
Mail list logo