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
Peter Donald
c9046b7db8
Sort imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270689 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6f95776320
Process standard error should process standard error not standard output :)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270688 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
80714ea328
Make sure that exec runs even if you don't specify an OS
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270687 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
38aba801e3
Some spring cleaning
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270686 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
465dd5dfe1
Add a converter for booleans
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270685 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
69b275e120
Migrate all the ant-independent code for
native execution
environment loading
os detection
into a new hierarchy aut.
AUT basically being completely independent of Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270681 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
35641d9794
Add an Exec task that is reeplacement for ant1.xs ExecTask
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270677 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0cd16649f2
Remove unused debug ClassLoader
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270676 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f2e2178170
Made the ExecManager support another method of execution that involves supplying an ExecOutputHandler
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270555 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
2b4f4a5945
Shutdown standard input of process - not sure if this is a wise move
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270554 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
c4fd52dc5b
Shutdown IO if it is supplied
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270553 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
1d72126924
Created a OutputStream that redirected to an appropriate handler
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270552 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
d3609fe2ba
Move var closer to where it is used
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270551 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ff7c11c744
Added the ExecOutputHandler abstraction so that tasks don't have to worry about more complicated stream parsing and can work with just notification of lines appearing.
Also added a default implementation that conforms to the most common pattern of making stdout info log messages and stderr warn log messages
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270550 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
27040cde16
Use new Execute2 abstraction
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270548 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
babc775431
Add a task to load properties from a property file - optionally with a specified prefix
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270525 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
3bea6099f8
Add a task to load the native environment into some properties with a specified prefix
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270524 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
101185acab
Refactor now that resolveValue is part of TaskContext
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270523 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
65256f43dc
add in somee finals
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270522 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
146898d169
Mad all the command launchers use getEnvironmentSpec and thus made ExecUtil.toNativeEnvironment private as it is not used outside class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270521 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
4ad84fc4cc
Moved getEnvironmentSpec to ExecUtil
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270520 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
0a064d62aa
Reorded addition of proeprties to environment when exec call has an additive environment so specified values overide values in the native environment.
Also added basic javadocs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270519 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
65a74dfc9e
Made sure that setting of environment variables for the native exec calls occurs accoridng to epectations.
If no properties are specified then null is passed to underlying exec call.
if some properties are set and environment is additive then the native environment is added to environment object
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270518 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
5b78d0ba6f
Make sure a property file with no properties in it does not cause any exceptions.
Removed an unused method.
Made the Properties object returned from getNativeEnvironment() contain all environment properties rather than having the environment properties as default properties for property object. This allows much easier direct access to prpoerty values.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270517 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
399c54d5f7
No need to implement resolveValue as TaskContext now supports that method directly.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270516 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
425e6f46c6
Update implementation of TaskContext to support the new resolveValue method in TaskContext
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270515 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
f0e110d26c
Make sure new resolveValue method in TaskContext is exposed via inheritance
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270514 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
07f15736a0
Add a new method "resolveValue" to TaskContext that resolves values according to ant rules and using that particular context.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270513 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
27eea93c8c
Clened up task a little.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270505 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
2a6da440b8
Remove special handling of references as the container should take care of that.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270504 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ce6c8d711c
Started to migrate FileSet away from using Project and for implementing references itself (rather than letting container manage references)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270499 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
eff7370291
Cleaup imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270492 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
010a31e844
Refactor the Configurer so that it is much much faster and caches the reflection information. Make it much easier to support pluggable configurors in the future and alternative configuration mechanisms.
Submitted by: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270491 13f79535-47bb-0310-9956-ffa450edef68
24 years ago