Hi,
the idea for setting the loglevel via task is not mine,
read about some time ago in a blog,
but i don't remember where.
i only had to edit the setLevel() method to make it work,
simply used the method from org.apache.tools.ant.taskdefs.Echo$EchoLevel
i also think that this little task sho
Hello
Currently I have a top-level build.xml file which calls ant on
subdirs. It looks like something like this:
...
I would like to change the xml so it only builds available
directories. In other words, if a developer uses this build file, he
might not be interested in building th
Hi,
beside =
project.setNewProperty() for a really new property
there's also =
project.setProperty() - with that method you can reset/overwrite
an existing property if you need to
btw you can always use such methods with task, you
don't always need a new task, f.e.
> -Original Message-
> From: wohlgemuth [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 9 August 2006 1:09 PM
> To: Stephen McConnell
> Cc: Ant Users List
> Subject: Re: weird problem with Class instanceOf
>
> I give it a try first tomorrow morning, but I'm acually quite
> shure that thi
I give it a try first tomorrow morning, but I'm acually quite shure
that this is not the case, cause I tried already different names for
the classes to check this.
thanks for your help and I will see it tomorrow morning. How does the
internal system with the references work anyway? Cause I was no
> -Original Message-
> From: wohlgemuth [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 9 August 2006 11:20 AM
> To: user@ant.apache.org
> Subject: weird problem with Class instanceOf
>
> hi,
>
> at first I work since a long time with ant and wrote arround
> 50 ant tasks sofar, I though
hi,
at first I work since a long time with ant and wrote arround 50 ant
tasks sofar, I thought I know what I do...
...I was wrong
anyway thats my problem:
I have 3 classes
1. ClusterInitialzieTask, parent class:Task
-> used to intialize a cluster and contains objects of type 2. or 3.
2. Clus
I've got an sshexec task that never exits, and I need to solicit some
opinions on the problem. The reasons behind it are well-known; if an
ssh command starts a long-running in the background, then ssh doesn't
know when it should exit.
>From the purist standpoint, this is expected behavior. In pr
Use GNU tar on Solaris ;-) --DD
On 8/8/06, EJ Ciramella <[EMAIL PROTECTED]> wrote:
Recently, I've tried making a tarball and I wound up with the following
messages:
[tar] Entry:
uprweb.war/WEB-INF/classes/com/upromise/app/presentation/actions/admin/S
tartEnrollmentTestAction.class longer t
EJ Ciramella wrote:
Recently, I've tried making a tarball and I wound up with the following
messages:
[tar] Entry:
uprweb.war/WEB-INF/classes/com/upromise/app/presentation/actions/admin/S
tartEnrollmentTestAction.class longer than 100 characters.
[tar] Entry:
uprweb.war/WEB-INF/cla
Bala Paranj wrote:
I have the following section in my build.xml:
I can run my client from within Eclipse without any problems. But when I run it
using the Ant
script I get the following error:
java.n
Hans Schwaebli wrote:
This solution seems to work, thanks. But I have to test it a little bit more.
If a compile error occurs, the error message must be logged.
I wished that this task would be a standard Ant task (out of the box).
Probably because most people werent aware it was that much
Recently, I've tried making a tarball and I wound up with the following
messages:
[tar] Entry:
uprweb.war/WEB-INF/classes/com/upromise/app/presentation/actions/admin/S
tartEnrollmentTestAction.class longer than 100 characters.
[tar] Entry:
uprweb.war/WEB-INF/classes/com/upromise/app/p
> Have you tried using -lib saxon.jar on the command line? This puts
> saxon first on the classpath, which makes Trax load it instead of the
> default JDK-provided XSLT engone.
Yes, to no effect.
As for the help with Plan B. Thanks, I've got that working on my computer
(which had no problem with
Actually I think I was looking for project.setNewProperty() which I
just ran into now :) I guess one uses AntCallback for chaining calls?
Thanks,
Gili
-Original Message-
From: Chun Ji [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 3:10 PM
To: Ant Users List
Subject: RE:
google "antcallback"
-cji
-Original Message-
From: Tzabari, Gili [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 11:56 AM
To: Ant Users List
Subject: Custom Task that exports a property
Importance: Low
Hi,
I read the tutorial on how to create new Tasks but I am unsure
Hi,
I read the tutorial on how to create new Tasks but I am unsure how
my custom task can define new properties in its execute() that would then be
visible to the rest of the Ant script. Also, how can my Ant task invoke
other Ant tasks? If I could invoke from inside my execute() it
would
I have the following section in my build.xml:
I can run my client from within Eclipse without any problems. But when I run it
using the Ant
script I get the following er
According to the documentation for "-Xlint:unchecked" it does not seem to help
in my case. Maybe I will give it a try nevertheless.
"Scot P. Floess" <[EMAIL PROTECTED]> wrote: Did you try this:
Hans Schwaebli wrote:
> Please reply someone cause it is really important for us. Thanks.
>
This solution seems to work, thanks. But I have to test it a little bit more.
If a compile error occurs, the error message must be logged.
I wished that this task would be a standard Ant task (out of the box).
By the way, for the CVS task, there is a reallyquiet parameter, which is
supported b
Markus, I resolved the issue. The problem was in my source code. Ant is able to
compile packages
with circular dependencies. I agree about getting rid of the circular
dependencies. Due to lack of
time I am forced to take the lazy route.
I have to rebuild ant from the source to use the new manife
Thanks Dominique. Is it possible to amend
http://ant.apache.org/manual/CoreTypes/fileset.html to discuss this? I am
expecting a short note that recommends using nested tags if your
path contains spaces. I can open a BugZilla issue if necessary.
Thank you,
Gili
-Original Message-
'dir' attribute is required, and can have spaces in it. Otherwise,
don't use includes attribute, but nested elements. --DD
On 8/8/06, Tzabari, Gili <[EMAIL PROTECTED]> wrote:
Hi,
How can one use against a path with spaces in it? I'd like
to do something like this:
But FileSet
Hi,
How can one use against a path with spaces in it? I'd like
to do something like this:
But FileSet's "includes" thinks the space separates multiple tokens
and so it defines includes as ["c:/Documents", "and",
"Settings/username/*.txt"]
Any ideas?
Thank you,
Gili
-
So far that problem is still unresolved.
Have you tried using -lib saxon.jar on the command line? This puts
saxon first on the classpath, which makes Trax load it instead of the
default JDK-provided XSLT engone.
To my eye, these appear to be indentical. Which one is wrong?
the 'value' on
Last week I had a problem when installing ANT, a build file, and some
supporting files on three computers at my workplace. On two of the three
computers I was not able to force the task to use the XSLT transformer I
choose. At least that appeared to be the problem because the error messages
se
Did you try this:
Hans Schwaebli wrote:
Please reply someone cause it is really important for us. Thanks.
Hans Schwaebli <[EMAIL PROTECTED]> wrote:
I already use this. If I wouldn't, it would be much worse. But it doesn't
silence javac's output message which I described.
Any other
You could take this simple task =
public class SetLogLevel extends Task
{
private int logLevel = -1;
public void execute()
{
if (logLevel == -1)
{
throw new BuildException("Error - No Loglevel specified !!");
}
Vector listeners = this.getP
Please reply someone cause it is really important for us. Thanks.
Hans Schwaebli <[EMAIL PROTECTED]> wrote:
I already use this. If I wouldn't, it would be much worse. But it doesn't
silence javac's output message which I described.
Any other ideas?
Public Id
wrote: Hans Schwaebli wrote:
Hello,
please try to put an
into your fileset, this should work then.
R,
Markus M. May
Original-Nachricht
Datum: Tue, 8 Aug 2006 11:42:37 +0100
Von: "Bhadra, Jatin" <[EMAIL PROTECTED]>
An: user@ant.apache.org
Betreff: scp fails with a protocol error
> Guys,
>
> My environm
Guys,
My environment info
ANT: 1.6.2
JDK IBM: 1.4.2
Operating System: Windows 2003
JSCH: 0.1.14
I am using scp to copy files from my windows to unix environment using this ANT
command
I get the error "server indicated an error: scp: protocol error: received
directory without -r".
Has a
Hi,
I have created a custom ant task that executes an XSL which has
extensions. The XSL is attached below. I placed the latest xalan (
xalan-j 2.7.0 ), xercesImpl, xml-api and serializer jars in
ANT_HOME/lib. I am using JDK 1.5. It works fine using command line. But
when I execute the task f
32 matches
Mail list logo