Peter Donald
bfc6ef8295
This is the first patch of the looong process of refactoring the
setX()/createX() and setX()/addX() method pairs into a single setX() or
addX() method. �I've started with Path, to get rid of some its inertia.
Submitted by: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270776 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
dd0b18b311
Use non-deprecated attributes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270771 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e24538c342
Cleanup up Path object by makign PathElement a top level class and by removing the create() methods and replacing them wiuth adder methods.
Also moved some of the static methods (particularly path parsing) into FileUtils).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270770 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
df96ccea80
Remove deprecation warning by using the unpublished StringUtil.split
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270769 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
187502b3e7
Remove deprecation warning by using the thread safe implementation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270768 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9005ee85f3
Made the version attribute a required attribute of build file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270767 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
60b9a1fbd8
if left unspecified default target is "main"
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270766 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
2c8e8e115b
Fix JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270765 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
2d4c7f043c
Fix Javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270764 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ced321c00b
A couple of changes to the configurer in myrmidon:
* Handle references.
References can appear as either an attribute or a nested element of an
object:
As an attribute:
<javac classpath-ref="some-classpath">
As a nested element:
<javac>
<classpath-ref id="some-classpath"/>
</javac>
* Unify attributes and elements at the task interface.
This patch changes the configurer so that the addX() and setX() methods have
the same semantics. Each addX() or setX() method defines a property X,
which can appear as either an attribute x or as nested <x> elements (or
both).
There may also be createX() method, which is used to create the property
value to be configured. A property with a createX() method may only appear
as a nested element.
A quick summary of how the configurer configures an object:
- For each attribute x-ref="id":
- looks up the object using "id".
- sets the value using setX()/addX().
- this cannot be used if the object has a createX() method.
- For each attribute x="value":
- resolves property references in the value.
- converts the string value into the correct type.
- sets the value using setX()/addX().
- this cannot be used if the object has a createX() method.
- For each nested element <x-ref id="id"/>:
- handled the same as attribute x-ref="id".
- For each nested element <x>:
- creates the value using the createX() method (if present) or the no-args
constructor.
- configures the value using the nested element.
- sets the value using setX()/addX().
This is really only intended to be a temporary solution. I'd like to go
through and standardise on either addX() or setX(), and possibly look at
doing away with the createX() method. And there's plenty more stuff yet to
be implemented.
Submitted By: "Adam Murdoch" <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270761 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
99a9f19403
Add a sample to script to test the functionlaity of the -ref attribute expansion
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270760 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7596bde2ff
Ignore script
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270759 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e6d50c95c4
Readd exclude for MimeMail task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270758 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e18b76b6e7
Move xdoclet further up in build file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270757 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9d05541474
Map the .xml extension to the DefaultProjectBuilder.
Submitted By: "Adam Murdoch" <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270756 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
2cc1a6a0f7
If basedir of project is not specified then default to the same directory that contains build file.
Submitted By: "Adam Murdoch" <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270755 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
167787a0a4
Provide better error messages
Submitted By: "Adam Murdoch" <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270754 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0d326ca13c
Make sure that myrmidon buils without netcomponents present
Submitted By: "Adam Murdoch" <adammurdoch@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270753 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
244711d7d3
not with a house, not with a mouse, I do not like green eggs and SPAM
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270752 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
17a2037e6a
- Adding Excalibur for I18n
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270751 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
e8768da3a9
- Introducing i18 resources management. I'm using
the i18n package from Excalibur there is no point
in reinventing the wheel.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270750 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
626c685b1d
- Clean up
- Refactored some code and moved protected fields to private
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270745 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
48a9017850
*shrug* - now works ok without the abstract="true". I must have been seeing things yesterday.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270744 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
6917ba17c2
added builtin-ant-roles XDoclet generation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270742 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
c6b949c0c1
- Make the socket server cleaning up any connected client
and its input and output so that the JDK bug on Windows
does not shows up.
- Clean up.
- Fix the test, the thread was not the lock owner..dooh !
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270741 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0a07be8ea8
Started to clean zip and friends
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270740 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1dfdf1d555
Cleaning up the xml tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270739 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
b131c2950d
Made attributes of MatchingTask private
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270738 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8036fdf46a
Made NameEntry a top level class rather than an inner class of PatternSet
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270737 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
19446d7a81
Use accessor to get Value from EnumeratedAttribute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270736 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
04a62a443e
Made attribute private
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270735 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
239b263d1d
Remove unused type registry
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270734 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
aa92c5f870
Move Mapper adaptor and friends to mapper package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270733 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d71bdbed17
Remove unused class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270732 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6181417a1f
Remove usage of Reference
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270731 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
24d5431aab
Made PathTokenizer package access and exposed path parsing through FileUtils.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270730 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5060bd5cc2
Moved DomeLEementWriter to junit package as no other code uses it.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270729 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4e45c4dcd5
MoveLogLevel class into framework
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270728 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
73e215e519
Refactor log() to level into LogLevel class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270727 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
eb278f795e
Move mappers into their own package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270726 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c87229e2d8
Removed file that was accidently committed to CVS.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270725 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
1227be2f0a
added abstract="true", which for some reason gets it to pick up the two missing classes. *shrug* - I have a question in to xdoclet-user on this one.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270724 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
a9fe87e5ca
fix up a lot of the javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270723 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3ea7f98e80
Move Native2Ascii to text package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270722 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9bed3906ff
Cleanup Native2Ascii a little and extract inner class to be a top-level class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270721 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f8ab615aea
Move all the generic scanners into types package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270720 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
aff894bd1a
Don't use ExecTask directly but instead go via Commandline + Execute2
Move all the generic scanners into types package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270719 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d31e90a9e2
Project no longer needed here
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270718 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
7eea15fc17
First pass at an XDoclet proof-of-concept
Use the xdoclet target, and check the build directory for a generated core-ant-descriptor.xml
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270717 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f48a93735f
Moved useful static methods to FileUtils and removed all unused methods
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270716 13f79535-47bb-0310-9956-ffa450edef68
24 years ago