It sounds like the build/refresh option is set on the ant task. i.e. refresh/build before run is on and this is causing the "ages to kick off".
Take a look at the "progress" view and you'll be able to see what it is doing when you kick off the task. We instrument our hibernate classes in a similar fashion and don't experience wait times at all. Also make sure that at the end of the ant build you refresh the classes that have changed, or eclipse won't know they're changed. You might also consider adding the ant build as a "build task" on the project, might cause things to happen at the right time. Michael Wiles Java Developer 021 947-4695 083 652-8131 "Enrico Goosen" <[EMAIL PROTECTED]> Sent by: [email protected] 2007/10/16 02:31 PM Please respond to [email protected] To <[email protected]> cc Subject [CTJUG Forum] Re: Eclipse Europa I ran ant compile from the command line (with only 1 class to compile as before) and it took 39 seconds compared to the 8+ mins in eclipse! From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Bobby Quinne Sent: Tuesday, October 16, 2007 2:25 PM To: [email protected] Subject: [CTJUG Forum] Re: Eclipse Europa Personally I have never trusted eclipse to run build files when I have used it. Project environment setting seem to bleed in and cause odd situations to occur. Quick fix would be just run cli. On 10/16/07, Enrico Goosen <[EMAIL PROTECTED]> wrote: Here's the ant target: <target name="compile" depends= "resources" description= "Compile and enhance Java sources"> <!-- Delete the classes if the JDO meta data has been changed. They need to be recompiled and enhanced. --> <dependset> <srcfileset dir="src" includes= "**/*.jdo" /> <targetfileset dir="${classes}" includes= "**/*.class" /> </dependset> <javac srcdir="src" destdir= "${classes}" classpathref= "classpath" debug="true" nowarn= "on" deprecation= "off"/> <jdo-enhance project="${jdo.project}" outputDir= "${classes}" hyperdriveDir="${classes}" > <persistentaware dir="${classes}" /> </jdo-enhance> <jdo-enhance project="${jdo.project1}" outputDir= "${classes}" hyperdriveDir="${classes}" > <persistentaware dir="${classes}" /> </jdo-enhance> </target> PS. Even if I remove the dependset, it still takes ages. Something has changed between Eclipse versions that's caused this problem. I know that there have been changes in this version to make eclipse 'recognize' ant compiled classes. From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Bobby Quinne Sent: Tuesday, October 16, 2007 1:41 PM To: [email protected] Subject: [CTJUG Forum] Re: Eclipse Europa Is the javac task only operating on the source code directory? Since only 1 file is being compiled I wonder if its looking at a horde of files in the project directory and checking if they are uptodate before compiling.. On 10/16/07, Enrico Goosen < [EMAIL PROTECTED]> wrote: This is what it outputs: Buildfile: C:\clearcase\capri_stage\CapriCodeBase\capri\build.xml init: resources : [copy ] Copying 1 file to C:\clearcase\capri_stage\CapriCodeBase\capri\ebadmin\WEB-INF\classes [copy ] Copying 1 file to C:\clearcase\capri_stage\CapriCodeBase\capri\ebadmin\WEB-INF\classes [copy ] Copying 1 file to C:\clearcase\capri_stage\CapriCodeBase\capri\ebadmin\WEB-INF\classes [copy ] Copying 1 file to C:\clearcase\capri_stage\CapriCodeBase\capri\ebadmin\WEB-INF\classes compile: then a long wait (couple of minutes), and then? [javac ] Compiling 1 source file to C:\clearcase\capri_stage\CapriCodeBase\capri\ebadmin\WEB-INF\classes Strange? From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Bobby Quinne Sent: Tuesday, October 16, 2007 12:19 PM To: [email protected] Subject: [CTJUG Forum] Re: Eclipse Europa Does Eclipse have some diagnostic logging to see what its doing when ant invoked? On 10/15/07, Enrico Goosen < [EMAIL PROTECTED]> wrote: Hi, I'm experiencing a problem with my ant compile task inside Eclipse 3.3. It's taking AGES to kick off. This wasn't the case with the previous version of Eclipse. Has anyone else also experienced this with the new version? Enrico Goosen Software Developer Metropolitan Employee Benefits Email: [EMAIL PROTECTED] Direct: 021 940 6231 Fax: 021 917 3089 Mobile: 083 305 5676 "NOTE: This message (including attachments) is subject to all the restrictions, qualifications and disclaimers of the Metropolitan group of companies ("Metropolitan") published at http://www.metropolitan.co.za (collectively the "disclaimers") and by reading this message and/or opening any attachment you are deemed to have agreed to be bound by the provisions of the disclaimers. If you cannot access any of the disclaimers, kindly send an e-mail to [EMAIL PROTECTED] or contact [EMAIL PROTECTED] and a copy will be sent to you. Metropolitan is an authorised Financial Services Provider. Web: http://www.metropolitan.co.za/ Disclaimer: http://www.metropolitan.co.za/email_disclaimer.html Metropolitan subscribes to KPMG, a completely independent crime disclosure service - make a contribution to the establishment of a fraud free environment by reporting any suspicion to the KPMG Hotline * RSA 0800 22 14 18 * NAMIBIA 0800 00 00 77" -- If you have something tough, give it to the Americans. If you have something difficult, give it to the Indians. If you have something impossible, give it to the Russians "NOTE: This message (including attachments) is subject to all the restrictions, qualifications and disclaimers of the Metropolitan group of companies ("Metropolitan") published at http://www.metropolitan.co.za (collectively the "disclaimers") and by reading this message and/or opening any attachment you are deemed to have agreed to be bound by the provisions of the disclaimers. If you cannot access any of the disclaimers, kindly send an e-mail to [EMAIL PROTECTED] or contact [EMAIL PROTECTED] and a copy will be sent to you. Metropolitan is an authorised Financial Services Provider. Web: http://www.metropolitan.co.za/ Disclaimer: http://www.metropolitan.co.za/email_disclaimer.html Metropolitan subscribes to KPMG, a completely independent crime disclosure service - make a contribution to the establishment of a fraud free environment by reporting any suspicion to the KPMG Hotline * RSA 0800 22 14 18 * NAMIBIA 0800 00 00 77" -- If you have something tough, give it to the Americans. If you have something difficult, give it to the Indians. If you have something impossible, give it to the Russians "NOTE: This message (including attachments) is subject to all the restrictions, qualifications and disclaimers of the Metropolitan group of companies ("Metropolitan") published at http://www.metropolitan.co.za (collectively the "disclaimers") and by reading this message and/or opening any attachment you are deemed to have agreed to be bound by the provisions of the disclaimers. If you cannot access any of the disclaimers, kindly send an e-mail to [EMAIL PROTECTED] or contact [EMAIL PROTECTED] and a copy will be sent to you. Metropolitan is an authorised Financial Services Provider. Web: http://www.metropolitan.co.za/ Disclaimer: http://www.metropolitan.co.za/email_disclaimer.html Metropolitan subscribes to KPMG, a completely independent crime disclosure service - make a contribution to the establishment of a fraud free environment by reporting any suspicion to the KPMG Hotline * RSA 0800 22 14 18 * NAMIBIA 0800 00 00 77" -- If you have something tough, give it to the Americans. If you have something difficult, give it to the Indians. If you have something impossible, give it to the Russians "NOTE: This message (including attachments) is subject to all the restrictions, qualifications and disclaimers of the Metropolitan group of companies ("Metropolitan") published at http://www.metropolitan.co.za (collectively the "disclaimers") and by reading this message and/or opening any attachment you are deemed to have agreed to be bound by the provisions of the disclaimers. If you cannot access any of the disclaimers, kindly send an e-mail to [EMAIL PROTECTED] or contact [EMAIL PROTECTED] and a copy will be sent to you. Metropolitan is an authorised Financial Services Provider. Web: http://www.metropolitan.co.za/ Disclaimer: http://www.metropolitan.co.za/email_disclaimer.html Metropolitan subscribes to KPMG, a completely independent crime disclosure service - make a contribution to the establishment of a fraud free environment by reporting any suspicion to the KPMG Hotline * RSA 0800 22 14 18 * NAMIBIA 0800 00 00 77" Disclaimer Sanlam Life Insurance Limited - Reg No 1998/021121/06 - Licensed Financial Services Provider Disclaimer and Directors Alternatively, send a blank email to Disclaimer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum For the ctjug home page see http://www.ctjug.org.za -~----------~----~----~----~------~----~------~--~---
