Peter Donald
e84e6207dc
Cleaned up copy method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270807 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
04ce488e76
Moved inner class to be a top level class
Moved toURL from Path to PathUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270806 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4850b4c745
Move addExtdirs to PathUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270805 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3c5d592a35
Extract inner classes and move contentEuqls to FileUtil
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270804 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9026bb612d
Use IOUtils.shutdown() for readers/writers
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270803 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8562038f0b
Update the jars as added some more methods to ensure safe shutdown of readers/writers and cloned the contentsEquals method into FileUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270802 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
fecfb6147a
Started to cleanup ExecuteOn
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270801 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
892dd8df07
Started to cleanup ExecuteOn
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270800 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8d3ee3fbea
Reworked task to remove dependency on Execute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270799 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7e5853486c
Did some create->add munging
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270798 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
38dce34edf
Did some create->add munging
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270797 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1e745fe396
Update location of BZip stuff
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270796 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ee6f20fbfc
Move general purpose utility code for bzip/zip/tar into aut
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270795 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8bf8f72792
addConfiguredX --> addX
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270794 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7ac20d949c
Started to refactor and clean code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270793 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c05fecf453
No need for interface to be public
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270792 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
337e359a8a
Cleaned up class a little
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270791 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0c276b68a7
Use correct extension for example
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270788 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f0aec0feb7
Move g/b zip stuff into new library
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270787 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
29cd889775
The attached patch makes <path> useable as a data-type in myrmidon.
* Added a String -> Path converter.
* Added the appropriate declarations to ant1-ant-descriptor.xml.
* PathLocation is now only used internally by Path. This means a <path> may
not contain nested <pathlocation> elements any more. Nested <path> elements
can be used to do the same thing.
* Removed Path.systemClasspath and Path.concatSystemClassPath(). The goal
is to add specialised <systemclasspath>, <antruntime>, and <javaruntime>
data-types to control this explicitly. I left it unfinished, because the
as-yet-unwritten Java util stuff will determine how it should be done.
* Moved Path.addExtdirs() -> DefaultCompilerAdaptor. This was the only
place it was used.
* Cleaned out a few more Path createX() methods.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270786 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7b52927716
Whitespace zap
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270785 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
b90678157d
Refactored Packing code so that only the absolute minimum is contained in sub-classes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270784 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e094f083b6
Refactored Unpacking code so that only the absolute minimum is contained in sub-classes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270783 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5dde044f67
Remove uneeded taskdef list
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270782 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
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
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
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
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