directory or the file is valid, by checking if the path contains any existing
non-directory element, thereby making sure the file/dir is constructible.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270385 13f79535-47bb-0310-9956-ffa450edef68
that take in 'PreferredAttribute's as argument gain higher precedence.
New attribute types - SrcDir, SrcFile, DestDir and DestFile are introduced. Each of these types is a PreferredAttribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270376 13f79535-47bb-0310-9956-ffa450edef68
that may arise when calling the <sql> task multiple
times. I tried to make it easy to customize the test
to run it on different databases.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270296 13f79535-47bb-0310-9956-ffa450edef68
name while doing pair driver/classpath would be better.
I tested it with mssql and it is OK with 1000 calls.
Alternatively it speeds up things significantly. (about 10 times faster for me)
PR: 2971
Submitted by: stephen.wong@everypath.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270294 13f79535-47bb-0310-9956-ffa450edef68
same class, under some conditions, both would be called.
This patch ensures that only the last method returned by the
introspection methods for a given nested element will be used, no
matter which comes last.
Submitted by: Adam Murdoch <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270276 13f79535-47bb-0310-9956-ffa450edef68
This is based on the original submission from the CruiseControl project.
Original <starteam> task has been deprecated
Starteam tasks now resides in the starteam package rather than scm.
Submitted by: stevec@ignitesports.com (Steve Cohen)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270254 13f79535-47bb-0310-9956-ffa450edef68
problem was caused by RuntimeConfigurable.maybeConfigure() being called
twice on the task's RuntimeConfigurable - once in
UnknownElement.maybeConfigure(), and once in the custom task's perform()
method.
* Whitespace in text content was sometimes being thrown away, depending on
how the SAX parser decided to divide it across calls to
ContentHandler.characters().
Submitted by: Adam Murdoch <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270251 13f79535-47bb-0310-9956-ffa450edef68
setSrc(File) and setDest(File). Ant;s intrspection will pick up the methods
that take in File as argument as File gains higher priority over String based
set* methods.
This had missed my eyes during my earlier cleanup drive, but it didn't miss
Peter's ;-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270171 13f79535-47bb-0310-9956-ffa450edef68
Comments in code should be self explanatory for the
next person who have to deal with it.
Testcase is updated (working dir is no more mandatory)
and I added a note in case someone wants to run
the tests... I should probably add a mention to
this in the ANTLR docs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270161 13f79535-47bb-0310-9956-ffa450edef68
It was probably not a very clever idea to remove the
lSep since it is probably used by user-written loggers.
To further shoot myself in the foot I noticed that
I was compiling a different Ant repository than the
in the one I was doing my changes...
NB:If I continue this way I promise to stay away
from code for a while and take some vacations.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270160 13f79535-47bb-0310-9956-ffa450edef68
running ANTLR in non-forked mode. It implies that
the System Manager is overriden and trap System.exit()
calls to throw an ExitException instead.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270149 13f79535-47bb-0310-9956-ffa450edef68
Note that this is added in Main only for JDK1.2+
since it looks like the SM is not that friendly
for previous versions.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270147 13f79535-47bb-0310-9956-ffa450edef68
that controls implicit copying of references - i.e. we don't copy
anything by default.
Try to copy a clone before copying the real object.
inheritRefs="true" doesn't make any sense for <antcall> as all
references of the calling project will be defined in the new project
and wouldn't be overwritten. That's why <antcall> didn't even get
this attribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270136 13f79535-47bb-0310-9956-ffa450edef68