Re: Unzip task question

2008-09-10 Thread Hans Schwaebli
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

Unzip task question

2008-09-10 Thread Hans Schwaebli
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:                

sshexec and logging

2008-08-13 Thread Hans Schwaebli
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

Re: How to call Ant scripts from Maven scripts the right way?

2008-08-01 Thread Hans Schwaebli
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,

Re: How to call Ant scripts from Maven scripts the right way?

2008-07-31 Thread Hans Schwaebli
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 to call Ant scripts from Maven scripts the right way?

2008-07-31 Thread Hans Schwaebli
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?

Ant Contrib Beta 3 for a long time, why?

2008-07-31 Thread Hans Schwaebli
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.

How to echo the classpathref?

2008-07-09 Thread Hans Schwaebli
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?

Re: AW: Tool for documenting Ant scripts

2007-11-26 Thread Hans Schwaebli
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

RE: Tool for documenting Ant scripts

2007-11-20 Thread Hans Schwaebli
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

Tool for documenting Ant scripts

2007-11-20 Thread Hans Schwaebli
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 still using Ant 1.6.5 because of bug in Ant 1.7.0

2007-10-25 Thread Hans Schwaebli
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

Re: How to get the simple file name?

2007-08-14 Thread Hans Schwaebli
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

How to get the simple file name?

2007-08-14 Thread Hans Schwaebli
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

How to get the simple file name?

2007-08-14 Thread Hans Schwaebli
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

Re: AW: How to silence errors in SQL task or log

2007-03-21 Thread Hans Schwaebli
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

Re: How to silence errors in SQL task or log

2007-03-21 Thread Hans Schwaebli
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

How to silence errors in SQL task or log

2007-03-20 Thread Hans Schwaebli
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. --

RE: Does this work with Ant?

2007-02-14 Thread Hans Schwaebli
-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

Does this work with Ant?

2007-02-14 Thread Hans Schwaebli
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

Re: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
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

Re: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
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

Re: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
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...

RE: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
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

RE: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
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

RE: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
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 &

RE: Python implementation for Ant

2007-02-08 Thread Hans Schwaebli
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

Using SQL query result as a property, how?

2007-02-08 Thread Hans Schwaebli
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

Re: Python implementation for Ant

2007-02-07 Thread Hans Schwaebli
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

Re: Python implementation for Ant

2007-02-07 Thread Hans Schwaebli
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

Re: Python implementation for Ant

2007-02-07 Thread Hans Schwaebli
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

Python implementation for Ant

2007-02-07 Thread Hans Schwaebli
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

Good editor for Ant scripts?

2007-02-07 Thread Hans Schwaebli
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

Exclusion filter

2007-01-30 Thread Hans Schwaebli
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

Re: AntForm question

2006-11-30 Thread Hans Schwaebli
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

RE: AntForm question

2006-11-29 Thread Hans Schwaebli
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

RE: AntForm question

2006-11-29 Thread Hans Schwaebli
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

AntForm question

2006-11-29 Thread Hans Schwaebli
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

Re: AW: How to silence javac task?

2006-11-28 Thread Hans Schwaebli
ingTarget(); >> currentLocation = selfAsTarget.getLocation(); >> project.log(currentLocation + "Target '" + currentTarget + >>"'"); >> ]]> >> >> >> >> >> >> >> >> >> >> >>

Re: How to silence javac task?

2006-11-27 Thread Hans Schwaebli
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

Re: Ant 1.7.0Beta3 released

2006-10-15 Thread Hans Schwaebli
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

Reusing classpath across different Ant files

2006-08-22 Thread Hans Schwaebli
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.

Re: How to enable logging when using Ant programatically?

2006-08-22 Thread Hans Schwaebli
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

How to enable logging when using Ant programatically?

2006-08-22 Thread Hans Schwaebli
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

Re: How to silence javac task?

2006-08-16 Thread Hans Schwaebli
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

RE: How to silence javac task?

2006-08-11 Thread Hans Schwaebli
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

Re: doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
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

RE: doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
I now believe it is because of Eclipse. Tomorrow I will test it. By the way, I want to use this ASCII art: ,-._.-._.-._.-._.-. `-. ,-' .--. | | || |

RE: doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
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

Re: doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
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

Re: AW: doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
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

RE: doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
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:

RE: doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
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

RE: doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
\ \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

doesn't work for ASCII art

2006-08-09 Thread Hans Schwaebli
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.

Re: How to silence javac task?

2006-08-08 Thread Hans Schwaebli
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

RE: How to silence javac task?

2006-08-08 Thread Hans Schwaebli
} } 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-

Re: How to silence javac task?

2006-08-08 Thread Hans Schwaebli
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:

Re: How to silence javac task?

2006-08-07 Thread Hans Schwaebli
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

RE: How to silence javac task?

2006-08-07 Thread Hans Schwaebli
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

How to silence javac task?

2006-08-07 Thread Hans Schwaebli
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