Error starting modern compiler
Hi guys, I encounter this error when trying to build my project (it works fine previously): BUILD FAILED /www/dist/production/common/build.xml:78: Error starting modern compiler. Line 78 is: encoding="UTF-8"> I have tried: encoding="UTF-8"> encoding="UTF-8"> The error is still the same. I upgraded ant from 1.6.5 to 1.7.0 and the error persists. Any ideas guys? Linux dev.hkdnr.hk 2.4.20-021stab028.17.777-smp java version "1.5.0_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing) Thanks. -- Warm regards, Jacky Wong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: StatSVN publishes stats for Ant
Very nice reports ... Do you now www.ohloh.net ? Jan >-Ursprüngliche Nachricht- >Von: Benoitx [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 13. März 2007 08:56 >An: user@ant.apache.org >Betreff: StatSVN publishes stats for Ant > > >Hi *, > >This is a bit more than the usual open source announcement, >not only are we >releasing a version of our project but we are also testing it >against many >well-known projects and some rather LARGE subversion repositories... > >Ant is a large SVN repository with more than 516,000 revisions and we >selected it to prove scalability. > >http://www.statsvn.org/demo > >Enjoy! > >Version 0.3.1 includes, amongst others: >--- > >- DEMOS: We have decided to grab a few well known open source >projects and >publish some statistics on > > Amongst the selected ones are: > * Subversion! (Well... we had to do that one...) > * Hibernate 3 > * Spring Rich Client (java Rich Client library) > * Groovy > * Ruby (Yes the language itself, in c and the repo is BIG!) > * Grails > * Log4J (Apache logging) > * Joda Time (cool java date library) > * Felix (Apache OSGi implementation) > * Ant (the Apache Build tool) which has more than 500,000 Revisions! > >- New EnvReport function to aid in identifying common failure cases. >- Removed any dependency on JDK 1.5 (even COMPILED with 1.4) >- A few more bug fixes in both StatSVN and StatCVS. > > >If you want to know what happened in your Subversion >repository, this is the >tool for you! > >StatSVN retrieves information from a Subversion repository and >generates >various tables and charts describing the project evolution, >e.g. the lines >of code over time, contribution of each developer, the >evolution of modules, >directories, files, the time and days when most checkins >happen, etc. It >also shows the commit logs and integrates out of the box with ViewVc, >BugZilla, Chora and others. > >StatSVN generates a static suite of HTML or XDoc documents >containing tables >and chart images. > >StatSVN is available now for download at http://www.statsvn.org > >StatSVN is open source software, released under the terms of >the LGPL, based >on StatCVS, it uses JFreeChart and JTreeMap to generate charts. > >--- > >ObjectLab is not new to the open-source community having used >numerous OS >projects, participated in a few and sponsoring: >- ObjectLab Kit (http://objectlabkit.sourceforge.net), a date >calculation >toolkit for business and finance; >- JTreeMap (http://jtreemap.sourceforge.net) the only open >source heatmap >library for Java >- PZFileReader (http://pzfilereader.sourceforge.net) a >flexible java library >to parse csv/delimited or fixed-length strings >- QALab (http://qalab.sourceforge.net) QA Statistics for your >build (now >also integrated in JBuilder 2007). > >We would like to thank our friends and colleagues for their >help, reviews >and suggestions. > >Feel free to pass on to people who may be interested. > >Enjoy!! > >The StatSVN Team and ObjectLab. > > >-- >View this message in context: >http://www.nabble.com/StatSVN-publishes-stats-for-Ant-tf3394407 >.html#a9449792 >Sent from the Ant - Users mailing list archive at Nabble.com. > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rookie - problem with xdoclet 2 - ANT doesnt work!!
Hello guys i have a problem with xdoclet to create the hbm.xml files related with the composite keys after see in google it seems that the solution is xdoclet2 well after read the information, like http://www.hibernate.org/284.html, i try do use the example configuration and well i used to work only with ant, and i have the xdoclet-plugins-1.0.3.tar.gz, the last version since 2005 here my build.xml [code] [/code] if i excute ant hibernate , i recieve this error /WEB-INF/build.xml:37: Class Not Found: Classloader URLs (classpath): well the line is what is wrong?? , i have references to the all 19 jar files of the lib distribution and the plugin for hibernate pls help, my boss have a gun and i need resolve this problem thanks so much for advanced -- View this message in context: http://www.nabble.com/rookie---problem-with-xdoclet-2---ANT-doesnt-work%21%21-tf3395558.html#a9453169 Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: StatSVN publishes stats for Ant
This is a GREAT tool! Everyone I've shown this too was really impressed! FYI - I did a quick tutorial on running it with Ant (which I need to add to the StatSVN wiki!) http://www.thecrumb.com/2007/02/26/automated-subversion-reports-wstatsvn -and-ant/ I'm still learning Ant so if there are any mistakes - please leave a comment and I'll make corrections! Thanks, Jim > -Original Message- > From: Benoitx [mailto:[EMAIL PROTECTED] > StatSVN retrieves information from a Subversion repository > and generates > various tables and charts describing the project evolution, > e.g. the lines > of code over time, contribution of each developer, the > evolution of modules, > directories, files, the time and days when most checkins > happen, etc. It > also shows the commit logs and integrates out of the box with ViewVc, > BugZilla, Chora and others. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SEC=UNCLASSIFIED] AW: StatSVN publishes stats for Ant
No, I did not know that site... but StatSVN is now on it! :) http://www.ohloh.net/projects/4681 Thanks for the link! Benoit Jan.Materne wrote: > > Very nice reports ... > Do you now www.ohloh.net ? > > > Jan > >>-Ursprüngliche Nachricht- >>Von: Benoitx [mailto:[EMAIL PROTECTED] >>Gesendet: Dienstag, 13. März 2007 08:56 >>An: user@ant.apache.org >>Betreff: StatSVN publishes stats for Ant >> >> >>Hi *, >> >>This is a bit more than the usual open source announcement, >>not only are we >>releasing a version of our project but we are also testing it >>against many >>well-known projects and some rather LARGE subversion repositories... >> >>Ant is a large SVN repository with more than 516,000 revisions and we >>selected it to prove scalability. >> >>http://www.statsvn.org/demo >> >>Enjoy! >> >>Version 0.3.1 includes, amongst others: >>--- >> >>- DEMOS: We have decided to grab a few well known open source >>projects and >>publish some statistics on >> >> Amongst the selected ones are: >> * Subversion! (Well... we had to do that one...) >> * Hibernate 3 >> * Spring Rich Client (java Rich Client library) >> * Groovy >> * Ruby (Yes the language itself, in c and the repo is BIG!) >> * Grails >> * Log4J (Apache logging) >> * Joda Time (cool java date library) >> * Felix (Apache OSGi implementation) >> * Ant (the Apache Build tool) which has more than 500,000 Revisions! >> >>- New EnvReport function to aid in identifying common failure cases. >>- Removed any dependency on JDK 1.5 (even COMPILED with 1.4) >>- A few more bug fixes in both StatSVN and StatCVS. >> >> >>If you want to know what happened in your Subversion >>repository, this is the >>tool for you! >> >>StatSVN retrieves information from a Subversion repository and >>generates >>various tables and charts describing the project evolution, >>e.g. the lines >>of code over time, contribution of each developer, the >>evolution of modules, >>directories, files, the time and days when most checkins >>happen, etc. It >>also shows the commit logs and integrates out of the box with ViewVc, >>BugZilla, Chora and others. >> >>StatSVN generates a static suite of HTML or XDoc documents >>containing tables >>and chart images. >> >>StatSVN is available now for download at http://www.statsvn.org >> >>StatSVN is open source software, released under the terms of >>the LGPL, based >>on StatCVS, it uses JFreeChart and JTreeMap to generate charts. >> >>--- >> >>ObjectLab is not new to the open-source community having used >>numerous OS >>projects, participated in a few and sponsoring: >>- ObjectLab Kit (http://objectlabkit.sourceforge.net), a date >>calculation >>toolkit for business and finance; >>- JTreeMap (http://jtreemap.sourceforge.net) the only open >>source heatmap >>library for Java >>- PZFileReader (http://pzfilereader.sourceforge.net) a >>flexible java library >>to parse csv/delimited or fixed-length strings >>- QALab (http://qalab.sourceforge.net) QA Statistics for your >>build (now >>also integrated in JBuilder 2007). >> >>We would like to thank our friends and colleagues for their >>help, reviews >>and suggestions. >> >>Feel free to pass on to people who may be interested. >> >>Enjoy!! >> >>The StatSVN Team and ObjectLab. >> >> >>-- >>View this message in context: >>http://www.nabble.com/StatSVN-publishes-stats-for-Ant-tf3394407 >>.html#a9449792 >>Sent from the Ant - Users mailing list archive at Nabble.com. >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/StatSVN-publishes-stats-for-Ant-tf3394407.html#a9453413 Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mail task
Hi, In my network setup ant email task does not work properly. When I try to send email it gives me an error message something like "550 EHLO command requires valid address..." The origins of the error are in MimeMailer and javamail This class does not take into account the property "mail.smtp.localhost" that is recommended solution for EHLO problem with javamail. Am I missing something? Is this a bug or it is designed to work this way? Regards, Alex Fischuk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mail task
Alexander Fischuk wrote: Hi, In my network setup ant email task does not work properly. When I try to send email it gives me an error message something like "550 EHLO command requires valid address..." The origins of the error are in MimeMailer and javamail This class does not take into account the property "mail.smtp.localhost" that is recommended solution for EHLO problem with javamail. Am I missing something? Is this a bug or it is designed to work this way? You've just discovered something new, I think. Its impossible to test against other people's network configs, and your network has just broken Ant. (pause) http://java.sun.com/products/javamail/NOTES113.txt There's a property "mail.stmp.ehlo" which should be set to false to skip EHLO login. could be a misspelling, or not. Do this as a JVM option, not an ant property, with export ANT_OPTS="-Dmail.smtp.ehlo=false" The other is the task is working, but you arent setting a valid address. for that, I suggest you use your favourite search engine to understand what the error message means and how to fix it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mail task
I did not perform too much testing ... but what worked for me is the following hack in MimeMailer.send() method This solution is tested on ant-1.6.5 code under java-1.5 JVM. Of cause you have to run the code with -Dmail.smtp.localhost= code snippet START - /** * Send the email. * * @throws BuildException if the email can't be sent. */ public void send() { try { Properties props = new Properties(); // - // hack to make it work with stupid LAN setup if(System.getProperties().getProperty("mail.smtp.localhost") != null){ props.put("mail.smtp.localhost", System.getProperties().getProperty("mail.smtp.localhost")); } // end of hack // - props.put("mail.smtp.host", host); props.put("mail.smtp.port", String.valueOf(port)); // Aside, the JDK is clearly unaware of the Scottish // 'session', which involves excessive quantities of // alcohol :-) Session sesh; Authenticator auth; if (SSL) { try { Provider p = (Provider) Class.forName( "com.sun.net.ssl.internal.ssl.Provider").newInstance(); Security.addProvider(p); } catch (Exception e) { throw new BuildException("could not instantiate ssl " + "security provider, check that you have JSSE in " + "your classpath"); } // SMTP provider props.put("mail.smtp.socketFactory.class", SSL_FACTORY); props.put("mail.smtp.socketFactory.fallback", "false"); } if (user == null && password == null) { sesh = Session.getDefaultInstance(props, null); } else { props.put("mail.smtp.auth", "true"); auth = new SimpleAuthenticator(user, password); sesh = Session.getInstance(props, auth); } //create the message MimeMessage msg = new MimeMessage(sesh); MimeMultipart attachments = new MimeMultipart(); //set the sender if (from.getName() == null) { msg.setFrom(new InternetAddress(from.getAddress())); } else { msg.setFrom(new InternetAddress(from.getAddress(), from.getName())); } // set the reply to addresses msg.setReplyTo(internetAddresses(replyToList)); msg.setRecipients(Message.RecipientType.TO, internetAddresses(toList)); msg.setRecipients(Message.RecipientType.CC, internetAddresses(ccList)); msg.setRecipients(Message.RecipientType.BCC, internetAddresses(bccList)); // Choosing character set of the mail message // First: looking it from MimeType String charset = parseCharSetFromMimeType(message.getMimeType()); if (charset != null) { // Assign/reassign message charset from MimeType message.setCharset(charset); } else { // Next: looking if charset having explicit definition charset = message.getCharset(); if (charset == null) { // Using default charset = DEFAULT_CHARSET; message.setCharset(charset); } } // Using javax.activation.DataSource paradigm StringDataSource sds = new StringDataSource(); sds.setContentType(message.getMimeType()); sds.setCharset(charset); if (subject != null) { msg.setSubject(subject, charset); } msg.addHeader("Date", getDate()); for (Iterator iter = headers.iterator(); iter.hasNext();) { Header h = (Header) iter.next(); msg.addHeader(h.getName(), h.getValue()); } PrintStream out = new PrintStream(sds.getOutputStream()); message.print(out); out.close(); MimeBodyPart textbody = new MimeBodyPart(); textbody.setDataHandler(new DataHandler(sds)); attachments.addBodyPart(textbody); Enumeration e = files.elements(); while (e.hasMoreElements()) { File file = (File) e.nextElement(); MimeBodyPart body; body = new MimeBodyPart(); if (!file.exists() || !file.canRead()) { throw new BuildException("File \"" + file.getAbsolutePath()
Checking for files in a directory
Hi, Is there a way in ANT where I could check if a list of files is available/present in a directory instead of having a long list of s under ? Any help will be much appreciated. -Shankar
RE: Checking for files in a directory
Have you tried something like the following? ... -Original Message- From: Shankar S [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 6:59 PM To: user@ant.apache.org Subject: Checking for files in a directory Hi, Is there a way in ANT where I could check if a list of files is available/present in a directory instead of having a long list of s under ? Any help will be much appreciated. -Shankar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: property value setting
Any properties set on the command line are always set first before any task is run in ant. Go ahead and set PW90 in a property to its default value. Anytime you use -DPW90="..." on the command line it will be set first and your default variable will not override it. -Original Message- From: Chun Ji [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 11:25 AM To: Ant Users List Subject: property value setting I have a build.xml file in which there is a property value "PW90". And this value is initialized through the command line, such as: ant -f build.xml -DPW90="...". However, I just realize that 95% of time, the value is same. So I am just wondering if I could set a default value for this "PW90" inside the build.xml. Only when "-DPW90=.." is specified on the command line, then it will be overwritten by the input value. I am using ant 1.7 on Linux box. Thanks for the tips. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checking for files in a directory
OK let me put it this way .. intead of having 50 for 50 files which makes my build file look ugly .. I want something like define the list of files in a property file and check something like check if the directory contains all the files -Shankar On 3/14/07, James Oltmans <[EMAIL PROTECTED]> wrote: Have you tried something like the following? ... -Original Message- From: Shankar S [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 6:59 PM To: user@ant.apache.org Subject: Checking for files in a directory Hi, Is there a way in ANT where I could check if a list of files is available/present in a directory instead of having a long list of s under ? Any help will be much appreciated. -Shankar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mail task
I did not perform too much testing ... but what worked for me is the following hack in MimeMailer.send() method This solution is tested on ant-1.6.5 code under java-1.5 JVM. Of cause you have to run the code with -Dmail.smtp.localhost= code snippet START - /** * Send the email. * * @throws BuildException if the email can't be sent. */ public void send() { try { Properties props = new Properties(); // - // hack to make it work with stupid LAN setup if(System.getProperties().getProperty("mail.smtp.localhost") != null){ props.put("mail.smtp.localhost", System.getProperties().getProperty("mail.smtp.localhost")); } // end of hack // - props.put("mail.smtp.host", host); props.put("mail.smtp.port", String.valueOf(port)); // Aside, the JDK is clearly unaware of the Scottish // 'session', which involves excessive quantities of // alcohol :-) Session sesh; Authenticator auth; if (SSL) { try { Provider p = (Provider) Class.forName( "com.sun.net.ssl.internal.ssl.Provider").newInstance(); Security.addProvider(p); } catch (Exception e) { throw new BuildException("could not instantiate ssl " + "security provider, check that you have JSSE in " + "your classpath"); } // SMTP provider props.put("mail.smtp.socketFactory.class", SSL_FACTORY); props.put("mail.smtp.socketFactory.fallback", "false"); } if (user == null && password == null) { sesh = Session.getDefaultInstance(props, null); } else { props.put("mail.smtp.auth", "true"); auth = new SimpleAuthenticator(user, password); sesh = Session.getInstance(props, auth); } //create the message MimeMessage msg = new MimeMessage(sesh); MimeMultipart attachments = new MimeMultipart(); //set the sender if (from.getName() == null) { msg.setFrom(new InternetAddress(from.getAddress())); } else { msg.setFrom(new InternetAddress(from.getAddress(), from.getName())); } // set the reply to addresses msg.setReplyTo(internetAddresses(replyToList)); msg.setRecipients(Message.RecipientType.TO, internetAddresses(toList)); msg.setRecipients(Message.RecipientType.CC, internetAddresses(ccList)); msg.setRecipients(Message.RecipientType.BCC, internetAddresses(bccList)); // Choosing character set of the mail message // First: looking it from MimeType String charset = parseCharSetFromMimeType(message.getMimeType()); if (charset != null) { // Assign/reassign message charset from MimeType message.setCharset(charset); } else { // Next: looking if charset having explicit definition charset = message.getCharset(); if (charset == null) { // Using default charset = DEFAULT_CHARSET; message.setCharset(charset); } } // Using javax.activation.DataSource paradigm StringDataSource sds = new StringDataSource(); sds.setContentType(message.getMimeType()); sds.setCharset(charset); if (subject != null) { msg.setSubject(subject, charset); } msg.addHeader("Date", getDate()); for (Iterator iter = headers.iterator(); iter.hasNext();) { Header h = (Header) iter.next(); msg.addHeader(h.getName(), h.getValue()); } PrintStream out = new PrintStream(sds.getOutputStream()); message.print(out); out.close(); MimeBodyPart textbody = new MimeBodyPart(); textbody.setDataHandler(new DataHandler(sds)); attachments.addBodyPart(textbody); Enumeration e = files.elements(); while (e.hasMoreElements()) { File file = (File) e.nextElement(); MimeBodyPart body; body = new MimeBodyPart(); if (!file.exists() || !file.canRead()) { throw new BuildException("File \"" + file.getAbsolutePath()