Stefan Bodewig
03bcc3e5cb
Fix a problem with HOME containing spaces on Cygwin.
PR: 10654
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273206 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
0d370d68a7
Make <available> less noisy.
Merged from the 1.5 branch.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273204 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Costin Manolache
8d673eadc0
Submited the patch from Patrick.
1. Removes the extraneous "cd `dirname $PRG`" line that causes the
script to break when Ant is invoked with from a relative path
(i.e. ../jakarta-ant/bin/ant).
2. Properly quote all environment variables that may contain paths.
The script would break if any of these environment variables
contained paths with spaces in them (a common occurrence on Windows).
3. Invoke Java using the "exec" shell command. There really is no need
to create a child process to run the JVM and by using the "exec"
command, there is less chance that killing the script will fail to
kill Ant.
PR:
Obtained from:
Submitted by: Patrick Luby <patrick.luby@sun.com>
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273200 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Erik Hatcher
f052bb39d6
Applied patch from Romin Irani, thanks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273199 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Bruce Atherton
71c6478591
Added a check on Property names using the "if" and "unless" attributes
23 years ago
Conor MacNeill
270295d734
Include underlying exception message in exception. Makes it simpler to debug
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273195 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
7a3141d683
Keep the kids happy - they need a project too.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273193 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
5896b285fc
Add a getter for linkname.
Submitted by: njoneill@llnl.gov
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273190 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
5e67dc2a68
merge bug fix from 1.5 branch.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273189 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
31fb6432cd
port ANTLR fix from 1.5 branch.
PR: 11222
Some copyright year fixes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273181 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Erik Hatcher
c647455d27
Kevin Grey's <image> task. A few modifications were made, most notably changes on setter types and removal of some unused variables flagged by IDEA.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273179 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
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