Inside a MacroDef, I am using a FileSet with an id that I refer to
later in the same macro. This is working fine in one of the macros but
the other one causes a CCE at the below line in MacroInstance.copy():
UnknownElement unknownElement = (UnknownElement) r.getProxy();
While debuggin
Actually I want the log for each task.
e.g. for the task Javac the compilation information will be written in the log.
It may be in xml format or in text format.
and for other task the information for that particular task will be written in
log.
How it possible?
Thanks
Subir
OK,
using ant since version 1.4 in 2003
writing own tasks for 1,5 years
but still learning ;-)
thanks for the point
Regards, Gilbert
-Original Message-
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Sent: Friday, August 11, 2006 3:27 PM
To: Ant Users List
Subject: Re: How to sil
Mike--
The best was is to write a quick and dirty Java App using Xerces and take a
look at the DOM sample files specifically DOM3/DOMAddLines or
GetElementsByTagName example
You can then implement by call your app using the java tag
http://ant.apache.org/manual/CoreTasks/java.html
I would stay
I have some text files that I have to parse and modify, can anyone
advise the best way to do this - ANT commands, ANT Tasks, call to PERL
or some other scripting language? The scripts will be fairly complex
including pattern searching, text replacement, text sorting etc.
Depends on the context a
Hi,
I have some text files that I have to parse and modify, can anyone
advise the best way to do this - ANT commands, ANT Tasks, call to PERL
or some other scripting language? The scripts will be fairly complex
including pattern searching, text replacement, text sorting etc.
Regards,
Mike S.
--
So 2. and 3. are _always_ logged irrespective of used loglevel
it's like using System.out and setloglevel has no impact.
No true ;-) log without an explicit log level uses INFO level, so
setting log level to WARN hides these messages, just like when running
Ant in quiet mode (-q).
The Javac mes
Yes! That was the reason.
JAVA_HOME pointend to the old version.
Thanks for your support!
Markus
> -Ursprüngliche Nachricht-
> Von: David Corley (AT/LMI) [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 11. August 2006 12:59
> An: Ant Users List
> Betreff: RE: ANT with several Java-Vers
Hi,
sorry don't know about log filters in ant
a look into source of javac task source shows
4 locations where log(...) is used =
public String getCompiler() {
// *** 1. only logged if loglevel warning or higher
log("Since compiler setting isn't classic or modern,"
Hi,
a look into source of javac task source shows
4 locations where log(...) is used =
public String getCompiler() {
String compilerImpl = getCompilerVersion();
if (fork) {
if (isJdkCompiler(compilerImpl)) {
compilerImpl = "extJavac";
} else
setloglevel doesn't work. If I use it, the errors are not shown. Javac treats
warnings and errors the same, both are error stream.
Can you tell me if and how I could use a log filter?
Then I would filter the lines from javac which must not be logged.
"Rebhan, Gilbert" <[EMAIL PROTE
Whenever you run Ant set your JAVA_HOME variable (before you run Ant) to
the location of the 1.5 JRE. Ant always looks at the JAVA_HOME variable
to find out where the JDK is stored.
/Dave
-Original Message-
From: Grimm, Markus [mailto:[EMAIL PROTECTED]
Sent: 11 August 2006 11:50
To: use
Hi,
I use Ant1.6.0 on a linux-os.
The Java-Version on the host was updated from Java 1.4.2_08 to 1.5.0_05.
Now if I start Ant with 'ant -diagnostics' I see that Ant still uses the
"old" Java-version 1.4.2"
What can I do, that Ant uses the 1.5 JRE.
Is there a config-File or what else I have to do ?
I forgot of course another option is to use the xml logger, and then use
some xslt to extract only the compilation related information.
/Dave
-Original Message-
From: David Corley (AT/LMI) [mailto:[EMAIL PROTECTED]
Sent: 11 August 2006 09:03
To: Ant Users List
Subject: RE: Logging Syste
I'm sure it's possible subir, but you'll have to write a custom
logger/listener to carry it out.
/Dave
-Original Message-
From: subir bhaumik [mailto:[EMAIL PROTECTED]
Sent: 10 August 2006 14:29
To: user@ant.apache.org
Subject: Logging System
Hi
I am using ant programmitacally for
Hi,
1. ant-contrib has a ... task
see http://ant-contrib.sourceforge.net/tasks/tasks/index.html
and Logic Tasks / Trycatch
2. some tasks f.e. have a resultproperty /outproperty
you can check that property with a condition
o
16 matches
Mail list logo