Peter Donald
3c2b554fbc
Make sure the output streams that redirect to loggers are closed (and thus flushed) when the native process completes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270869 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
7b38537d18
Make sure all output is processed and none is left buffered when the native process completes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270868 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c6753a0a7e
antDir -> homeDir
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270867 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
04a0ceea6f
Add in a basic example of the interface via which Service *could* be loaded into the runtime.
Added in a sample config file and a sample factory aswell.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270866 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0c7462a17f
Update tasks to reflect movement of logic from objects to service/utility objects
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270865 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e2e106d90b
Mover pattern logic into a PatternUtil class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270863 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
918484ab41
Move security/signing/etc related tasks to antlib
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270860 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4cccf2fa39
Fix protected-> public so method can be accessed outside package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270859 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
74e0414fae
Migrate patternset to framework package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270858 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
b6fdd06a77
Remove debug code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270857 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c171b4c9f2
Update to use new getService() method for retrienving sertvices
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270852 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
af9fedaddc
Update to use new Service based access-point
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270851 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
9fcace6e3a
Condition no longer throws a ContextException
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270850 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
304246c968
No need for task to extend AbstractContainerTask
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270849 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
43cbdfc52c
Replace need for Composable tasks with TaskContext.getService()
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270847 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c1d66dbc0c
Rebadge ContextException as a TaskException
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270846 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c1459a0550
STart to add the ability to retrieve services from the context
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270843 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
a15651fd43
Moved ROLE string to the only place it is being used.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270842 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6b70878e0b
Made tasks receive contexts directly rather than through Contextualizable interface as all tasks will most likely use the context in some fashion
Also fixed up misnamed error message
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270839 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4cd91bc229
Made tasks receive contexts directly rather than through Contextualizable interface as all tasks will most likely use the context in soem fashion
Also made getName protected again
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270838 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
e5a1a9f449
Made tasks receive contexts directly rather than through Contextualizable interface as all tasks will most likely use the context in soem fashion
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270837 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1829060b86
Added a constructor to make it easier to construct patterns
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270834 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
fbded36c8c
value -> name to conform with ant1
add utility method to evaluate name of pattern
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270828 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
61b8ac76e6
Add version attribute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270826 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c9e46c0f28
Bring condition into line with Ant2 thinking - make it check the value of condition - not just for its existance
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270825 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f52a170159
This patch adds bunch of minor features to the configurer:
* Added max multiplicity checking. Properties with a setter method can only
be set once, whereas properties with an adder method can be set an unlimited
number of times.
* Resolves properties in reference ids. e.g
<javac classpath-ref="${my-classpath-id-name}"/>
* Ignores String adder and setter methods, if other methods exist. Longer
term, the type should be able to specify exactly which method to use.
* Moved all per-object state behind the ConfigurationState interface. The
ObjectConfigurer is now responsible for state-based validation.
* Tidied-up error messages. More context info is available in error
messages, to make figuring out the problem easier. Error messages still
need work.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270822 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3d89aa70b2
Move the launchers package into the impl package.
Move the CommandLauncher interface into the impl package
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270817 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
8ce1de2178
- Fix order of modifiers
- Fix duplicate/unecessary imports
- Fix single if/else and loop without block
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270813 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
dcef853bab
No Need to use the EnvironmentData/EnvironmentVariable abstraction
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270810 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
42f63164a8
Moved some path manipulation utilities into PathUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270809 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
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
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
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
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
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
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
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
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
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
ab9225f227
Fix up name of error message in resource file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270690 13f79535-47bb-0310-9956-ffa450edef68
24 years ago