Re: "catching" test failure/error (or more generally failure within calls)

2007-09-24 Thread Geoffrey Mitchell
Use the "failureproperty" attribute of the junit task to set a property on failure. How to propagate that back to your top level build is another question. You could write out a file and check for it, I suppose. Greg Irvine wrote: I would like to fail our build on junit test failure and sti

CVS Change Log Problem

2007-09-24 Thread Anand J. Vithalani
Hi I am using ant task . In my Repository there are multiple Branches beside main(root). I am looking for changelogs only for main(root) branch & not other. The XML result returned by Ant cvschangelog task includes results of all branches along with root branch result. Is there any way

"catching" test failure/error (or more generally failure within calls)

2007-09-24 Thread Greg Irvine
I would like to fail our build on junit test failure and still produce the junit report. Easy enough generally, however, our build runs somewhat similarly to make in that I have an ant properties file in each folder that describes the list of folders to build within that folder, and using common i

Re: Setting the Endorsed Directory Location

2007-09-24 Thread Anthony N. Frasso
Ugh my apologies, Martin. My system had been set to use Java 5 as the default. Inside the buildfile I was using Java 1.4, but when I typed "javac -help" from the command line I saw the -endorseddirs option! In any case... I tried the extdirs option, but that doesn't work either; I'm beginnin

RE: ant script just hang when checking out of CVS

2007-09-24 Thread Barry Pape
I seem to remember having issues when trying to use passfile and ended up using ssh keys on the client and server instead. http://www.sshkeychain.org/mirrors/SSH-with-Keys-HOWTO/SSH-with-Keys-HOW TO-4.html -Original Message- From: Theepan. T [mailto:[EMAIL PROTECTED] Sent: Monday, Septemb

Re: Task to Create Eclipse and IDEA Project Files

2007-09-24 Thread mgainty
download maven-idea-plugin-1.7.jar from http://repo1.maven.org/maven2/maven/maven-idea-plugin/1.7/ install the maven-idea-plugin-1.7.jar $M2_HOME\bin>mvn install:install-file -Dfile=maven-idea-plugin-1.7.jar -Dversion=1.7 -Dpackag ing=jar -DartifactId=maven-idea-plugin -DgroupId=org.apache.maven.p

RE: Task to Create Eclipse and IDEA Project Files

2007-09-24 Thread Dees, Ian (GE Healthcare)
Yes that's exactly what I'm looking for, but I would prefer to have ant Ant task to do what Maven is doing with mvn eclipse:eclipse. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sunday, September 24, 2000 12:56 PM To: Ant Users List Subject: Re: Task to Create E

ant script just hang when checking out of CVS

2007-09-24 Thread Theepan. T
I am writing an ant script to checkout a module from the CVS repository. I have installed cygwin cvs.exe and ssh.exe client. I also have the following environmental variables set: CVSROOT=:ext:[EMAIL PROTECTED]:/cvsroot CVS_RSH=ssh When I checkout on the command prompt using this command: “cvs c

Re: Task to Create Eclipse and IDEA Project Files

2007-09-24 Thread Martin Gainty
ah...this should be a bit more useful.. cd /TheDirectoryWhichContainsYourPom.xml mvn eclipse:eclipse you'll see an Eclipse .project which you can then import into Eclipse Martin-- - Original Message - From: "Dees, Ian (GE Healthcare)" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Mond

RE: Task to Create Eclipse and IDEA Project Files

2007-09-24 Thread Dees, Ian (GE Healthcare)
I think you misunderstood what I was looking for. I'd like to create an Ant target to create the actual Eclipse and IntelliJ project files based on the dependencies specified in the pom.xml for our projects. I don't need to run anything in Eclipse or IntelliJ, and I don't need to use Eclipse or In

Re: Task to Create Eclipse and IDEA Project Files

2007-09-24 Thread Martin Gainty
Good Morning Ian- the ability to run eclipse projects via the org.eclipse.ant.core plug-in. http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv /guide/ant_eclipse_tasks.htm Also any library additions fpr accessing native methods must be handled by the Eclipse plugin librar

A bug with DispatchTask?

2007-09-24 Thread Derek Alexander
Seems to be a bug in DispatchTask, or am I doing something wrong? package foo; import org.apache.tools.ant.dispatch.DispatchTask; public class Baa extends DispatchTask { public void beep() throws BuildException { ... } ... } ... Apache Ant version

Task to Create Eclipse and IDEA Project Files

2007-09-24 Thread Dees, Ian (GE Healthcare)
Is there an Ant task somewhere that mirrors the maven behavior for creating Eclipse .project and .classpath along with Intellij .iml and .imr files based on the dependencies specified pom.xml? Currently we are using Ant with the Maven plugin so that we can take advantage of the dependency grap

Re: Modify xml based on a configuration file

2007-09-24 Thread Brian Agnew
I would use xmltask to insert the below into a dynamically built build.xml, and then execute a new Ant task to run that. Brian On Fri, September 21, 2007 20:42, Karsten Kousgaard wrote: > Hello > > I'm doing my first ANT project, but have faced a problem that I'm not able > to solve. I have a xml

RE: Putting markup in the message of an echo task

2007-09-24 Thread Rebhan, Gilbert
Hi, -Original Message- From: boomdizzle [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 7:22 AM To: user@ant.apache.org Subject: Putting markup in the message of an echo task /* Hi, I want to echo html to a file from an ant script. Obviously, this is not working I get t