AW: [Fwd: Some Thoughts on Ant 1.3 and 2.0]
(*) Extension tasks Make extending Ant as simple as possible, i.e. drop a jar file in a specific directory (ANT_HOME/ext globally or ~/.ant/ext on a user by user basis). This jar file must include taskdefs to define the tasks, Schema files to describe the tasks and documentation in the XML format we agreed on. The Schema file is there to support GUI tools for example. They could prompt for required attributes, let you select enumerated attributes from a list, require integer attributes to really contain numbers ... First is done with AntLibs and autoloading via xml-namespaces. But I like the 3rd paragraph - but could be be done via java source? - annotations and XDoclet/apt generates such a file - something like public interface ConfigurationCheck { /** Returns all names of required attributes. */ public static String[] getRequiredAttributes(); /** Returns all names of required nested elements. */ public static String[] getRequiredElements(); /** This instance is valid, means all required values are set correctly. */ public boolean validate(); } How the IDEs solve that at the moment? Jan
AW: Online Bookstore
Especially for Ant we have a page [1] with books about Ant. That page is generated via Anakia and it should be possible just to change the template (maybe minor changes on the xdoc) to get links to resellers and info site. What´s your opinion? Jan [1] http://ant.apache.org/resources.html#books -Ursprüngliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED] Gesendet am: Montag, 16. Mai 2005 01:54 An: dev@ant.apache.org Betreff: Online Bookstore The Apache Software Foundation is a not-for-profit corporation funded solely through donations from the community. To help offset the costs of ASF infrastructure, we could make it possible for ASF supporters to buy books about ASF project software through commission-program links. The commissions for such links is usually 5% or more. Given the vast number of books ASF supporters purchase, the commissions from these sales could become a respectable source of revenue. Setting up an online bookstore to benefit the ASF has been a longstanding itch of mine, which I've finally gotten a chance to scratch. A prototype bookstore is now available as a Confluence wiki. You can check it out at: * http://opensource.atlassian.com/confluence/oss/display/BOOKS/Home
Re: echoxml
On Mon, 23 May 2005, Steve Loughran [EMAIL PROTECTED] wrote: We need an echo task that takes well formed XML and spits it out. Is this really the best we have? escaped cdata in an echo task? the best core currently has, yes. Should be easy to an XmlFragment nested element to echo, see the nant task for an example. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ResourceCollections
On Mon, 23 May 2005, Matt Benson [EMAIL PROTECTED] wrote: Whew! Thanks. Now I need to find a few hours to see how it all works ;-) Any chance for a quick start guide? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Online Bookstore
On Tue, 24 May 2005, Jan Materne [EMAIL PROTECTED] wrote: Especially for Ant we have a page [1] with books about Ant. That page is generated via Anakia and it should be possible just to change the template (maybe minor changes on the xdoc) to get links to resellers and info site. What´s your opinion? I'm not sure I understand what you want to do. What kind of links (where-to) do you want to add to which part of which page? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/compilers CompilerAdapterFactory.java
[EMAIL PROTECTED] wrote: jkf 2005/05/23 14:52:35 Modified:src/main/org/apache/tools/ant/taskdefs/email EmailTask.java src/main/org/apache/tools/ant Main.java src/main/org/apache/tools/ant/taskdefs/optional/javah JavahAdapterFactory.java src/main/org/apache/tools/ant/listener MailLogger.java src/main/org/apache/tools/ant/taskdefs/optional/script ScriptDef.java src/main/org/apache/tools/ant/util ClasspathUtils.java src/main/org/apache/tools/ant/taskdefs/rmic RmicAdapterFactory.java src/main/org/apache/tools/ant/taskdefs/optional/native2ascii Native2AsciiAdapterFactory.java src/main/org/apache/tools/ant/util/regexp RegexpMatcherFactory.java src/main/org/apache/tools/ant/taskdefs/compilers CompilerAdapterFactory.java Log: Improved the newInstance method in ClasspathUtils, and used this method from the places where newInstances are made and Throwable is caught. nice bit of refactoring. Does this change how the ProjectHelper diagnostics stuff works, or is that self-contained enough to be unaffected. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: Some Thoughts on Ant 1.3 and 2.0]
On Tue, 24 May 2005, Jan Materne [EMAIL PROTECTED] wrote: But I like the 3rd paragraph I still do as well. I'm just not sure that XML Schema would be the way to go. /** Returns all names of required attributes. */ public static String[] getRequiredAttributes(); Doesn't help with the exactly one of these three attributes is required cases. Or even either this or a nested foo element is required. How the IDEs solve that at the moment? Do they? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: copy + ResourceCollections
On Mon, 23 May 2005, Matt Benson [EMAIL PROTECTED] wrote: So by that token, you would similarly add a Deletable (?) interface for FileResource to implement. So then move could fail when encountering a Resource that does not implement Deletable... Let's turn this around. Do we really want to support deleting of files on a remote FTP server using delete or move? Or would we want users to stick to ftp fro this? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: copy + ResourceCollections
On Mon, 23 May 2005, Matt Benson [EMAIL PROTECTED] wrote: My proposal regarding copy is that any FileResource with a base directory is processed according to BC, +1 but any other Resource is copied with implicit flattening (and an appropriate warning message) unless a nested mapper element says otherwise. Sounds reasonable and easy to explain. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/src/testcases/org/apache/tools/ant/filters DynamicFilterTest.java TokenFilterTest.java
bodewig 2005/05/24 01:19:45 Modified:src/main/org/apache/tools/ant/listener MailLogger.java src/main/org/apache/tools/ant/taskdefs/optional/jdepend JDependTask.java src/main/org/apache/tools/ant/types PatternSet.java RegularExpression.java src/main/org/apache/tools/ant/types/selectors SelectorUtils.java src/main/org/apache/tools/ant/util/regexp RegexpMatcherFactory.java src/testcases/org/apache/tools/ant/filters DynamicFilterTest.java TokenFilterTest.java Log: 2005 Revision ChangesPath 1.28 +1 -1 ant/src/main/org/apache/tools/ant/listener/MailLogger.java Index: MailLogger.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/listener/MailLogger.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- MailLogger.java 23 May 2005 21:52:35 - 1.27 +++ MailLogger.java 24 May 2005 08:19:44 - 1.28 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. 1.35 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java Index: JDependTask.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- JDependTask.java 22 May 2005 19:28:13 - 1.34 +++ JDependTask.java 24 May 2005 08:19:44 - 1.35 @@ -1,5 +1,5 @@ /* - * Copyright 2001-2004 The Apache Software Foundation + * Copyright 2001-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. 1.43 +1 -1 ant/src/main/org/apache/tools/ant/types/PatternSet.java Index: PatternSet.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/PatternSet.java,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- PatternSet.java 23 May 2005 19:30:38 - 1.42 +++ PatternSet.java 24 May 2005 08:19:45 - 1.43 @@ -1,5 +1,5 @@ /* - * Copyright 2000-2004 The Apache Software Foundation + * Copyright 2000-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. 1.22 +1 -1 ant/src/main/org/apache/tools/ant/types/RegularExpression.java Index: RegularExpression.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/RegularExpression.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- RegularExpression.java23 May 2005 19:30:38 - 1.21 +++ RegularExpression.java24 May 2005 08:19:45 - 1.22 @@ -1,5 +1,5 @@ /* - * Copyright 2001-2004 The Apache Software Foundation + * Copyright 2001-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. 1.22 +1 -1 ant/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java Index: SelectorUtils.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- SelectorUtils.java23 May 2005 19:31:14 - 1.21 +++ SelectorUtils.java24 May 2005 08:19:45 - 1.22 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. 1.19 +1 -1 ant/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java Index: RegexpMatcherFactory.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19
cvs commit: ant/xdocs projects.xml
bodewig 2005/05/24 01:21:12 Modified:docs projects.html xdocsprojects.xml Log: Add pointer to Parabuild Revision ChangesPath 1.70 +50 -0 ant/docs/projects.html Index: projects.html === RCS file: /home/cvs/ant/docs/projects.html,v retrieving revision 1.69 retrieving revision 1.70 diff -u -r1.69 -r1.70 --- projects.html 10 May 2005 07:03:32 - 1.69 +++ projects.html 24 May 2005 08:21:12 - 1.70 @@ -917,6 +917,56 @@ /tr /table h4 class=subsection +a name=Parabuild/a +Parabuild + /h4 +pParabuild is an automated multiplatform build management server. +Parabuild helps software teams and organizations of all sizes reduce +risks of project failures and increase productivity by providing provides +automatic continuous integration builds and stable scheduled builds./p + table class=externals cellspacing=1 cellpadding=4 + tr + th colspan=1 rowspan=1 + valign=top align=left + Compatibility: + /th + td colspan=1 rowspan=1 + valign=top align=left + Ant 1.3 and later + /td + /tr + tr + th colspan=1 rowspan=1 + valign=top align=left + URL: + /th + td colspan=1 rowspan=1 + valign=top align=left + a href=http://www.viewtier.com/products/parabuild.htm;http://www.viewtier.com/products/parabuild.htm/a + /td + /tr + tr + th colspan=1 rowspan=1 + valign=top align=left + Contact: + /th + td colspan=1 rowspan=1 + valign=top align=left + a href=http://www.viewtier.com/about_us.htm;http://www.viewtier.com/about_us.htm/a + /td + /tr + tr + th colspan=1 rowspan=1 + valign=top align=left + License: + /th + td colspan=1 rowspan=1 + valign=top align=left + Commercial + /td + /tr +/table +h4 class=subsection a name=Rant/a Rant /h4 1.26 +27 -0 ant/xdocs/projects.xml Index: projects.xml === RCS file: /home/cvs/ant/xdocs/projects.xml,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- projects.xml 2 May 2005 14:55:51 - 1.25 +++ projects.xml 24 May 2005 08:21:12 - 1.26 @@ -442,6 +442,33 @@ /table /subsection + subsection name=Parabuild + +pParabuild is an automated multiplatform build management server. +Parabuild helps software teams and organizations of all sizes reduce +risks of project failures and increase productivity by providing provides +automatic continuous integration builds and stable scheduled builds./p + +table class=externals + tr +thCompatibility:/th +tdAnt 1.3 and later/td + /tr + tr +thURL:/th +tda href=http://www.viewtier.com/products/parabuild.htm;http://www.viewtier.com/products/parabuild.htm/a/td + /tr + tr +thContact:/th +tda href=http://www.viewtier.com/about_us.htm;http://www.viewtier.com/about_us.htm/a/td + /tr + tr +thLicense:/th +tdCommercial/td + /tr +/table + /subsection + subsection name=Rant pRant stands for Remote Ant. It is a distributed build - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/xdocs projects.xml
bodewig 2005/05/24 01:22:38 Modified:xdocsTag: ANT_16_BRANCH projects.xml Log: merge Revision ChangesPath No revision No revision 1.10.2.12 +27 -0 ant/xdocs/projects.xml Index: projects.xml === RCS file: /home/cvs/ant/xdocs/projects.xml,v retrieving revision 1.10.2.11 retrieving revision 1.10.2.12 diff -u -r1.10.2.11 -r1.10.2.12 --- projects.xml 2 May 2005 14:56:22 - 1.10.2.11 +++ projects.xml 24 May 2005 08:22:38 - 1.10.2.12 @@ -442,6 +442,33 @@ /table /subsection + subsection name=Parabuild + +pParabuild is an automated multiplatform build management server. +Parabuild helps software teams and organizations of all sizes reduce +risks of project failures and increase productivity by providing provides +automatic continuous integration builds and stable scheduled builds./p + +table class=externals + tr +thCompatibility:/th +tdAnt 1.3 and later/td + /tr + tr +thURL:/th +tda href=http://www.viewtier.com/products/parabuild.htm;http://www.viewtier.com/products/parabuild.htm/a/td + /tr + tr +thContact:/th +tda href=http://www.viewtier.com/about_us.htm;http://www.viewtier.com/about_us.htm/a/td + /tr + tr +thLicense:/th +tdCommercial/td + /tr +/table + /subsection + subsection name=Rant pRant stands for Remote Ant. It is a distributed build - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: Some Thoughts on Ant 1.3 and 2.0]
Stefan Bodewig wrote: On Tue, 24 May 2005, Jan Materne [EMAIL PROTECTED] wrote: But I like the 3rd paragraph I still do as well. I'm just not sure that XML Schema would be the way to go. no, I think we all under stand XSD that much better now :( /** Returns all names of required attributes. */ public static String[] getRequiredAttributes(); Doesn't help with the exactly one of these three attributes is required cases. Or even either this or a nested foo element is required. Maybe you could ask a component for a bit of a schema (note I didnt say XSD) that describes itself. FWIW, in the smartfrog langage you just declare an (optional) schema with a template. This is just an extensible/overridable hint; validation checks that every type that is referred to can take what it is given. Vector : a list of stuff Compulsory: anything, but it must be supplied. That element can take a string or a CD CD: component description (another nested thing) There are optional types too (e.g. OptionalBoolean), and you can derive your own by extension. Libraries extends Compound { librariesSchema extends Schema { repositories extends Vector; //cache dir; is created if needed cacheDir extends Compulsory; /** * Component implementing local cache policy */ localCachePolicy extends CD; /** * Component implementing local cache policy */ remoteCachePolicy extends CD; } The XML equivalent language, being done under the auspices of various standards bodies, uses XSD for its type model, which is a lot more painful to work with, either to write or to code support for. Which is why we've retained something else from the SmartFrog language, the typeless placeholder flag: JVM extends Executable { classname TBD; execuable java; } Here when I describe my type I say this has to be filled in with something. All full validation is done procedurally, when the various things are instantiated. Unlike Ant (where the runtime calls the setters), the SmartFrog runtime lets components get stuff off the graph. Most interestingly, it lets you dynamically update the graph. So when the libraries component is instantiated, it adds a new attribute, the vector of paths to downloaded JARs, the JVM then links to that attribute with a lazy marker (LAZY /cdl:lazy=true depending on language) to tell the framework that this binding is runtime and not parse time. Being able to add stuff to the graph is very powerful. Some components rewrite themselves as they go, so functions, for example, evaluate and then replace their component description (i.e. a Parent Node) with a string instead. Course, it makes defect tracking kind of fun too. I think RelaxNG makes it easier to say attribute a or b, but not both. } How the IDEs solve that at the moment? Do they? Stefan - 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]
AW: Online Bookstore
We keep the data for the resource page [1] in xdocs [2]. The html page is generated via Anakia stylesheet [3]. Ted provided an example [4]: at the buttom is a box Available from where are some links to several book resellers. The idea is - store the ISBN in an extra tag in the xdoc thISBN:/th th id=isbn ... /th - use the VM makro to generate the link passage Jan Example: resources.xml ---88888888- ... subsection name=Ant: The Definitive Guide, 2nd edition pPublished April 2005, and covers Ant release 1.6.1./p pThis is a complete rewrite of the first edition; this book is now 290 pages and so covers Ant in more depth than its predecessor./p pIt also mixes reference information (tables) with text explanation on how to use the tasks. Contents includes JUnit, CVS, execution, basic deployment, Web application development and XDoclet. There is also coverage of XDoclet, and a chapter on how to extend Ant in Java./p table class=externals tr thAuthor:/th tdSteve Holzner/td /tr tr thURL:/th td a href=http://www.oreilly.com/catalog/anttdg2/;http://www.oreilly.com/catalo g/anttdg2//a /td /tr tr thISBN:/th th0596006098/th /tr /table /subsection ... ---88888888- templates: TBD resources.html ---88888888- ... tr th colspan=1 rowspan=1 valign=top align=leftISBN:/th td colspan=1 rowspan=1 valign=top align=left0596006098/td /tr tr th colspan=1 rowspan=1 valign=top align=leftAvailable from:/th td colspan=1 rowspan=1 valign=top align=leftul lia href=http://www.amazon.com/exec/obidos/tg/detail/-/0596006098/apachesoftwar -20/Amazon.com/a/li lia href=http://service.bfast.com/bfast/click?bfmid=2181amp;bfmtype=bookamp;s ourceid=41462544amp;bfpid=0596006098Barnes amp; Noble/a/li lia href=http://www.booksense.com/product/info.jsp?affiliateId=Apacheamp;isbn= 0596006098Book Sense/a/li lia href=http://www.powells.com/cgi-bin/biblio?inkey=61-0596006098-0amp;partne r_id=29693Powells.com/a/li /ul/td /tr ... ---88888888- [1] http://ant.apache.org/resources.html#books [2] http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/xdocs/resources.xml?content -type=text%2Fplain [3] http://cvs.apache.org/viewcvs.cgi/ant/xdocs/stylesheets/templates.vm?view=ma rkup [4] http://opensource.atlassian.com/confluence/oss/pages/viewpage.action?pageId= 231 -Ursprüngliche Nachricht- Von: Stefan Bodewig [mailto:[EMAIL PROTECTED] Gesendet am: Dienstag, 24. Mai 2005 09:24 An: dev@ant.apache.org Betreff: Re: Online Bookstore On Tue, 24 May 2005, Jan Materne [EMAIL PROTECTED] wrote: Especially for Ant we have a page [1] with books about Ant. That page is generated via Anakia and it should be possible just to change the template (maybe minor changes on the xdoc) to get links to resellers and info site. What´s your opinion? I'm not sure I understand what you want to do. What kind of links (where-to) do you want to add to which part of which page? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: echoxml
I started playing with this yesterday, should be able to commit something today. -Matt --- Stefan Bodewig [EMAIL PROTECTED] wrote: On Mon, 23 May 2005, Steve Loughran [EMAIL PROTECTED] wrote: We need an echo task that takes well formed XML and spits it out. Is this really the best we have? escaped cdata in an echo task? the best core currently has, yes. Should be easy to an XmlFragment nested element to echo, see the nant task for an example. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ResourceCollections
--- Stefan Bodewig [EMAIL PROTECTED] wrote: Any chance for a quick start guide? Hmmm. I actually don't know what else to say beyond the updates to the manual under Concepts and Types, and the modified tasks: pathconvert, concat, length + resourcecount. Let me know what further information you think we need to provide, as far as you can without knowing what that information IS, anyway. ;) I also need to document that path can take any filesystem-only resourcecollection as a nested element. -Matt Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: cvs commit: ant/src/testcases/org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java
src/resources/org/apache/tools/ant/types/resources/selectors Do you mean, we have to rewrite our file-selectors? Jan
Re: Online Bookstore
On Tue, 24 May 2005, Jan Materne [EMAIL PROTECTED] wrote: The idea is - store the ISBN in an extra tag in the xdoc thISBN:/th th id=isbn ... /th - use the VM makro to generate the link passage Ahh, thanks. +1 Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ResourceCollections
On Tue, 24 May 2005, Matt Benson [EMAIL PROTECTED] wrote: Hmmm. I actually don't know what else to say beyond the updates to the manual under Concepts and Types, and the modified tasks: pathconvert, concat, length + resourcecount. This answer is exactly what I needed. Thanks Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r178161 - in /ant/sandbox/antlibs/dotnet: branches/Ant_1.6.2_compatible/src/main/org/apache/tools/ant/taskdefs/ branches/Ant_1.6.2_compatible/src/testcases/org/apache/tools/ trunk/src/main
Author: bodewig Date: Tue May 24 05:58:30 2005 New Revision: 178161 URL: http://svn.apache.org/viewcvs?rev=178161view=rev Log: Remove empty directories Removed: ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/src/main/org/apache/tools/ant/taskdefs/ ant/sandbox/antlibs/dotnet/branches/Ant_1.6.2_compatible/src/testcases/org/apache/tools/ ant/sandbox/antlibs/dotnet/trunk/src/main/org/apache/tools/ ant/sandbox/antlibs/dotnet/trunk/src/testcases/org/apache/tools/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r178162 - in /ant/sandbox/antlibs/svn/trunk/src: main/org/apache/tools/ testcases/org/apache/tools/
Author: bodewig Date: Tue May 24 05:59:56 2005 New Revision: 178162 URL: http://svn.apache.org/viewcvs?rev=178162view=rev Log: Remove empty directories Removed: ant/sandbox/antlibs/svn/trunk/src/main/org/apache/tools/ ant/sandbox/antlibs/svn/trunk/src/testcases/org/apache/tools/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ResourceCollections WAS Re: AW: cvs commit: ant/src/testcases/org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java
--- [EMAIL PROTECTED] wrote: src/resources/org/apache/tools/ant/types/resources/selectors Do you mean, we have to rewrite our file-selectors? Any fileselector continues to work with fileset/dirset as well as files. Most fileselectors should still be relevant as resourceselectors, and in those cases it might be nice to delegate file selection to the corresponding resourceselector, just to decrease the number of places where an implementation of a check exists. I didn't attempt to create a resource version of modified because a) I don't understand it :) and b) I wasn't sure how to handle the properties file approach that exists w/ the file version. It is probably translatable, but I hoped maybe you could do it :) or help me to. -Matt Jan __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: ResourceCollections WAS Re: AW: cvs commit: ant/src/testcases /org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java
I think about that by myself :) You said that a Resource could could give Input/OutputStream. So it would be possible just to add another Cache implementiation based on that. I thought of implementing the ResourceSelector interface additionally ... Jan -Ursprüngliche Nachricht- Von: Matt Benson [mailto:[EMAIL PROTECTED] Gesendet am: Dienstag, 24. Mai 2005 17:43 An: Ant Developers List Betreff: ResourceCollections WAS Re: AW: cvs commit: ant/src/testcases/org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java --- [EMAIL PROTECTED] wrote:h src/resources/org/apache/tools/ant/types/resources/selectors Do you mean, we have to rewrite our file-selectors? Any fileselector continues to work with fileset/dirset as well as files. Most fileselectors should still be relevant as resourceselectors, and in those cases it might be nice to delegate file selection to the corresponding resourceselector, just to decrease the number of places where an implementation of a check exists. I didn't attempt to create a resource version of modified because a) I don't understand it :) and b) I wasn't sure how to handle the properties file approach that exists w/ the file version. It is probably translatable, but I hoped maybe you could do it :) or help me to. -Matt Jan __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: ResourceCollections WAS Re: AW: cvs commit: ant/src/testcases /org/apache/tools/ant/types/opti onal/depend ClassFileSetTest.java
--- [EMAIL PROTECTED] wrote: I think about that by myself :) You said that a Resource could could give Input/OutputStream. So it would be possible just to add another Cache implementiation based on that. I thought of implementing the ResourceSelector interface additionally ... You could probably do that too. Just remember that the restrict collection is the only one that knows about ResourceSelectors and they must be typedef'd--most likely in antlib:org.apache.tools.ant.types.resources.selectors (vote ant:resourceselectors !) or else globally. -Matt __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Update of Ant17/Planning by MattBenson
Dear Wiki user, You have subscribed to a wiki page or wiki category on Ant Wiki for change notification. The following page has been changed by MattBenson: http://wiki.apache.org/ant/Ant17/Planning -- * reduce number of outstanding bugzilla ''bugs'' by fixing them or declaring WONTFIX/Invalid. * reduce number of outstanding bugzilla ''enhancements'' by implementing some, or closing them off. * include fetch.xml in redist package and integrate w/ maven2 artifacts - * add ResourceCollections (for arbitrary groups of file-like Resources) and retrofit to appropriate tasks (mbenson) + * retrofit Resource Collections to remaining appropriate tasks (mbenson) === ''Want'' Features Implemented === * improve diagnostics when something like junit wont instantiate. i.e. distinguish class not found from class not loadable and explain why the difference. Maybe allow for per-task diagnostics text through a static member function, or extra markup in the taskdef. - + * add Resource Collections (for arbitrary groups of file-like Resources); some tasks adapted. == ''Like'' Features == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: echoxml
Since I'm not really all that smart with XML stuff, can anyone tell me any reason we would NOT want the DOMElementWriter to write tags as: element attr=foo / when there are no child elements/nested text? Thanks, Matt --- Matt Benson [EMAIL PROTECTED] wrote: I started playing with this yesterday, should be able to commit something today. -Matt --- Stefan Bodewig [EMAIL PROTECTED] wrote: On Mon, 23 May 2005, Steve Loughran [EMAIL PROTECTED] wrote: We need an echo task that takes well formed XML and spits it out. Is this really the best we have? escaped cdata in an echo task? the best core currently has, yes. Should be easy to an XmlFragment nested element to echo, see the nant task for an example. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: echoxml
On Tue, 24 May 2005, Matt Benson [EMAIL PROTECTED] wrote: Since I'm not really all that smart with XML stuff, can anyone tell me any reason we would NOT want the DOMElementWriter to write tags as: It was easier to code that way ;-) Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35044] New: - ccmcheckintask requires a file to work
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35044. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35044 Summary: ccmcheckintask requires a file to work Product: Ant Version: 1.6.2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Optional SCM tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] From my understanding, the ccmcheckintask is supposed to check in a task. To do so, it requires a task id or default. The point is: This task complains about a missing file or fileset and throws an exception. Looking at the source code, the execute method used by this task found in the class org.apache.tools.ant.taskdefs.optional.ccm.CCMCheck contains the bug: It checks for a file or filset regardless of the ccm command given. A special condition has to be added to avoid this check in case the command is COMMAND_CHECKIN. Even better would be changing the architecture of the classes in this package to allow overriding the execute method instead of adding tons of conditions. I found the bug using Ant 1.6.2. I investigated the sources of that version as well as the HEAD version of each source file. I would like to do these changes by myself but I am afraid a little bit of using the cvs repository. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/windows Attrib.java
peterreilly2005/05/24 10:16:00 Modified:src/main/org/apache/tools/ant/taskdefs/optional/windows Attrib.java Log: checkstyle - mostly javadoc Revision ChangesPath 1.11 +49 -6 ant/src/main/org/apache/tools/ant/taskdefs/optional/windows/Attrib.java Index: Attrib.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/windows/Attrib.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- Attrib.java 9 Mar 2004 16:48:40 - 1.10 +++ Attrib.java 24 May 2005 17:16:00 - 1.11 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. @@ -41,37 +41,57 @@ private boolean haveAttr = false; +/** Constructor for Attrib. */ public Attrib() { super.setExecutable(attrib); super.setParallel(false); } +/** + * A file to be attribed. + * @param src a file + */ public void setFile(File src) { FileSet fs = new FileSet(); fs.setFile(src); addFileset(fs); } -/** set the ReadOnly file attribute */ +/** + * Set the ReadOnly file attribute. + * @param value a codeboolean/code value + */ public void setReadonly(boolean value) { addArg(value, ATTR_READONLY); } -/** set the Archive file attribute */ +/** + * Set the Archive file attribute. + * @param value a codeboolean/code value + */ public void setArchive(boolean value) { addArg(value, ATTR_ARCHIVE); } -/** set the System file attribute */ +/** + * Set the System file attribute. + * @param value a codeboolean/code value + */ public void setSystem(boolean value) { addArg(value, ATTR_SYSTEM); } -/** set the Hidden file attribute */ +/** + * Set the Hidden file attribute. + * @param value a codeboolean/code value + */ public void setHidden(boolean value) { addArg(value, ATTR_HIDDEN); } +/** + * Check the attributes. + */ protected void checkConfiguration() { if (!haveAttr()) { throw new BuildException(Missing attribute parameter, @@ -81,6 +101,9 @@ } /** + * Set the executable. + * This is not allowed, and it always throws a BuildException. + * @param e ignored * @ant.attribute ignore=true */ public void setExecutable(String e) { @@ -89,6 +112,9 @@ } /** + * Set the executable. + * This is not allowed, and it always throws a BuildException. + * @param e ignored * @ant.attribute ignore=true */ public void setCommand(String e) { @@ -97,6 +123,9 @@ } /** + * Add source file. + * This is not allowed, and it always throws a BuildException. + * @param b ignored * @ant.attribute ignore=true */ public void setAddsourcefile(boolean b) { @@ -105,6 +134,9 @@ } /** + * Set skip empty file sets. + * This is not allowed, and it always throws a BuildException. + * @param skip ignored * @ant.attribute ignore=true */ public void setSkipEmptyFilesets(boolean skip) { @@ -114,6 +146,9 @@ } /** + * Set parallel. + * This is not allowed, and it always throws a BuildException. + * @param parallel ignored * @ant.attribute ignore=true */ public void setParallel(boolean parallel) { @@ -123,6 +158,9 @@ } /** + * Set max parallel. + * This is not allowed, and it always throws a BuildException. + * @param max ignored * @ant.attribute ignore=true */ public void setMaxParallel(int max) { @@ -131,12 +169,17 @@ getLocation()); } +/** + * Check if the os is valid. + * Always include windows + * @return true if the os is valid. + */ protected boolean isValidOs() { return Os.isFamily(windows) super.isValidOs(); } private static String getSignString(boolean attr) { -return (attr == true ? SET : UNSET); +return (attr ? SET : UNSET); } private void addArg(boolean sign, String attribute) { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/rmic ForkingSunRmic.java
peterreilly2005/05/24 10:16:23 Modified:src/main/org/apache/tools/ant/taskdefs/rmic ForkingSunRmic.java Log: checkstyle - javadoc Revision ChangesPath 1.6 +2 -2 ant/src/main/org/apache/tools/ant/taskdefs/rmic/ForkingSunRmic.java Index: ForkingSunRmic.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/rmic/ForkingSunRmic.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ForkingSunRmic.java 15 Mar 2005 09:35:25 - 1.5 +++ ForkingSunRmic.java 24 May 2005 17:16:22 - 1.6 @@ -45,8 +45,8 @@ /** * exec by creating a new command - * @return - * @throws BuildException + * @return true if the command ran successfully + * @throws BuildException on error */ public boolean execute() throws BuildException { Rmic owner = getRmic(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/src/main/org/apache/tools/ant/types/optional/image Arc.java ColorMapper.java DrawOperation.java Ellipse.java Rectangle.java Rotate.java Scale.java Text.java
peterreilly2005/05/24 10:17:29 Modified:src/main/org/apache/tools/ant/types/optional/image Arc.java ColorMapper.java DrawOperation.java Ellipse.java Rectangle.java Rotate.java Scale.java Text.java Log: checkstyle - mostly removal of _ Revision ChangesPath 1.7 +9 -8 ant/src/main/org/apache/tools/ant/types/optional/image/Arc.java Index: Arc.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/optional/image/Arc.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Arc.java 9 Feb 2004 21:05:37 - 1.6 +++ Arc.java 24 May 2005 17:17:29 - 1.7 @@ -1,5 +1,5 @@ /* - * Copyright 2002,2004 The Apache Software Foundation + * Copyright 2002,2004-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. @@ -48,12 +48,12 @@ /** * @todo refactor using an EnumeratedAttribute */ -public void setType(String str_type) { -if (str_type.toLowerCase().equals(open)) { +public void setType(String strType) { +if (strType.toLowerCase().equals(open)) { type = Arc2D.OPEN; -} else if (str_type.toLowerCase().equals(pie)) { +} else if (strType.toLowerCase().equals(pie)) { type = Arc2D.PIE; -} else if (str_type.toLowerCase().equals(chord)) { +} else if (strType.toLowerCase().equals(chord)) { type = Arc2D.CHORD; } } @@ -65,9 +65,9 @@ Graphics2D graphics = (Graphics2D) bi.getGraphics(); if (!stroke.equals(transparent)) { -BasicStroke b_stroke = new BasicStroke(stroke_width); +BasicStroke bStroke = new BasicStroke(stroke_width); graphics.setColor(ColorMapper.getColorByName(stroke)); -graphics.setStroke(b_stroke); +graphics.setStroke(bStroke); graphics.draw(new Arc2D.Double(stroke_width, stroke_width, width, height, start, stop, type)); } @@ -86,7 +86,8 @@ graphics.drawImage(img.getAsBufferedImage(), null, 0, 0); } else if (instr instanceof TransformOperation) { graphics = (Graphics2D) bi.getGraphics(); -PlanarImage image = ((TransformOperation) instr).executeTransformOperation(PlanarImage.wrapRenderedImage(bi)); +PlanarImage image = ((TransformOperation) instr) + .executeTransformOperation(PlanarImage.wrapRenderedImage(bi)); bi = image.getAsBufferedImage(); } } 1.7 +32 -16 ant/src/main/org/apache/tools/ant/types/optional/image/ColorMapper.java Index: ColorMapper.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/optional/image/ColorMapper.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- ColorMapper.java 9 Mar 2004 16:48:43 - 1.6 +++ ColorMapper.java 24 May 2005 17:17:29 - 1.7 @@ -1,5 +1,5 @@ /* - * Copyright 2002,2004 The Apache Software Foundation + * Copyright 2002,2004-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. @@ -23,55 +23,71 @@ * @see org.apache.tools.ant.taskdefs.optional.image.Image */ public final class ColorMapper { +/** black string */ public static final String COLOR_BLACK = black; +/** blue string */ public static final String COLOR_BLUE = blue; +/** cyan string */ public static final String COLOR_CYAN = cyan; +/** black string */ public static final String COLOR_DARKGRAY = darkgray; +/** gray string */ public static final String COLOR_GRAY = gray; +/** lightgray string */ public static final String COLOR_LIGHTGRAY = lightgray; // Gotta atleast put in the proper spelling :-P +/** darkgrey string */ public static final String COLOR_DARKGREY = darkgrey; +/** grey string */ public static final String COLOR_GREY = grey; +/** lightgrey string */ public static final String COLOR_LIGHTGREY = lightgrey; +/** green string */ public static final String COLOR_GREEN = green; +/** magenta string */ public static final String COLOR_MAGENTA = magenta; +/** orange string */ public static final String COLOR_ORANGE = orange; +/** pink string */ public static final String COLOR_PINK = pink; +/** reg string */ public
cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/unix AbstractAccessTask.java
peterreilly2005/05/24 10:18:31 Modified:src/main/org/apache/tools/ant/taskdefs/optional/unix AbstractAccessTask.java Log: checkstyle javadoc Revision ChangesPath 1.14 +4 -1 ant/src/main/org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java Index: AbstractAccessTask.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/unix/AbstractAccessTask.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- AbstractAccessTask.java 9 Mar 2004 16:48:37 - 1.13 +++ AbstractAccessTask.java 24 May 2005 17:18:31 - 1.14 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. @@ -54,6 +54,7 @@ /** * Set the file which should have its access attributes modified. + * @param src the file to modify */ public void setFile(File src) { FileSet fs = new FileSet(); @@ -98,6 +99,8 @@ /** * Automatically approve Unix OS's. + * @return true if a valid OS, for unix this is always true, otherwise + * use the superclasses' test (user set). */ protected boolean isValidOs() { return Os.isFamily(unix) super.isValidOs(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/src/main/org/apache/tools/ant/util DOMElementWriter.java
mbenson 2005/05/24 10:54:47 Modified:src/testcases/org/apache/tools/ant/taskdefs/optional EchoPropertiesTest.java src/main/org/apache/tools/ant/util DOMElementWriter.java Log: go ahead and close elements with no children Revision ChangesPath 1.12 +1 -1 ant/src/testcases/org/apache/tools/ant/taskdefs/optional/EchoPropertiesTest.java Index: EchoPropertiesTest.java === RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/optional/EchoPropertiesTest.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- EchoPropertiesTest.java 11 Mar 2004 23:40:59 - 1.11 +++ EchoPropertiesTest.java 24 May 2005 17:54:47 - 1.12 @@ -114,7 +114,7 @@ BufferedReader br = new BufferedReader( fr ); String read = null; while ( (read = br.readLine()) != null) { -if (read.indexOf(property name=\test.property\ value=\+TEST_VALUE+\/property) = 0) { +if (read.indexOf(property name=\test.property\ value=\+TEST_VALUE+\ /) = 0) { // found the property we set - it's good. return; } 1.28 +77 -52 ant/src/main/org/apache/tools/ant/util/DOMElementWriter.java Index: DOMElementWriter.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/DOMElementWriter.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- DOMElementWriter.java 14 Mar 2005 20:08:32 - 1.27 +++ DOMElementWriter.java 24 May 2005 17:54:47 - 1.28 @@ -77,67 +77,67 @@ String indentWith) throws IOException { -openElement(element, out, indent, indentWith); - // Write child elements and text -boolean hasChildren = false; NodeList children = element.getChildNodes(); -for (int i = 0; i children.getLength(); i++) { -Node child = children.item(i); - -switch (child.getNodeType()) { - -case Node.ELEMENT_NODE: -if (!hasChildren) { -out.write(lSep); -hasChildren = true; -} -write((Element) child, out, indent + 1, indentWith); -break; - -case Node.TEXT_NODE: -out.write(encode(child.getNodeValue())); -break; - -case Node.COMMENT_NODE: -out.write(!--); -out.write(encode(child.getNodeValue())); -out.write(--); -break; +boolean hasChildren = (children.getLength() 0); +openElement(element, out, indent, indentWith, hasChildren); -case Node.CDATA_SECTION_NODE: -out.write(![CDATA[); -out.write(encodedata(((Text) child).getData())); -out.write(]]); -break; - -case Node.ENTITY_REFERENCE_NODE: -out.write(''); -out.write(child.getNodeName()); -out.write(';'); -break; - -case Node.PROCESSING_INSTRUCTION_NODE: -out.write(?); -out.write(child.getNodeName()); -String data = child.getNodeValue(); -if (data != null data.length() 0) { -out.write(' '); -out.write(data); +if (hasChildren) { +for (int i = 0; i children.getLength(); i++) { +Node child = children.item(i); + +switch (child.getNodeType()) { + +case Node.ELEMENT_NODE: +if (i == 0) { +out.write(lSep); +} +write((Element) child, out, indent + 1, indentWith); +break; + +case Node.TEXT_NODE: +out.write(encode(child.getNodeValue())); +break; + +case Node.COMMENT_NODE: +out.write(!--); +out.write(encode(child.getNodeValue())); +out.write(--); +break; + +case Node.CDATA_SECTION_NODE: +out.write(![CDATA[); +out.write(encodedata(((Text) child).getData())); +out.write(]]); +break; + +case Node.ENTITY_REFERENCE_NODE: +out.write(''); +
Re: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/compilers CompilerAdapterFactory.java
Steve Loughran wrote: [EMAIL PROTECTED] wrote: jkf 2005/05/23 14:52:35 Modified:src/main/org/apache/tools/ant/taskdefs/email EmailTask.java src/main/org/apache/tools/ant Main.java src/main/org/apache/tools/ant/taskdefs/optional/javah JavahAdapterFactory.java src/main/org/apache/tools/ant/listener MailLogger.java src/main/org/apache/tools/ant/taskdefs/optional/script ScriptDef.java src/main/org/apache/tools/ant/util ClasspathUtils.java src/main/org/apache/tools/ant/taskdefs/rmic RmicAdapterFactory.java src/main/org/apache/tools/ant/taskdefs/optional/native2ascii Native2AsciiAdapterFactory.java src/main/org/apache/tools/ant/util/regexp RegexpMatcherFactory.java src/main/org/apache/tools/ant/taskdefs/compilers CompilerAdapterFactory.java Log: Improved the newInstance method in ClasspathUtils, and used this method from the places where newInstances are made and Throwable is caught. nice bit of refactoring. Does this change how the ProjectHelper diagnostics stuff works, or is that self-contained enough to be unaffected. Unless some unexpected throwable (unexpected RuntimeException or Error) was actually thrown while creating the class, nothing outside the changed scope should notice anything (apart from some error strings in output in case the class could not be created). For this even the LinkageError is considered expected in this situation. (Wherever a buildexception was thrown, a buildexeception is still thrown, in case of logging still only logging applies.) If for instance an VirtualMachineError / ThreadDeath occurs however things may go different. (If no layer above catches the Error though.) Ideally those would leak all the way up, at least when thrown so that appropriate action can be taken by the VM (in case of a VirualMachineError exit, printing an error report). Currently those errors are sometime caught and converted to buildexceptions (Sometimes making clear OutOfMemoryErrors incomprehensible (e.g. 25086)) And sometimes not (e.g. 34342) See also discussion in 32941 (only party solved). So currently I am looking into getting as many catch Throwables out as possible, in small steps. Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34241] - tar task fails when fileset contains large file (=2GB)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34241. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34241 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
libraries
Just curious... are we going to remove this from CVS? (no rush) -Matt __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks echoxml.html
mbenson 2005/05/24 13:49:55 Modified:docs/manual coretasklist.html .WHATSNEW src/main/org/apache/tools/ant/taskdefs defaults.properties Added: src/main/org/apache/tools/ant/taskdefs EchoXML.java src/testcases/org/apache/tools/ant/taskdefs EchoXMLTest.java src/etc/testcases/taskdefs echoxml.xml docs/manual/CoreTasks echoxml.html Log: Add an echoxml task just for Steve! Revision ChangesPath 1.63 +1 -0 ant/docs/manual/coretasklist.html Index: coretasklist.html === RCS file: /home/cvs/ant/docs/manual/coretasklist.html,v retrieving revision 1.62 retrieving revision 1.63 diff -u -r1.62 -r1.63 --- coretasklist.html 23 May 2005 21:35:45 - 1.62 +++ coretasklist.html 24 May 2005 20:49:55 - 1.63 @@ -46,6 +46,7 @@ a href=CoreTasks/dirname.htmlDirname/abr a href=CoreTasks/ear.htmlEar/abr a href=CoreTasks/echo.htmlEcho/abr +a href=CoreTasks/echoxml.htmlEchoXML/abr a href=CoreTasks/exec.htmlExec/abr a href=CoreTasks/fail.htmlFail/abr a href=CoreTasks/filter.htmlFilter/abr 1.833 +5 -3 ant/WHATSNEW Index: WHATSNEW === RCS file: /home/cvs/ant/WHATSNEW,v retrieving revision 1.832 retrieving revision 1.833 diff -u -r1.832 -r1.833 --- WHATSNEW 23 May 2005 22:34:04 - 1.832 +++ WHATSNEW 24 May 2005 20:49:55 - 1.833 @@ -110,9 +110,6 @@ * xmlvalidate and schemavalidate create a new parser for every file in a fileset, and so validate multiple files properly. Bugzilla Report 32791 -* New mapper, scriptmapper, supports scripted mapping of source files/strings to - destination strings. - Other changes: -- @@ -228,6 +225,11 @@ * Added initial support for Resource Collections, including the resourcecount task. +* New mapper, scriptmapper, supports scripted mapping of source files/strings + to destination strings. + +* Add the echoxml task. + Changes from Ant 1.6.3 to Ant 1.6.4 === 1.170 +1 -0 ant/src/main/org/apache/tools/ant/taskdefs/defaults.properties Index: defaults.properties === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/defaults.properties,v retrieving revision 1.169 retrieving revision 1.170 diff -u -r1.169 -r1.170 --- defaults.properties 23 May 2005 19:51:57 - 1.169 +++ defaults.properties 24 May 2005 20:49:55 - 1.170 @@ -208,6 +208,7 @@ schemavalidate=org.apache.tools.ant.taskdefs.optional.SchemaValidate verifyjar=org.apache.tools.ant.taskdefs.VerifyJar resourcecount=org.apache.tools.ant.taskdefs.ResourceCount +echoxml=org.apache.tools.ant.taskdefs.EchoXML # deprecated ant tasks (kept for back compatibility) starteam=org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut 1.1 ant/src/main/org/apache/tools/ant/taskdefs/EchoXML.java Index: EchoXML.java === /* * Copyright 2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.tools.ant.taskdefs; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import org.apache.tools.ant.Project; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.util.XMLFragment; import org.apache.tools.ant.util.DOMElementWriter; import org.w3c.dom.Node; import org.w3c.dom.Element; /** * Echo XML. * @since Ant 1.7 */ public class EchoXML extends XMLFragment { private static final DOMElementWriter writer = new DOMElementWriter(); private File file; private boolean append; /** * Set the output file. * @param f the output file. */ public void setFile(File f) { file = f; } /** * Set whether to append the output file. * @param b boolean append flag. */ public void setAppend(boolean b) {
Re: cvs commit: ant/docs/manual/CoreTasks echoxml.html
Why not to add this functionality into normal echo? - Alexey. On 24 May 2005 20:49:55 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: mbenson 2005/05/24 13:49:55 Modified: docs/manual coretasklist.html . WHATSNEW src/main/org/apache/tools/ant/taskdefs defaults.properties Added: src/main/org/apache/tools/ant/taskdefs EchoXML.java src/testcases/org/apache/tools/ant/taskdefs EchoXMLTest.java src/etc/testcases/taskdefs echoxml.xml docs/manual/CoreTasks echoxml.html Log: Add an echoxml task just for Steve! -- Alexey N. Solofnenko trelony at gmail.com http://gmail.com home: http://trelony.cjb.net/ Pleasant Hill, CA (GMT-8 hours usually)
cvs commit: ant/src/main/org/apache/tools/ant/util XMLFragment.java
mbenson 2005/05/24 14:04:14 Modified:src/main/org/apache/tools/ant/util XMLFragment.java Log: Oops need this for echoxml task. Revision ChangesPath 1.11 +3 -2 ant/src/main/org/apache/tools/ant/util/XMLFragment.java Index: XMLFragment.java === RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/XMLFragment.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- XMLFragment.java 1 Dec 2004 15:07:27 - 1.10 +++ XMLFragment.java 24 May 2005 21:04:14 - 1.11 @@ -23,8 +23,9 @@ import org.w3c.dom.Node; import org.w3c.dom.Text; -import org.apache.tools.ant.DynamicConfiguratorNS; import org.apache.tools.ant.DynamicElementNS; +import org.apache.tools.ant.ProjectComponent; +import org.apache.tools.ant.DynamicConfiguratorNS; /** * Use this class as a nested element if you want to get a literal DOM @@ -37,7 +38,7 @@ * * @since Ant 1.7 */ -public class XMLFragment implements DynamicElementNS { +public class XMLFragment extends ProjectComponent implements DynamicElementNS { private Document doc; private DocumentFragment fragment; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: ant/docs/manual/CoreTasks echoxml.html
--- Alexey Solofnenko [EMAIL PROTECTED] wrote: Why not to add this functionality into normal echo? I suppose if you wanted to use entities, echo already can do this (clumsily). This task (OUCH actually doesn't compile b/c I forgot a file) was exceedingly easy and enforces well-formedness of the nested XML due to its being parsed as XML. -Matt - Alexey. __ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: ant/docs/manual/CoreTasks echoxml.html
Do you mean, that the current echo task cannot be made to accept XMLFragment? - Alexey. Matt Benson wrote: --- Alexey Solofnenko [EMAIL PROTECTED] wrote: Why not to add this functionality into normal echo? I suppose if you wanted to use entities, echo already can do this (clumsily). This task (OUCH actually doesn't compile b/c I forgot a file) was exceedingly easy and enforces well-formedness of the nested XML due to its being parsed as XML. -Matt - Alexey. -- / Alexey N. Solofnenko home: http://trelony.cjb.net/ / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: ant/docs/manual/CoreTasks echoxml.html
--- Alexey N. Solofnenko [EMAIL PROTECTED] wrote: Do you mean, that the current echo task cannot be made to accept XMLFragment? It could, but for easiest coding, the XMLFragment would then be represented by a discrete nested element: echo file=foo.xml xml foo blah=bar foochild / foochild / foochild / /foo /xml /echo Alternatively, echo could itself be made to implement DynamicElement/NS and would basically need to clone code from XMLFragment. Either way you would probably need to enforce mutual exclusion of (nested text/message attribute) or nested XML. So no, I don't suppose there is any reason you couldn't do it this way. -Matt - Alexey. Matt Benson wrote: --- Alexey Solofnenko [EMAIL PROTECTED] wrote: Why not to add this functionality into normal echo? I suppose if you wanted to use entities, echo already can do this (clumsily). This task (OUCH actually doesn't compile b/c I forgot a file) was exceedingly easy and enforces well-formedness of the nested XML due to its being parsed as XML. -Matt - Alexey. -- / Alexey N. Solofnenko home: http://trelony.cjb.net/ / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: ant/docs/manual/CoreTasks echoxml.html
I am just thinking that less tasks is better. If we can add echoxml functionality into existing echo tasks there will less documentation and code to maintain. - Alexey. On 5/24/05, Matt Benson [EMAIL PROTECTED] wrote: --- Alexey N. Solofnenko [EMAIL PROTECTED] wrote: Do you mean, that the current echo task cannot be made to accept XMLFragment? It could, but for easiest coding, the XMLFragment would then be represented by a discrete nested element: echo file=foo.xml xml foo blah=bar foochild / foochild / foochild / /foo /xml /echo Alternatively, echo could itself be made to implement DynamicElement/NS and would basically need to clone code from XMLFragment. Either way you would probably need to enforce mutual exclusion of (nested text/message attribute) or nested XML. So no, I don't suppose there is any reason you couldn't do it this way. -Matt - Alexey. Matt Benson wrote: --- Alexey Solofnenko [EMAIL PROTECTED] wrote: Why not to add this functionality into normal echo? I suppose if you wanted to use entities, echo already can do this (clumsily). This task (OUCH actually doesn't compile b/c I forgot a file) was exceedingly easy and enforces well-formedness of the nested XML due to its being parsed as XML. -Matt - Alexey. -- Alexey N. Solofnenko trelony at gmail.com http://gmail.com home: http://trelony.cjb.net/ Pleasant Hill, CA (GMT-8 hours usually)
DO NOT REPLY [Bug 35044] - ccmcheckintask requires a file to work
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35044. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35044 --- Additional Comments From [EMAIL PROTECTED] 2005-05-25 07:30 --- Hello, First of all, if you want to prepare a patch, you are more than welcome to do so. As you are not a committer, you cannot checkin directly a patch. if you are interested, you should check out a local copy of ant from CVS (take the HEAD revision, as the 1.6 branch is closed). this document http://ant.apache.org/cvs.html explains how. To prepare your patch, read this document : http://ant.apache.org/ant_task_guidelines.html paragraph submitting to ant. Cheers, Antoine -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Update of Ant17/Planning by antoine
Dear Wiki user, You have subscribed to a wiki page or wiki category on Ant Wiki for change notification. The following page has been changed by antoine: http://wiki.apache.org/ant/Ant17/Planning -- * Eclipse 3.1 in June, would need Ant1.7 Monday May 9th, 2005 * Net``Beans 4.1 est. in [http://www.netbeans.org/community/releases/roadmap.html May]; some post-1.6.2 release by April would be nice to have * currently shipping patches for: #24918, #31928 - * would like to have merged to 1.6.3 (could be used sometime later): #30606 + * patch for: #30606 is included in Ant 1.6.3 * IntelliJ IDEA (5.0 expected in the summer) * JEdit (less tightly coupled) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]