DO NOT REPLY [Bug 28820] New: - Concat throws ArrayIndexOutOfBounds
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=28820. 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=28820 Concat throws ArrayIndexOutOfBounds Summary: Concat throws ArrayIndexOutOfBounds Product: Ant Version: 1.6.1 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Using concat with the fixlastline option fails on an input boundary condition. java.lang.ArrayIndexOutOfBoundsException: -1 at org.apache.tools.ant.taskdefs.Concat$MultiReader.read(Concat.java:784 ) at org.apache.tools.ant.taskdefs.Concat.concatenate(Concat.java:514) at org.apache.tools.ant.taskdefs.Concat.cat(Concat.java:463) at org.apache.tools.ant.taskdefs.Concat.execute(Concat.java:372) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) I haven't had a chance to see exactly what the boundary is, but adding an extra line to one of the last input files read before the failure occurrs works around the problem. It would be a nice-to-have if the concat task displayed the path of processed files at verbose or debug level. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: SiteNavigation
Date: 2004-05-06T22:08:41 Editor: 218.214.36.77 Wiki: Ant Wiki Page: SiteNavigation URL: http://wiki.apache.org/ant/SiteNavigation practice Change Log: -- @@ -8,6 +8,7 @@ * OrphanedPages * RandomPage * PageSize + * At the bottom of each page, there are actions that allow to navigate to other pages related to the current page: * Like''Pages - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: SiteNavigation
Date: 2004-05-06T22:09:16 Editor: 218.214.36.77 Wiki: Ant Wiki Page: SiteNavigation URL: http://wiki.apache.org/ant/SiteNavigation no comment Change Log: -- @@ -8,8 +8,7 @@ * OrphanedPages * RandomPage * PageSize - * - + At the bottom of each page, there are actions that allow to navigate to other pages related to the current page: * Like''Pages * Local''Site''Map - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Ant Wiki] Updated: FrontPage
Date: 2004-05-06T22:27:15 Editor: JanMatèrne [EMAIL PROTECTED] Wiki: Ant Wiki Page: FrontPage URL: http://wiki.apache.org/ant/FrontPage describe the name Ant Change Log: -- @@ -39,5 +39,4 @@ * AntNewbies - * ANT = [A]pache [N] [T]ool - + * ANT = [A]nother [N]eat [T]ool (as described in the [http://ant.apache.org/faq.html#ant-name FAQ]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ant task and nested table
What is a nested table? Jan -Original Message- From: Le Rumeur Yves [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 4:48 PM To: Mailling List Dev Ant Subject: Ant task and nested table I read quicly the ant task list, but i never found a task which have a nestedtable needed. My question is, all nested table for a task are necessary optionnal? And if it is the case, what the id system could be run (for developping new task)? Thanks -- Yves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Patch] Related Projects
Here is an update to the Related Projects page. The Centipede project is no more, Antworks has taken it place R, Nick Index: xdocs/projects.xml === RCS file: /home/cvspublic/ant/xdocs/projects.xml,v retrieving revision 1.14 diff -u -r1.14 projects.xml --- xdocs/projects.xml 20 Feb 2004 08:13:37 - 1.14 +++ xdocs/projects.xml 7 May 2004 06:08:37 - @@ -145,7 +145,42 @@ /tr /table /subsection + subsection name=Antworks +pThe antworks project is a set of tools and standardized targets that +greatly simplifies using ant in your project./p +p +The driver behind antworks is Importer. Importer is an extension to the +ant import task that will download and +cache an ant build.xml file and it's associated resources called +antlets. Antlets are available for Java compiling +and packaging, JUnit, Forrest, J2EE and +a href=http://antworks.sourceforge.net/antlets/;more/a. +/p +p +See the a href=http://antworks.sourceforge.net/start.html Getting Started/a +guide for more information. +/p + +table + tr +thCompatibility:/th +td1.6 an later/td + /tr + tr +thURL:/th +tda href=http://antworks.sourceforge.net/;http://antworks.sourceforge.net/index.html/a/td + /tr + tr +thContact:/th +tda href =http://lists.sourceforge.net/lists/listinfo/antworks-developers;Antworks Developers mailing lists/a/td + /tr + tr +thLicense:/th +tdThe Apache License 2.0/td + /tr +/table + /subsection subsection name=CruiseControl pCruiseControl is a tool for setting up a continuous build @@ -203,43 +238,7 @@ /table /subsection - subsection name=Krysalis Centipede -pKrysalis Centipede is a project build system based on -Apache Ant. Centipede uses pre-packaged modules called cents -that it downloads and installs automatically. Cents can be -used as Ant tasks or easy to use targets./p - -pFor example, Forrest is an XML standards oriented project -documentation framework based on Apache Cocoon. In order to -assist your projects adoption of this powerful documentation -generation tool we have packaged it as a cent that will -(optionally) be automatically downloaded, installed and used -to build project documentation which includes output from -other cents such as Javadoc, JDepend, Checkstyle and many -others./p - -table - tr -thCompatibility:/th -td1.4.1 an later/td - /tr - tr -thURL:/th -tda href=http://krysalis.org/centipede/;http://krysalis.org/centipede//a/td - /tr - tr -thContact:/th -tda href =http://sourceforge.net/mail/?group_id=36516;mailing lists/a/td - /tr - tr -thLicense:/th -tdThe Krysalis Patchy Software License, based on and -fully compatible with the Apache Software Foundation -license/td - /tr -/table - /subsection subsection name=NAnt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 28681] - [PATCH] Xml output for the SQL task
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=28681. 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=28681 [PATCH] Xml output for the SQL task --- Additional Comments From [EMAIL PROTECTED] 2004-05-07 08:35 --- Thanks for your replies guys. I'm sorry I probably seemed as being pissed off (and in fact I was a little ;-), but I did not fully understand what you meaned in your comments. In your current proposal, your nested XML output requires a certain order for the query, in order for nesting to be processed correctly. So what does happens if I have several queries in my sql/? Do they all are required to look the same? Actually a need a certain order for the *output* of the query, not the query itself. I mean, I don't care how you do the query, but the query gives a table as a result, right? So I nest based on the first, second, third, etc columns of the resulting table, just like pivoting works in a spreadsheet. I thought that this would simplify it for the user (as it does for me), but probably it's better to have the user specify the column names to group by. - If you want to be able to write generic extractors, (e.g., velocity) then you need to be able to specify the velocity script which may be complex. I'd only add it as a file, and besides, it's part of the extractor code, not the sql one. - If you want a scripted extractor, you may need to be able to include the text of the script. ? Can't I jsut reference a file in the extractor part? Something like: sql transaction extractor class=foo.my.Extractor formatter /formatter query select a, b from c, d where c.a = d.b /query /extractor /transaction /sql Now when you see all what is needed to do it properly, then it makes much more sence to use a separate task for all this. I'm still unconvinced, as the sql task already outputs CSV; but before commenting further I'll try to add the extractor to the SQL task and see how the code is, taking transactions into account. With that done, it will be easier for all to actually see it and decide. Better to create a new task and only use well-characterized project-wide patterns to hook SQLExec.java if necessary to nest the new result set formatting task. That's the idea, probably I was not clear. I mean that I want to separate the extractor part outside of the sql taks, leaving just hooks that keep all the sql stuff in the sql task. If it does not require hooks, then why not submit the formatter to Ant-Contrib where it can comforatbly enter the tree in an underdesigned first-cut state and evolve as one works out the requirements more fully? I would happily do it, but to be able to format while the sql task is running I need hooks. Thanks guys for keeping the replies coming, I'll see what I can do about this. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 28826] New: - copy (failonerror) not ok
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=28826. 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=28826 copy (failonerror) not ok Summary: copy (failonerror) not ok Product: Ant Version: 1.5.2 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I want to copy a file to a directory. failonerror is set to false. copy file=znv.xml todir=c:/temp overwrite=true failonerror=false/ The file does not exist. The task will be executet successfull. Up to here the functionality is ok. But the logMessage level (2=info) is wrong. The logMessage level should be 1 = Warning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 28820] - Concat throws ArrayIndexOutOfBounds
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=28820. 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=28820 Concat throws ArrayIndexOutOfBounds --- Additional Comments From [EMAIL PROTECTED] 2004-05-07 11:26 --- Is is possible to get the files that caused the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Patch] Related Projects
done in cvs. But I have left a small note on the Centipede paragraph. Jan -Original Message- From: Nick Chalko [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: [Patch] Related Projects Here is an update to the Related Projects page. The Centipede project is no more, Antworks has taken it place R, Nick
antlibs and classloaders #2
I am at the edge of a mental crisis, I need help Can someone explain how antlib paths and tasks works, I have this situation that I cannot understand. I defined this: project name=fuego.internal.test.include basedir=. property name=xml.encoding value=ISO-8859-1/ path id=fuego.internal.test.antlibs.path fileset dir=${fuego.basedir}/lib include name=fuegoexpress-antlib.jar/ include name=fuegoenterprise-antlib.jar/ include name=fuegoj2ee-antlib.jar/ include name=fuego-test-antlib.jar/ /fileset /path typedef resource=fuego/internal/test/ant/antlib.xml uri=antlib:fuego.internal.test.ant loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/enterprise/antlib.xml uri=antlib:fuego.tools.ant.enterprise loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/express/antlib.xml uri=antlib:fuego.tools.ant.express loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/j2ee/antlib.xml uri=antlib:fuego.tools.ant.j2ee loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ /project another Jar fuegocore.jar is in the classpath manifest of those jars, inside the fuegocore jar there is a clas Loader. When I am executing one of the tasks in the antlib I do this. Inside an Utils.class static method: task.log([LOADERS] Loader Class [ + Loader.class.hashCode() + / + Loader.class.getClassLoader() + ]); task.log([LOADERS] Utils Class [ + Utils.class.hashCode() + / + Utils.class.getClassLoader() + ]); and this is the result I get when I run this multiple times in the same ant run. [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [19551658/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [10520143/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [28623319/[EMAIL PROTECTED] the thing is: WHY THE LOADER CLASS IS ALWAYS THE SAME WHILE THE UTILS CLASS IS ALWAYS IN DIFFERENT ANT CLASSLOADERS!!! Also, If I put a static {} block in the Loader class it is invoked many times, not only one as it should, being the same class the one being returned. Please help, I cannot understand what is causing this and the side-effect is that I get OutOfMemory errors when I run nightly batch tests. Everything is appreciated. MAriano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/xdocs projects.xml external.xml
jhm 2004/05/07 05:36:35 Modified:docs projects.html external.html xdocsprojects.xml external.xml Log: Antworks/Centipede; BuildMonkey; sync table layout of projects/external Revision ChangesPath 1.55 +110 -53 ant/docs/projects.html Index: projects.html === RCS file: /home/cvs/ant/docs/projects.html,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- projects.html 29 Feb 2004 08:43:54 - 1.54 +++ projects.html 7 May 2004 12:36:35 - 1.55 @@ -185,7 +185,7 @@ a CASE-tool and generates classes and deployable components (J2EE or other) specific for your application architecture./p - table class=ForrestTable cellspacing=1 cellpadding=4 + table class=externals cellspacing=1 cellpadding=4 tr th colspan=1 rowspan=1 valign=top align=left @@ -235,7 +235,7 @@ task (like an codelt;ifgt;/code task) and a development playground for experimental tasks like a C/C++ compilation task for different compilers./p - table class=ForrestTable cellspacing=1 cellpadding=4 + table class=externals cellspacing=1 cellpadding=4 tr th colspan=1 rowspan=1 valign=top align=left @@ -289,7 +289,7 @@ pIncludes several additional tasks: Assert, If/Else, Try/Catch/Finally, Switch, Variable, Stopwatch, Limit, Math, Post, SSH, SCP, AntFetch, AntCallBack./p - table class=ForrestTable cellspacing=1 cellpadding=4 + table class=externals cellspacing=1 cellpadding=4 tr th colspan=1 rowspan=1 valign=top align=left @@ -342,7 +342,7 @@ sharing of knowledge within an organization by automatically updating a project intranet site with artifacts from the latest build./p - table class=ForrestTable cellspacing=1 cellpadding=4 + table class=externals cellspacing=1 cellpadding=4 tr th colspan=1 rowspan=1 valign=top align=left @@ -385,15 +385,24 @@ /tr /table h4 class=subsection -a name=CruiseControl/a -CruiseControl +a name=Antworks/a +Antworks /h4 -pCruiseControl is a tool for setting up a continuous build -process. CruiseControl provides an Ant wrapper and a set of -tasks to automate the checkout/build/test cycle. CruiseControl -also comes bundled with a servlet for viewing the status of -the current build, as well as previous build results./p - table class=ForrestTable cellspacing=1 cellpadding=4 +pThe antworks project is a set of tools and standardized targets that +greatly simplifies using ant in your project./p +p +The driver behind antworks is Importer. Importer is an extension to the +ant import task that will download and +cache an ant build.xml file and it's associated resources called +antlets. Antlets are available for Java compiling +and packaging, JUnit, Forrest, J2EE and +a href=http://antworks.sourceforge.net/antlets/;more/a. +/p +p +See the a href=http://antworks.sourceforge.net/start.html Getting Started/a +guide for more information. +/p + table class=externals cellspacing=1 cellpadding=4 tr th colspan=1 rowspan=1 valign=top align=left @@ -401,7 +410,7 @@ /th td colspan=1 rowspan=1 valign=top align=left - Ant 1.2 and higher + 1.6 and later /td /tr tr @@ -411,7 +420,7 @@ /th td colspan=1 rowspan=1 valign=top align=left - a href=http://cruisecontrol.sourceforge.net/;http://cruisecontrol.sourceforge.net//a + a href=http://antworks.sourceforge.net/;http://antworks.sourceforge.net/index.html/a /td /tr tr @@ -421,7 +430,7 @@ /th td colspan=1 rowspan=1
Re: antlibs and classloaders #2
Hi Mariano, I assume you are calling the typedef commands multiple times. - hence the different antloaders. But you only need to typedef the types/tasks once. You should wrap the taskdefs in a macrodef or a target, and call them once in the master build file before doing any subant, or ant calls. Peter Mariano Benitez wrote: I am at the edge of a mental crisis, I need help Can someone explain how antlib paths and tasks works, I have this situation that I cannot understand. I defined this: project name=fuego.internal.test.include basedir=. property name=xml.encoding value=ISO-8859-1/ path id=fuego.internal.test.antlibs.path fileset dir=${fuego.basedir}/lib include name=fuegoexpress-antlib.jar/ include name=fuegoenterprise-antlib.jar/ include name=fuegoj2ee-antlib.jar/ include name=fuego-test-antlib.jar/ /fileset /path typedef resource=fuego/internal/test/ant/antlib.xml uri=antlib:fuego.internal.test.ant loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/enterprise/antlib.xml uri=antlib:fuego.tools.ant.enterprise loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/express/antlib.xml uri=antlib:fuego.tools.ant.express loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/j2ee/antlib.xml uri=antlib:fuego.tools.ant.j2ee loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ /project another Jar fuegocore.jar is in the classpath manifest of those jars, inside the fuegocore jar there is a clas Loader. When I am executing one of the tasks in the antlib I do this. Inside an Utils.class static method: task.log([LOADERS] Loader Class [ + Loader.class.hashCode() + / + Loader.class.getClassLoader() + ]); task.log([LOADERS] Utils Class [ + Utils.class.hashCode() + / + Utils.class.getClassLoader() + ]); and this is the result I get when I run this multiple times in the same ant run. [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [19551658/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [10520143/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [28623319/[EMAIL PROTECTED] the thing is: WHY THE LOADER CLASS IS ALWAYS THE SAME WHILE THE UTILS CLASS IS ALWAYS IN DIFFERENT ANT CLASSLOADERS!!! Also, If I put a static {} block in the Loader class it is invoked many times, not only one as it should, being the same class the one being returned. Please help, I cannot understand what is causing this and the side-effect is that I get OutOfMemory errors when I run nightly batch tests. Everything is appreciated. MAriano - 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]
patch for CoreTasks/macrodef.html
Hi, I found typo in docs/manual/CoreTasks/macrodef.html. Here is the patch. Index: macrodef.html === RCS file: /home/cvspublic/ant/docs/manual/CoreTasks/macrodef.html,v retrieving revision 1.18 diff -u -r1.18 macrodef.html --- macrodef.html 27 Apr 2004 05:14:40 - 1.18 +++ macrodef.html 7 May 2004 17:53:21 - @@ -310,7 +310,7 @@ blockquote pre class=code lt;macrodef name=echotestgt; - lt;text name=textlt;/textgt; + lt;text name=text/gt; lt;sequentialgt; lt;echogt;@{text}lt;/echogt; lt;/sequentialgt; -- Yuji Yamano [EMAIL PROTECTED] Loan me your funky mind. So I can play with it, for nothing is good unless you play with it. --George Clinton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Thanks!
Please read the attached file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: when are tasks instances no longer referenced?
On Wed, 05 May 2004 18:04:27 +0100, Peter Reilly [EMAIL PROTECTED] wrote: Which do you mean the parse time or the executing targets time? I think the instantitation timing was changed in 1.6 by introducing ProjectHelper2, but I can't find any documentaion about this. Peter, thanks for explaining the ant internals. I found the documentaion at http://codefeed.com/tutorial/ant_config.html and I'm reading it now. It seems to be what I need:-) -- Yuji Yamano [EMAIL PROTECTED] Loan me your funky mind. So I can play with it, for nothing is good unless you play with it. --George Clinton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks macrodef.html
mbenson 2004/05/07 11:00:43 Modified:docs/manual/CoreTasks macrodef.html Log: Fix echotest example. Submitted by: Yuji Yamano Revision ChangesPath 1.19 +2 -2 ant/docs/manual/CoreTasks/macrodef.html Index: macrodef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/macrodef.html,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- macrodef.html 27 Apr 2004 05:14:40 - 1.18 +++ macrodef.html 7 May 2004 18:00:43 - 1.19 @@ -310,7 +310,7 @@ blockquote pre class=code lt;macrodef name=echotestgt; - lt;text name=textlt;/textgt; + lt;text name=text/gt; lt;sequentialgt; lt;echogt;@{text}lt;/echogt; lt;/sequentialgt; @@ -345,4 +345,4 @@ Foundation. All rights Reserved./p /body -/html \ No newline at end of file +/html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: patch for CoreTasks/macrodef.html
Fixed in CVS; thanks! -Matt --- Yuji Yamano [EMAIL PROTECTED] wrote: Hi, I found typo in docs/manual/CoreTasks/macrodef.html. Here is the patch. Index: macrodef.html === RCS file: /home/cvspublic/ant/docs/manual/CoreTasks/macrodef.html,v retrieving revision 1.18 diff -u -r1.18 macrodef.html --- macrodef.html 27 Apr 2004 05:14:40 - 1.18 +++ macrodef.html 7 May 2004 17:53:21 - @@ -310,7 +310,7 @@ blockquote pre class=code lt;macrodef name=echotestgt; - lt;text name=textlt;/textgt; + lt;text name=text/gt; lt;sequentialgt; lt;echogt;@{text}lt;/echogt; lt;/sequentialgt; -- Yuji Yamano [EMAIL PROTECTED] Loan me your funky mind. So I can play with it, for nothing is good unless you play with it. --George Clinton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant/docs/manual/CoreTasks macrodef.html
mbenson 2004/05/07 11:07:32 Modified:docs/manual/CoreTasks Tag: ANT_16_BRANCH macrodef.html Log: Sync with HEAD. Revision ChangesPath No revision No revision 1.2.2.18 +2 -2 ant/docs/manual/CoreTasks/macrodef.html Index: macrodef.html === RCS file: /home/cvs/ant/docs/manual/CoreTasks/macrodef.html,v retrieving revision 1.2.2.17 retrieving revision 1.2.2.18 diff -u -r1.2.2.17 -r1.2.2.18 --- macrodef.html 27 Apr 2004 05:16:51 - 1.2.2.17 +++ macrodef.html 7 May 2004 18:07:32 - 1.2.2.18 @@ -310,7 +310,7 @@ blockquote pre class=code lt;macrodef name=echotestgt; - lt;text name=textlt;/textgt; + lt;text name=text/gt; lt;sequentialgt; lt;echogt;@{text}lt;/echogt; lt;/sequentialgt; @@ -345,4 +345,4 @@ Foundation. All rights Reserved./p /body -/html \ No newline at end of file +/html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: ant CONTRIBUTORS
mbenson 2004/05/07 11:10:34 Modified:.CONTRIBUTORS Log: Yuji Yamano Revision ChangesPath 1.16 +1 -0 ant/CONTRIBUTORS Index: CONTRIBUTORS === RCS file: /home/cvs/ant/CONTRIBUTORS,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- CONTRIBUTORS 28 Apr 2004 06:18:08 - 1.15 +++ CONTRIBUTORS 7 May 2004 18:10:34 - 1.16 @@ -194,4 +194,5 @@ Wolfgang Werner Wolf Siberski Yohann Roussel +Yuji Yamano Zdenek Wagner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assertions
I think the description of assertions in docs/manual/CoreTasks/java.html is not clear. Because we can use assertions only if fork=true. Maybe JUnit tasks's manual has same problem. I don't know future plan, but at leaset, 1.6.x manual must be fixed. -- Yuji Yamano [EMAIL PROTECTED] Loan me your funky mind. So I can play with it, for nothing is good unless you play with it. --George Clinton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: antlibs and classloaders #2
but ... If I call typedef for the same file, with the same task, same uri, etc, why it redefine the tasks if they are already defined? BTW, it could help an unless attribute for typedef, not to do it again :) typedef resource=fuego/internal/test/ant/antlib.xml uri=antlib:fuego.internal.test.ant loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path unless=defined/ property name=defined value=true/ MAriano Peter Reilly wrote: Hi Mariano, I assume you are calling the typedef commands multiple times. - hence the different antloaders. But you only need to typedef the types/tasks once. You should wrap the taskdefs in a macrodef or a target, and call them once in the master build file before doing any subant, or ant calls. Peter Mariano Benitez wrote: I am at the edge of a mental crisis, I need help Can someone explain how antlib paths and tasks works, I have this situation that I cannot understand. I defined this: project name=fuego.internal.test.include basedir=. property name=xml.encoding value=ISO-8859-1/ path id=fuego.internal.test.antlibs.path fileset dir=${fuego.basedir}/lib include name=fuegoexpress-antlib.jar/ include name=fuegoenterprise-antlib.jar/ include name=fuegoj2ee-antlib.jar/ include name=fuego-test-antlib.jar/ /fileset /path typedef resource=fuego/internal/test/ant/antlib.xml uri=antlib:fuego.internal.test.ant loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/enterprise/antlib.xml uri=antlib:fuego.tools.ant.enterprise loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/express/antlib.xml uri=antlib:fuego.tools.ant.express loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/j2ee/antlib.xml uri=antlib:fuego.tools.ant.j2ee loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ /project another Jar fuegocore.jar is in the classpath manifest of those jars, inside the fuegocore jar there is a clas Loader. When I am executing one of the tasks in the antlib I do this. Inside an Utils.class static method: task.log([LOADERS] Loader Class [ + Loader.class.hashCode() + / + Loader.class.getClassLoader() + ]); task.log([LOADERS] Utils Class [ + Utils.class.hashCode() + / + Utils.class.getClassLoader() + ]); and this is the result I get when I run this multiple times in the same ant run. [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [19551658/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [10520143/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [28623319/[EMAIL PROTECTED] the thing is: WHY THE LOADER CLASS IS ALWAYS THE SAME WHILE THE UTILS CLASS IS ALWAYS IN DIFFERENT ANT CLASSLOADERS!!! Also, If I put a static {} block in the Loader class it is invoked many times, not only one as it should, being the same class the one being returned. Please help, I cannot understand what is causing this and the side-effect is that I get OutOfMemory errors when I run nightly batch tests. Everything is appreciated. MAriano - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: antlibs and classloaders #2
another thing, I did the typedef thing because I cannot add classpath to an antlib definition, so the problems are chained If I would define antlibs with classpath references directly it would be better MAriano Mariano Benitez wrote: but ... If I call typedef for the same file, with the same task, same uri, etc, why it redefine the tasks if they are already defined? BTW, it could help an unless attribute for typedef, not to do it again :) typedef resource=fuego/internal/test/ant/antlib.xml uri=antlib:fuego.internal.test.ant loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path unless=defined/ property name=defined value=true/ MAriano Peter Reilly wrote: Hi Mariano, I assume you are calling the typedef commands multiple times. - hence the different antloaders. But you only need to typedef the types/tasks once. You should wrap the taskdefs in a macrodef or a target, and call them once in the master build file before doing any subant, or ant calls. Peter Mariano Benitez wrote: I am at the edge of a mental crisis, I need help Can someone explain how antlib paths and tasks works, I have this situation that I cannot understand. I defined this: project name=fuego.internal.test.include basedir=. property name=xml.encoding value=ISO-8859-1/ path id=fuego.internal.test.antlibs.path fileset dir=${fuego.basedir}/lib include name=fuegoexpress-antlib.jar/ include name=fuegoenterprise-antlib.jar/ include name=fuegoj2ee-antlib.jar/ include name=fuego-test-antlib.jar/ /fileset /path typedef resource=fuego/internal/test/ant/antlib.xml uri=antlib:fuego.internal.test.ant loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/enterprise/antlib.xml uri=antlib:fuego.tools.ant.enterprise loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/express/antlib.xml uri=antlib:fuego.tools.ant.express loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ typedef resource=fuego/tools/ant/j2ee/antlib.xml uri=antlib:fuego.tools.ant.j2ee loaderRef=fuego.internal.test classpathref=fuego.internal.test.antlibs.path/ /project another Jar fuegocore.jar is in the classpath manifest of those jars, inside the fuegocore jar there is a clas Loader. When I am executing one of the tasks in the antlib I do this. Inside an Utils.class static method: task.log([LOADERS] Loader Class [ + Loader.class.hashCode() + / + Loader.class.getClassLoader() + ]); task.log([LOADERS] Utils Class [ + Utils.class.hashCode() + / + Utils.class.getClassLoader() + ]); and this is the result I get when I run this multiple times in the same ant run. [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [19551658/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [10520143/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Loader Class [6597453/[EMAIL PROTECTED] [t:testsetup] [LOADERS] Utils Class [28623319/[EMAIL PROTECTED] the thing is: WHY THE LOADER CLASS IS ALWAYS THE SAME WHILE THE UTILS CLASS IS ALWAYS IN DIFFERENT ANT CLASSLOADERS!!! Also, If I put a static {} block in the Loader class it is invoked many times, not only one as it should, being the same class the one being returned. Please help, I cannot understand what is causing this and the side-effect is that I get OutOfMemory errors when I run nightly batch tests. Everything is appreciated. MAriano - 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] - 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]