RE: path performance

2006-10-17 Thread David Corley \(AT/LMI\)
Hey Kevin, If you put all of your tests into a Junit testsuite, and use the paremeter of the task, junit will load the classpath once and use it for all tests. Sometimes this isn't possible because of dependency issues between tests, but give it a whirl. /Dave This communication is co

RE: path performance

2006-10-17 Thread Chun Ji
Have you tried "testNG", it may load all these jar files once, for all the test cases. and it can be executed through ant and lots of other features. -cji -Original Message- From: Kevin Cline [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006 3:16 PM To: user@ant.apache.org Sub

path performance

2006-10-17 Thread Kevin Cline
I am working on a complex project with a LOT of JARs on the classpath. Currently we are using this path element: This path is used in this junit element:

Re: AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread Matt Benson
--- Peter Reilly <[EMAIL PROTECTED]> wrote: [SNIP] > > I have just checked the revision history, > since the initial checkin (6 years, 9 months), > has always added > the destination path to the classpath for the javac > command. > > It does not seem to be necessary? but I do not know > if > we

Re: AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread Peter Reilly
On 10/17/06, Chavdar Botev <[EMAIL PROTECTED]> wrote: Peter, I repeated the steps you described and I can confirm that with the -classpath argument the compilation fails and without it the compilation succeeds. I also tried running javac on "src/test/*.java" instead of "src/test/Test3.java". In

Re: AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread Chavdar Botev
Peter, I repeated the steps you described and I can confirm that with the -classpath argument the compilation fails and without it the compilation succeeds. I also tried running javac on "src/test/*.java" instead of "src/test/Test3.java". In this case, the compilation succeeds with or without -cl

Re: AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread Chavdar Botev
I have opened a bug report at http://issues.apache.org/bugzilla/show_bug.cgi?id=40776. Thanks, Chavdar On 10/17/06, Peter Reilly <[EMAIL PROTECTED]> wrote: On 10/17/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: > Failed for me using Fedora Core 5, sun JDK 1.5_08 > > I don't think its javac as I

Re: ant and classloading

2006-10-17 Thread Jacob Kjome
Quoting Peter Reilly <[EMAIL PROTECTED]>: > On 10/17/06, Jacob Kjome <[EMAIL PROTECTED]> wrote: > > > > Very interesting stuff. I will definitely use your tasks for my own > > build files. It would be very nice if your tasks were added to > > Ant-1.7. Any luck with that so far? > > > > I actual

Re: AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread Peter Reilly
On 10/17/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: Failed for me using Fedora Core 5, sun JDK 1.5_08 I don't think its javac as I was able to do this: touch src/test/Test3.java javac -d bin -sourcepath src -classpath bin src/test/Test3.java That worked me as well, however I modifed the bu

Re: Ant and the Windows Registry

2006-10-17 Thread Robert Pepersack
I got orangevolt to run without error, but it doesn't drill down in the registry as far as I need. In the registry path HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Jaguar/Parameters/CLASSPATH, it only goes down as far as CurrentControlSet. Here's the snippet from my build file:

Re: AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread Scot P. Floess
Failed for me using Fedora Core 5, sun JDK 1.5_08 I don't think its javac as I was able to do this: touch src/test/Test3.java javac -d bin -sourcepath src -classpath bin src/test/Test3.java Javac seems to find everything correctly...but the javac task in ant is having difficulties. One thing

Re: Ant and the Windows Registry

2006-10-17 Thread Martin Gainty
yep ..Old enough to remember Integrated Circuit Emulators Looks Good Thx, This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that y

Re: AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread James Abley
Fails for me: Ubuntu Dapper, Ant 1.6.5, Sun JDK 1.5.0_07 bash:$ ant -v bash:$ touch test/Test3.java bash:$ ant -v [javac] /work/ant-test/ant-generics/test/Test3.java [javac] /work/ant-test/ant-generics/test/Test3.java:8: incompatible types [javac] found : test.Base

Re: Ant and the Windows Registry

2006-10-17 Thread Peter Reilly
Another one is http://www.trustice.com/java/jnireg/index.shtml this is used by the judo language: http://www.judoscript.com/ref/index.html I have not tried this. Peter On 10/17/06, Martin Gainty <[EMAIL PROTECTED]> wrote: Robert- I do not have ntdll.dll (unless of course this is packaged in t

Re: a problem compiling a Java 5 project with generics

2006-10-17 Thread Scot P. Floess
It fails for me too... There must be some issue with using inner classes...I can't figure this one out... Peter Reilly wrote: On 10/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Works for me with Ant 1.6.5 and 1.7beta2 and the given java sources (with and without the commented line).

AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread Jan.Materne
Also no problems on WinXP, Ant 1.6.5 and Java 1.5.0_06-b05. >setant 165 Apache Ant version 1.6.5 compiled on June 2 2005 >setjava 15 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) >del test\*.class

