Re: java task and classpath problem

2003-11-11 Thread Caoilte O'Connor
sorry. i should have been clearer. it couldn't find the class i was trying to execute (ie the one with main in). error: [java] Could not find net.sportplan.dbunit.DBUnitUtils. Make sure you have it in your class path. (DBUnitUtils is the class with main in.) debug doesn't help 'caus it doesn't

RE: Including directories that may or may not exist

2003-11-11 Thread Jan . Materne
> Quoting Stefan Bodewig <[EMAIL PROTECTED]>: > > (and any other task of the family) will only work on > > existing files and directories. You'll have to make sure that they > > exist using (which will silently do nothing if the directory > > already exists). > > Would it make sense to have an

Re: Including directories that may or may not exist

2003-11-11 Thread J. Xue
Quoting Stefan Bodewig <[EMAIL PROTECTED]>: > (and any other task of the family) will only work on > existing files and directories. You'll have to make sure that they > exist using (which will silently do nothing if the directory > already exists). Would it make sense to have an 'optional' at

Re: java task and classpath problem

2003-11-11 Thread Stefan Bodewig
On Tue, 11 Nov 2003, Caoilte O'Connor <[EMAIL PROTECTED]> wrote: > The below fails with a "not found on classpath error" Which class is it that Ant cannot find? Does ant -debug give any hints? Stefan - To unsubscribe, e-mail:

java task and classpath problem

2003-11-11 Thread Caoilte O'Connor
Hi, I think I'm just getting very confused about basic classpath stuff. could anyone spare thirty seconds to tell me why the first of these works and the second fails. It's tryi

Properties files are not properly loaded when testing class under junit task (possible bug)

2003-11-11 Thread Valmaña
Dear Members,   I have detected that the junit task doesn't take into account a change on the variable user.language, for example on the invokation: ant -Duser.language=en (my deafult language is spanish). The user.language takes effect, but the junit test class read wrong the properties file (for

RE: How to print out a structure

2003-11-11 Thread Jan . Materne
Are you sure, that JAR file exists there? What means "ant -verbose"? BTW - if you save that jar in ANT_HOME/lib, you don´t have to use the classpath attribute, it´s already included by the launchers. Jan > -Original Message- > From: Conelly, Luis (EM, DDEMESIS) [ma

Re: Including directories that may or may not exist

2003-11-11 Thread Stefan Bodewig
On Mon, 10 Nov 2003, Dhruva B. Reddy <[EMAIL PROTECTED]> wrote: > We are trying to build a WAR file, and need to include a directory > which may or may not be available. Is there an easy way to do this? (and any other task of the family) will only work on existing files and directories. You'l

Re: Java task failing with AntSecurityException

2003-11-11 Thread Stefan Bodewig
On Mon, 10 Nov 2003, Jeremy Nix <[EMAIL PROTECTED]> wrote: > [java] org.eclipse.ant.core.AntSecurityException > [java] at > org.eclipse.ant.internal.core.ant.AntSecurityManager.checkExit(AntSecurityManager.java:44) Obviously you are running Ant within Eclipse ;-) Eclipse seems to set a Securit