Peter Donald
ac3448e9c2
Don't use compare to false in conition
Removing a Audit violation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270873 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
8e89e1b214
Use StringBuffer in inner loop rather than string
Removing a Audit violation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270872 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
71eaa47717
Ugly hack to retrieve ExecManagerService by directly instantiating factory. This should really be done by the container in the future but is done here now to test out some ideas
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270870 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
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
ecabb60891
Move FileSet logic into a ScannerUtil class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270864 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
a71d1ee865
Cleaned up scanner a little
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270862 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
bf72fe7cfe
Add some more authours from original file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270861 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
ac5c79a80f
Updated test case to reflect latest changes
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270848 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
Conor MacNeill
acbf916917
Set up documentation structure
Add design notes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270844 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
0f017e73c1
Update script with change in value-> name in pattern attribute
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270841 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
fef5fd66d1
Create a utility class to contain all the static scanner utility functions
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270840 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
1581725922
Filter through the changes to PatternSet to other tasks/types
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270836 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
432a0ae47a
Convert creator methods into adders.
Remove ability to load patterns from files and so forth - do this in a separate task.
cleaned up a bit of cruft aswell.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270835 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
10a5eaecd4
Replace NameEntry class with Pattern class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270831 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
ce7d0dd681
Zap whitespace
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270830 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6a608b16ae
Reuse IOUtil functionality
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270829 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
Conor MacNeill
31830a391a
Mutant Mark 2
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270827 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
d0042ba437
Add a build target to run the newly added tests
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270824 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6e89a86896
* Created a unit test suite. Added some tests for DefaultConfigurer.
Submitted By: "Adam Murdoch" <adammurdoch_ml@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270823 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
Conor MacNeill
5a497d7dc7
Pre-commit cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270812 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
480c59459b
Moved toURL from Path to PathUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270808 13f79535-47bb-0310-9956-ffa450edef68
24 years ago