Peter Donald
8f413c1208
Remove unused imports, remove glob imports, sort imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273169 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
f93b4f4fc8
Remove unused import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273168 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
de93400d04
Encapsulate some fields of DataType.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273167 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
74f104a7d1
Remove redudent assignments
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273166 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
af97c64cb1
Make <project>'s default attribute required to stop the sky from falling.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273163 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
8955734dc6
'java' attribute has never been used here. Get rid of it.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273162 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
15c3ec9b26
Destroy the process in case the thread is interrupted
otherwise it may run forever.
PR: 10345
Submitted by: Hal.Hildebrand@hellblazer.com (Hal Hildebrand)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273160 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Jon Skeet
c97bf5babb
Fixed up JavaDocs (where possible) to remove warnings (mostly about breakiterator).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273159 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
f9121ee81e
Encapsulate some fields in Task and add some deprecation warnings to coresponding fields.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273157 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
12e8a63e2f
Remove redundent assignments
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273156 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
28b68ab7d0
Encapsulate usage of project object rather than allowing objects 7 subclasses acessing a protected variable of their super super super .... class.
Deprecated the variable so that that anyone directly referencing variable will get warning and suggestion to use the accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273155 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
ef45079a18
Remove unused variable
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273150 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
d1dfe60650
Remove javadoc for throws that no exist
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273149 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
89cec29e1d
fix should go into 1.5.1
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273145 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
aa07dd4611
Make task replacements recreate their child elements when they get redefined.
PR: 10904
This should also fix the Axis build failure Sam has reported.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273144 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
e69f35fd22
Merge changes from 1.5 branch to HEAD.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273143 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
fc6a4383fa
* Add encoding attribute to <loadproperties>
* Remove dependency of <loadproperties> on StringInputStream
* Modify StringInputStream to support encoding
* Note that StringInputStream is not being used by any other Ant classes - the sole consumer was LoadProperties which no longer uses it.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273132 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
beb22f1490
Make build files that rely on Ant 1.5's behavior work again.
These build files rely on the fact that references to top level data
types get added before the data type's child elements have been
added. In a case like
<path id="foo">
<fileset dir="not-there" />
</path>
The toString method will return "" before the fileset has been added
but throw a BuildException afterwards. A logging statement in
Project#addReference will call toString and thus make the build fail,
while it would work in 1.5 as long as you never use the path.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273127 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
77ebc51b5b
Merge from the 1.5 branch.
PR: 10875
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273125 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
706007fa7f
Move all top level elements to an implicit target named "" and make
all othere targets depend on that one.
As a side effect, <description> is now handled by ProjectHelperImpl,
the data type has become unused.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273116 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
648275616e
Forgot to catch Errors while doing the diagnostics..making it totally useless
when there is a ClassDefNotFoundError...that is...most of the time..
hem...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273114 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1c960e7c14
Allow target-less build files by
(1) making project's default attribute optional.
(2) don't run executeTarget(s) if not asked for one
Adapt documentation and <antstructure>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273111 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
74617bddce
Make it serializable
Requested by: Jonas G�ransson (jongo728@student.liu.se )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273110 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
4ce5b624e1
Take care of extreme cases to do some suffix magic.
Added some more testcases to document this behavior.
PR: 10769
Reported by: jan.grant@bristol.ac.uk (Jan Grant)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273105 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
5fa2b3cd64
trax factory settings are now configured within a <factory> element.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273104 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
4e461155a5
More quotes.
I think it has been Diane who said we could almost put the entire
script into quotes - she's been right.
PR: 9550
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273099 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
d810b1b867
Remove useless import
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273090 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
1e8307708d
Allow to specify a given factory implementation for the transformer
(xsltc, xalan, saxon...) and to specify processor specific settings.
TraxLiaison has been completely refactored because the factory
needed to be created once everything was set up.
I don't think it is final state since it might be better to specify factory attributes
and element in a <factory> element rather than how it is now.
XSLTProcess starts to bevery difficult to read with all the inner classes as well...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273089 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
8f70bc2a91
Allow all tasks to be used outside of targets.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273088 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
66c400defd
Add jdk1.4 friendly getCause() method
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273086 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
670c32326d
Fix ANT_LIB path so that it uses a valid ANT_HOME under Cygwin..
PR: 10664
Submitted by: patdtaylor2000@yahoo.com (Patrick Taylor)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273085 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
da5a13f8e4
Merge differences between the ANT_15_FINAL branch and the trunk into the trunk.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273081 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Erik Hatcher
e5235423cc
dIon's cleanup and doc patches. I put this on the HEAD branch so as to not touch 1.5 branch right before the release.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273080 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
b10ac6b22e
Add default value to <input>.
Submitted by: Scott Sanders <ssanders@nextance.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273043 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
ee204741ec
Pointer to PMD.
Submitted by: Tom Copeland <tom@infoether.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273040 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
25d72a26d4
MParse refactoring
PR: 10160
Submitted by: jesse@cryptocard.com (Jesse)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272999 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
5651828604
Provide messages when JUnit assertions fail
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272973 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
b8974f6a8b
Make sure Bzip tests start with a clean sheet
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272972 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
6bd8d6e938
Merge changes made to 1.5 Beta2.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272967 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stephane Bailliez
270394a09f
Extend the range of options ANTLR task is able to deal with
Submitted by:
Stephen Chin, aphid@versionablestore.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272941 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c3e3cee3b0
Don't catch stuff thrown in System.exit
PR: 9414
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272868 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
2aad5f9f54
recursively expand filter tokens.
PR: 9378
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272867 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
f40cbc60b3
Merge over a bug-fix needed to get jakarta-tomcat built by Gump.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272855 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Steve Loughran
5b320cdc20
Keith Wannamaker's classpath patches to jspc.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272843 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
ca91f8cb7e
Merge changes made to 1.5 Beta1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272826 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Diane Holt
337ae87977
Avoid getting an NPE by making sure the property attr is set.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272810 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1a8bb2e5a5
Add ability to generate XML to <echoproperties>.
Add sourcefile attribute that can read arbitrary files to the same task.
Submitted by: Ingmar Stein <stein@xtramind.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272806 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c09d386575
Make sure user-properties remain user-properties.
This is a partial merge of Ant.java from the 1.5 branch (only partial,
sorry Magesh) that is required to avoid a Gump build failure of
avalon-phoenix (which does several nested <ant>'s with varying
inheritall values and ends up with relying on a property that has been
set on the command line but has disappeared).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272796 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Costin Manolache
dabc2a2e75
Fix getResource() for the project helper, there's no / at the beginning.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272728 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
c0ddb31137
JDK 1.2 compatibility.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272670 13f79535-47bb-0310-9956-ffa450edef68
23 years ago