Thank you. I will try this.
--- On Wed, 9/10/08, Stefan Bodewig <[EMAIL PROTECTED]> wrote:
From: Stefan Bodewig <[EMAIL PROTECTED]>
Subject: Re: Unzip task question
To: user@ant.apache.org
Date: Wednesday, September 10, 2008, 8:44 AM
On Wed, 10 Sep 2008, Hans Schwaebli <[EMAIL PR
I want to unzip a part of the zip file.
For example in the zipfile there are these folders:
-a
-b
-c
-d
-e
-f
I want just folder "e" to export. But if I do, then it creates the whole
structure in the output folder:
-a
-d
-e
I use:
I do Ant scripts for building and testing a application. Builds are done with
CruiseControl on a Unix machine. I have to run the tests on windows, which is
why in the build script the stuff is checked out on windows and build there.
But the controlling Ant scripts are on the Unix machine.
So I
I solved it now by using the inheritAll=false option:
--- On Fri, 8/1/08, Hans Schwaebli <[EMAIL PROTECTED]> wrote:
From: Hans Schwaebli <[EMAIL PROTECTED]>
Subject: Re: How to call Ant scripts from Maven scripts the right way?
To: "Ant Users List"
Date: Friday, August 1,
Then I would need to change pathes if I move the Ant scripts to the maven file.
I am looking for a solution, where Maven does not interfere with the relative
pathes in the Ant scripts at all (basedir, dots etc.). This would be the
easiest.
--- On Thu, 7/31/08, supareno <[EMAIL PROTECTED]> wrot
How can I start Ant scripts from withing Maven scripts?
I tried
But it had problems with the relative path names and properties then.
Anyone knows the foolproof way to call Ant scripts from Maven?
Since November 2006 Ant Contrib is still beta 3 (ant-contrib-1.0b3-bin.zip).
Why is it not 1.0 final or so? I like these extra tasks. And why isn't
development of Ant Contrib continued? There was no release after the beta 3
release in November 2006.
For debugging purpose I want to echo the actual classpathref. But it does not
work by using something like this:
${all.you.can.need.class.path}
It prints nothing although there are jars in this dir.
Any idea how to echo it?
the page with sample output from different types of Ant
> scripts:
> http://www.nurflugel.com/webstart/AntScriptVisualizer/help/htm
> l/html/using_ant_script_visualizer.html
>
> Douglas Bullard
>
>
> On Nov 21, 2007, at 08:25, Hans Schwaebli wrote:
>
> > I once seen that
itself.
"Rebhan, Gilbert" <[EMAIL PROTECTED]> wrote:
-Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 21, 2007 8:25 AM
To: user@ant.apache.org
Subject: Tool for documenting Ant scripts
/*
I once seen that there is a tool to docu
I once seen that there is a tool to document Ant scripts. I think it created
HTML pages with images showing how the scripts and tasks relate to each other.
Can you please tell me the name of that tool so that I can download it?
-
Be a better sports nu
Eclipse seems to be still using Ant 1.6.5 because of a Ant bug.
Why does the Ant team not fix it so that Eclipse can use the new Ant version?
I quote: "Due to a bug in Ant 1.7.0, Ant builds will fail with an
IllegalArgumentException if the Eclipse installation is in a location with
sp
Thank you!
Peter Reilly <[EMAIL PROTECTED]> wrote:
http://ant.apache.org/manual/CoreTasks/basename.html
Peter
On 8/14/07, Hans Schwaebli wrote:
> There is a task called
>
> I would need a task which gives me just the filename. Any idea?
>
> Example:
> U:\projects
There is a task called
I would need a task which gives me just the filename. Any idea?
Example:
U:\projects\HSW_TST\src\com\haefele\hsw2\tst\abstractions\numbers\EntityForNumbers.java
Now I need to extract the filename "EntityForNumbers.java".
Of course these filenames a
There is a task called
I would need a task which gives me just the filename. Any idea?
Example:
U:\projects\HSW_TST\src\com\haefele\hsw2\tst\abstractions\numbers\EntityForNumbers.java
Now I need to extract the filename "EntityForNumbers.java".
Of course these filenames a
ecial output could be done with
Jan
>-Ursprüngliche Nachricht-
>Von: Hans Schwaebli [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 21. März 2007 14:35
>An: Ant Users List
>Betreff: Re: How to silence errors in SQL task or log
>
>Internal, external ... didn't m
that it is
digging in the dirt deeply because of "by design" stuff. Its not just Ant, but
CruiseControl, CVS and other stuff with such things.
Steve Loughran <[EMAIL PROTECTED]> wrote:
Hans Schwaebli wrote:
> Can anybody tell my why cannot be used for the SQL task?
because
Can anybody tell my why cannot be used for the SQL task?
I want to silence the errors if they occur when running the SQL task. But it
didn't work. Any solution? Best would be to log all errors of a certain SQL
task on info level. This flexibility I am missing.
--
-Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED]
Sent: 14 February 2007 15:01
To: Ant Users List
Subject: Does this work with Ant?
How to do this in Ant:
Call a task every x seconds for x minutes until the task completes
successful. If the task completes succe
How to do this in Ant:
Call a task every x seconds for x minutes until the task completes
successful. If the task completes successful, the build continues to the next
statement. If the task is not successful after the maximum minutes are reached,
fail.
Write a Java class to encapsul
Maybe this can help a lot with tool support. But these tools must be offered
everywhere, in Eclipse, in IntelliJ Idea, in JDeveloper, in Borland, in
NetBeans and so on. Every vendor must implement such tool support. This is a
lot of work to be done on many places, basically the same work.
Eclip
Okay, you seem to be right. I mixed it with Java.
James Abley <[EMAIL PROTECTED]> wrote: I only have limited scripting language
experience (Python, Perl, Ruby
and Groovy) but normally a variable not being set would show up at
runtime, rather than compile time? Discuss.
;-)
Hans Sch
o agree with Rob... Have you ever looked
>> > at Voice XML? It took is scripting but using XML as
>> > the "markup" language
>> >
>> > What is your aversion to XML with regards to it as a
>> > scripting language? I personally like it...
essage-
>> >From: "Anderson, Rob (Global Trade)"
>>
>> >Sent: Feb 8, 2007 12:58 PM
>> >To: Ant Users List
>> >Subject: RE: Python implementation for Ant
>> >
>> >> -Original Message-
>> >> From: Hans Schw
nal Message-
> >From: "Anderson, Rob (Global Trade)"
>
> >Sent: Feb 8, 2007 12:58 PM
> >To: Ant Users List
> >Subject: RE: Python implementation for Ant
> >
> >> -Original Message-
> >> From: Hans Schwaebli
> [mailto:[EMAI
From: "Anderson, Rob (Global Trade)"
>Sent: Feb 8, 2007 12:58 PM
>To: Ant Users List
>Subject: RE: Python implementation for Ant
>
>> -Original Message-
>> From: Hans Schwaebli [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, February 07, 2007 3:01 AM
&
maged if two keys have
been pressed too fast after each other. Nowadays we still use that ineffective
keyboard layout although the original reason no longer applies. You see?
"Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote: > -Original
Message-
> From: Ha
I have a SQL query which returns one result like 388291. I want to use that
result as a property.
How can this be done in Ant?
In a script language like Python (haha) this is no problem. But how to solve
it with Ant?
If I use the SQL-Task I only can write the result to disk. It
I reply to all of you here.
For me it does not matter so much, if Ant's XML is replaced by Python,
Jython, Groovy or another scripting language. I think all would be better for
writing Ant scripts than the XML way.
In the beginning of Ant, XML seemed to be a good way. But as it evolve
Maybe Ant was not designed for easy programmatical use?
Robert Koberg <[EMAIL PROTECTED]> wrote:
On Wed, 07 Feb 2007 09:49:16 -0500, Hans Schwaebli
wrote:
> Why not offer writing Ant scripts in Jython and XML? Let developers
> choose. But now they have no real choice for Ant s
Steve Loughran ...
If I dislike something it has nothing to do with religion. You can't avoid
discussions by simply stating they are religious.
I am not anti-XML in general, but I don't think this format makes any sense
for a scripting or programming language. Even the first creator o
What do you think about the XML format used for writing Ant scripts? I don't
like it.
What about writing Ant scripts in a script language like Python or Jython
instead of writing them in XML? I think it would be much more productive.
There seems to be a private project for this, but i
I am searching for an editor which shows me for example that a property is not
set if called from another method.
To me, Ant scripts are similiar to a programming language. The Eclipse Java
editor shows a lot of feedback (errors and warnings) for Java programs while
writing. I wish somethi
I need to exclude some files when deleting with Ant.
Best to explain it with example:
c:\a\b\c\d\e
Lets assume I want to delete all files and empty folders in c:\a and
subfolders except the files directly under c:\a\b. The files and empty folders
in c:\a\b\c and subfolders need
using the unless attributes. What we
> may be able to do is skip the form display if no "widget" (antform
> sub-element)
> is to be displayed.
>
> Would that be ok for you?
>
> Patrick
>
> Quoting Hans Schwaebli :
>
> > The thing I tried to suggest kindl
ferent from [input] . It allows
user
to override default values.
However, I missed the fact that you were using the unless attributes. What we
may be able to do is skip the form display if no "widget" (antform sub-element)
is to be displayed.
Would that be ok for you?
Patrick
Quotin
ady set.
Regards, Gilbert
-Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 11:06 AM
To: Ant Users List
Subject: AntForm question
When I run this, the form is shown, although all properties are already
set. If all properties are set, why d
When I run this, the form is shown, although all properties are already set. If
all properties are set, why does it show the form? More important? How can I
teach Antform not to show the form if all properties are set?
To send a mail, use t
ingTarget();
>> currentLocation = selfAsTarget.getLocation();
>> project.log(currentLocation + "Target '" + currentTarget +
>>"'");
>> ]]>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
I have to reply to a message because if I post my problem as a new message it
is always rejected as spam!
Here is it:
I want to echo the current target name. Is this possible?
There is no build-in property ant.target.name. Maybe another way?
Why I want to do this? Because if a
Why does it take so long to finish the next version of Ant?
Because of the delay of the next Ant version, the next version of Cruise
Control is delayed too.
At least you should have released quickly a Ant version with built in support
for JUnit 4.
Antoine Levy-Lambert <[EMAIL PROTECTED]> wro
Can I reuse a classpath across different Ant files?
Simple example:
This classpath I want to use in different Ant files, without having to copy
and paste it. Can I reuse it? If yes, how?
-
Yahoo! Messenger with Voice.
tLevel(Project.MSG_VERBOSE);
logger.setOutputPrintStream(System.out);
logger.setErrorPrintStream(System.err);
logger.setEmacsMode(false);
return logger;
}
Regards,
Antoine
On Aug 22, 2006, at 10:58 AM, Hans Schwaebli wrote:
> I am using some Ant tasks programatically like:
> ReplaceRe
I am using some Ant tasks programatically like:
ReplaceRegExp r = new ReplaceRegExp();
r.setProject(new Project());
r.setFile(file);
r.setFlags("");
r.setMatch(removal);
r.setReplace("-- removed line");
r.execute();
How can I enable logging? If I execute the program, which uses t
It wouldn't help here because javac.exe writes to error stream both warnings
and errors. javac.exe should be quiet regarding warnings if I say so
(nowarn=true), but not regarding errors. Thats the problem.
James Abley <[EMAIL PROTECTED]> wrote:
I run 1.6.5 and haven't looked in SVN to see i
el
i also think that this little task should be part of ant.
We use it quit often for chatty :-) tasks.
Regards, Gilbert
-Original Message-
From: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 11:28 PM
To: Ant Users List
Subject: Re: How to silence javac t
You mean "when not using ASCII art", because of that "feature"...
Gilbert Rebhan <[EMAIL PROTECTED]> wrote: Hi,
don't worry it's also in Eclipse 3.2 :-),which i use
I wouldn't call it a bug, it's enough if you
know that behaviour when using ascii
I now believe it is because of Eclipse. Tomorrow I will test it.
By the way, I want to use this ASCII art:
,-._.-._.-._.-._.-.
`-. ,-'
.--. | |
|| |
asda
[echo] ASDF
[echo] 12345678
[echo]
[echo] asdf
main:
[echo] ech o 1
[echo] echo 2
So the output is beautified by your IDE :-)
Regards, Gilbert
-Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 12:57
Doesn't work to solve the problem.
James Abley <[EMAIL PROTECTED]> wrote: CDATA?
Hans Schwaebli wrote:
> Doesn't work. Same effect.
>
> Lets say you have three spaces in a row. They are all trimmed.
>
>
> "Rebhan, Gilbert" wrote:
>
> Yup
otal time: 0 seconds
>
>
>What's wrong?
>
>Jan
>
>
>
>>-Ursprüngliche Nachricht-
>>Von: James Abley [mailto:[EMAIL PROTECTED]
>>Gesendet: Mittwoch, 9. August 2006 12:04
>>An: Ant Users List
>>Betreff: Re: doesn't work for ASCII ar
echo] ASDF
[echo] 12345678
[echo] asdf
means the spaces on line 1 stay as they are
show some snippets we need more details here
Regards, Gilbert
-Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 12:02 PM
To: Ant Users List
Subject: RE:
ing your first mail a second time =
i first thought you had probs with linefeeds, but you wrote
"multiple spaces are trimmed"
why are spaces trimmed when using ???
Regards, Gilbert
-----Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2
\
\n line5 \
\n line6 \
you have to wrap every line of your ascii art between \n and \
and then ${myasciiart}
Regards, Gilbert
-Original Message-
From: Hans Schwaebli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 9:47 AM
To: user@ant.apache.org
Subject: doesn't
I want to echo ASCII art.
But since multiple spaces are trimmed, it does not work.
How can I do it?
-
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
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 re
}
}
map it to a taskdef and use it like that =
... your javac stuff goes here ... only errors should be listed
and afterwards set the default noiselevel again.
That's what i do to shorten logfiles when using talkative tasks like f.e.
Regards, Gilbert
-Original Message-
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:
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 <[EMAIL PROTECTED]> wrote: Hans Schwaebli wrote:So how can I get
rid of these warnings? How can I influence ja
Does not work because we have to implement new important features for our
software and we have to fix bugs instead of losing time on hundreds of
meaningless compiler warnings. You see?
"Stephen McConnell (DPML)" <[EMAIL PROTECTED]> wrote:
Probably the most productive strategy way would be to
When I use the javac task, warnings are printed to the console:
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlin
61 matches
Mail list logo