Re: Ant and the Windows Registry

2006-10-17 Thread Martin Gainty
Robert- I do not have ntdll.dll (unless of course this is packaged in the roxes distro) I have noticed that The roxes site is down for maintenance When their site is operational ...I would urge you to contact them directly In the meanwhile I found this Registry poke utility available at mindprod

Re: a problem compiling a Java 5 project with generics

2006-10-17 Thread Peter Reilly
On 10/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Works for me with Ant 1.6.5 and 1.7beta2 and the given java sources (with and without the commented line). This works by itself, but touch Test3.java and run again. Peter Jan >-Ursprüngliche Nachricht- >Von: Pet

Re: Ant and the Windows Registry

2006-10-17 Thread Peter Reilly
On 10/17/06, Robert Pepersack <[EMAIL PROTECTED]> wrote: OK. I got it to run by putting both orangevolt-ant-tasks-1.3.5.jar and roxes-win32forjava-1.0.4.jar in Ant's lib directory. But, when I run it, I get this ugly error. I don't know the JNI, so I have no idea how to deal with this problem:

AW: a problem compiling a Java 5 project with generics

2006-10-17 Thread Jan.Materne
Works for me with Ant 1.6.5 and 1.7beta2 and the given java sources (with and without the commented line). Jan >-Ursprüngliche Nachricht- >Von: Peter Reilly [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 17. Oktober 2006 11:39 >An: Ant Users List >Betreff: Re: a problem

Re: Check if file already exists

2006-10-17 Thread Matt Benson
--- Christian Hauser <[EMAIL PROTECTED]> wrote: > Hello > > I'd like to check within an Ant target whether a > particular file already > exists on the disk and if not download the file > (using the Get Ant task). > > How do I best check if the file already exists? > > Any help (preferably with

Re: Ant and the Windows Registry

2006-10-17 Thread Dominique Devienne
On 10/17/06, Robert Pepersack <[EMAIL PROTECTED]> wrote: OK. I got it to run by putting both orangevolt-ant-tasks-1.3.5.jar and roxes-win32forjava-1.0.4.jar in Ant's lib directory. But, when I run it, I get this ugly error. I don't know the JNI, so I have no idea how to deal with this problem:

Re: Ant and the Windows Registry

2006-10-17 Thread Robert Pepersack
OK. I got it to run by putting both orangevolt-ant-tasks-1.3.5.jar and roxes-win32forjava-1.0.4.jar in Ant's lib directory. But, when I run it, I get this ugly error. I don't know the JNI, so I have no idea how to deal with this problem: An unexpected exception has been detected in native code

AW: Task help

2006-10-17 Thread Jan.Materne
>1. How to unzip a folder on a remote server (Windows NT), >I am unable >to nest it inside of FTP. > >I am zipping a folder on local machine and FTP'ing it to the >server, but I need to unzip it in tmp folder and move the >unzipped folder to the right path on the server. Does REXEC >work fo

Task help

2006-10-17 Thread Muthyala, Sunil
Hello all, I am trying to automate some tasks and I need your help. 1. How to unzip a folder on a remote server (Windows NT), I am unable to nest it inside of FTP. I am zipping a folder on local machine and FTP'ing it to the server, but I need to unzip it in tmp folder and move the un

Re: Ant and the Windows Registry

2006-10-17 Thread Peter Reilly
Also, remove the orangevolt-ant-tasks-1.3.5.jar from ${user.home}/.ant/lib, and from the CLASSPATH otherwise you will have nasty classloader problems, the two jar files should be in the same classloader. Peter On 10/17/06, Peter Reilly <[EMAIL PROTECTED]> wrote: Ok, on checking, you do need bo

Re: Ant and the Windows Registry

2006-10-17 Thread Peter Reilly
Ok, on checking, you do need both jar files. roxes-win32forjava-1.0.4.jar and orangevolt-ant-tasks-1.3.5.jar Try placing both in a directory - say c:/apps/roxes/lib then do: Peter On 10/17/06, Dominique Devienne <[EMAIL PROTECTED]> wrote: On 10/17/0

Re: Ant and the Windows Registry

2006-10-17 Thread Dominique Devienne
On 10/17/06, Robert Pepersack <[EMAIL PROTECTED]> wrote: I tried doing that by putting, roxes-win32forjava-1.0.4.jar, which contains com/roxes/win32/UrlFile, into the classpath in my build file. But I got the same error. Then run with -verbose (or -debug) and see what stack trace you are gettin

Re: Ant and the Windows Registry

2006-10-17 Thread Robert Pepersack
I tried doing that by putting, roxes-win32forjava-1.0.4.jar, which contains com/roxes/win32/UrlFile, into the classpath in my build file. But I got the same error. Robert Pepersack Senior Lead Developer Maryland Insurance Administration 410-468-2054 >>> [EMAIL PROTECTED] 10/17/2006 9:02:27 AM >>

Re: Ant and the Windows Registry

2006-10-17 Thread Dominique Devienne
BUILD FAILED C:\MIAEnterpriseSystem\Delivery8.0\build.xml:40: taskdef A class needed by class com.orangevolt.tools.ant.Win32ShortcutTask cannot be found: com/roxes/win32/UrlFile This is telling you OrangeVolt apparently depends on the Roxes Ant tasks. This is likely documented somewhere. You got

Re: Ant and the Windows Registry

2006-10-17 Thread Robert Pepersack
I tried the Java Preferences API, but it won't let you access registry entries. It will only let you read/write to registry entries that you create specifically for your Java application, based on the Java package. So, I tried orangevolt, but I get this error: BUILD FAILED C:\MIAEnterpriseSystem

Re: ant and classloading

2006-10-17 Thread Peter Reilly
On 10/17/06, Jacob Kjome <[EMAIL PROTECTED]> wrote: Very interesting stuff. I will definitely use your tasks for my own build files. It would be very nice if your tasks were added to Ant-1.7. Any luck with that so far? I actually did come up with a solution to my problem, though. I need to

Re: a problem compiling a Java 5 project with generics

2006-10-17 Thread Peter Reilly
Can you enter a bugzilla report about this. It is very strange. I tried on the commandline: javac -target 1.5 -g -source 1.5 -sourcepath src -d build\classes src\org\test\Test3.java which works fine - and looks very like the command used by ant. Peter On 10/17/06, Chavdar Botev <[EMAIL PROT

Re: a problem compiling a Java 5 project with generics

2006-10-17 Thread Chavdar Botev
Hi For some reason, the mailing server included only the first attachment. Since this is the fourth or the fifth time I am trying to send the java files, I give up. I'll inline them in the message. // src/test/Base.java package test; public class Base {} // src/test/Sub.java package test; publ