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
Stefan Bodewig
c4dee0afaf
Make JDK 1.1 happier
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270821 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
8d79b48a89
Make JDK 1.4 happier
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270820 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
b01362cc82
Correct spelling.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270819 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
c73be43653
Testcase to ensure <java> works as expected in both forked and unforked modes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270818 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
Stefan Bodewig
f09815a18e
yet another property needs to be passed down to the tests.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270816 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
5837816a8e
Make sure we pass down ant.home to unit tests (needed to make execute
with a change of cwd work on JDK < 1.3).
Fix a copyright line.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270815 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
17997f266a
- 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@270814 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
Conor MacNeill
43e8c0e742
Correct equality check in Manifest.Section class
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270811 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
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
Erik Hatcher
8217bd377d
added <dtd> documentation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270790 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
d50aa43f6a
new logos from fmignon at mail.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270789 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
Stefan Bodewig
198c2364b6
Use org.apache.env.Which utility to dump system info if present.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270781 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
3fe197c6e7
Modified the hack to initialize a class such that the side effect of having to create a valid object is not there anymore.
PR: 4107
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270780 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
e0155259cd
logos, logos, logos ...
Submitted by: Shine Kannikkatt <ShineKannikkatt@onerev.com>
Hirdesh Mishra <hmplus@yahoo.com>
<nickk@remoteapps.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270779 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
3f0b522896
oh my
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270778 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
15d9753a46
Make automatic detection of ANT_HOME work if ant is a symlink to the
actual ant script using a relative path as well.
Submitted by: Leon Breedt <ljb@neverborn.ORG>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270777 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
Erik Hatcher
70eb8ba85d
Added news blurb about logo submission deadline
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270775 13f79535-47bb-0310-9956-ffa450edef68
24 years ago