Steve Loughran
80962473e9
cvs didnt like the latin-1 stuff
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270375 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
a225264f50
new loadfile task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270374 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
43ebf0d68f
new test for nested text element working, PR: 5579
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270372 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ce90a68baa
Add a testcase that demonstrates why FOP's build fails right now.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270140 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
3745d5dc70
Add a new inheritRefs attribute to <ant> with a default value of false
that controls implicit copying of references - i.e. we don't copy
anything by default.
Try to copy a clone before copying the real object.
inheritRefs="true" doesn't make any sense for <antcall> as all
references of the calling project will be defined in the new project
and wouldn't be overwritten. That's why <antcall> didn't even get
this attribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270136 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ddc395dffa
Add some tests for manifest task - realized that empty manifest aren't
that empty.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270133 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1318b84a90
remove exit ability from <input>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270129 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
b546691d3a
Add if/unless attributes to <fail>.
PR: 1380
This is the first step to remove the fail functionality from input and
waitfor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270126 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
05b5cb8f3d
Allow <ant> and <antcall> to pass references to the subbuilds.
Submitted by: Matthieu Bentot <mbentot@arantech.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270105 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
d5f835f2ac
Minor layout change.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270102 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
69d796cd1e
Added a test for time dependent copy -and the ability to override it.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270095 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
b06aed6911
Update to remove warnings generated by antcall due to last immutability tightening. Did this by adding a protected constructor to property.
Made sure that operations internal to Project could not generate these warnings by adding a new setPropertyInternal method that didn't do any checks.
Also made the getUserProperties and getProperties methods return copies of maps rather than direct references.
Updated WHATSNEW to warn about these issues.
Added some unit tests to verify that property immutability is enforced - where we actually do enforce it ;)
Submitted by: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270078 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
e503ebd4c7
setFoo(String) replaced with setFoo(ExtendedEnumeratedAttribute) for certain attributes of these tasks:
Available.java
Tar.java
Tstamp.java
setFoo(String) has been deprecated for the affected attributes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270071 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
6c0bd98809
Clean up tabs and fix some ugly css mistakes.
Should look a little bit better now.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270064 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f6db0835f7
New task <input>
Submitted by: Ulrich Schmidt <ulrich.schmidt@gmx.net>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270051 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
3beb7f13cd
Make BZip2 task comply with native bzip2 when there are multiple blocks
in the compressed file.
Submitted by Keiron Liddle "keiron@aftexsw.com"
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270047 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
bf5d49abf1
Preparing real huge test files on bzip2 tasks....
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270046 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
b6e535486e
re-add files in binary mode.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270040 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a2fccdf28d
make things binary, that should be binary.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270039 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
aac9052b05
Rewrote the xsl that allows to visualize ant build logs.
Should be a little bit more sexy than the original that
was there for a long time.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270004 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
718426d318
Fixed a comment...in case it is useful to someone
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270003 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
c4ee8d1bc8
Fixed typo. excludesfiles is an attribute not an element
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269994 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
419936a246
XSL that allows automatic update from deprecated tasks to non-deprecated tasks.
At the moment it handles the following tasks:
apply, javadoc2, deltree, copydir, copyfile, rename.
Alternatively it handles the deprecation of the attributes jarfile and zipfile of jar
and zip tasks that will be deprecated starting from Ant 1.5
As suggested by Jose Alberto Fernandez <j_a_fernandez@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269993 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
95fa304e14
1. As suggested by Peter, nixed the attributes outfile & verbose
previously added to Untar, Unjar, Unwar and Unzip, so that these tasks stay
focussed on unarchival and nothing but it.
2. If the Src attribute represents a directory, an exception is thrown, as Stefan
suggested. Nested Filesets to be used instead.
3. Testcase added to catch this exception.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269985 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ee7a81d646
Add testcase for untar, improve testcases for zip/unzip/tar
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269978 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1942efc118
add real tests fro the gzip and bzip2 tasks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269964 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
495b7c4688
Add testcase for <checksum>, clarify its documentation when used as a
condition and create checksums in Ant's distribution target.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269963 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
a6ed69b0f7
An initial cut at getting the RPMs for Ant to build as part of the
distribution build.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269962 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
8b4c0066b0
Make sure, the test fails for the reason it is supposed to fail.
Submitted by: Magesh Umasankar <umagesh@rediffmail.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269956 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
373c7a1c37
Sample JProbe Coverage report obtained from running a Ant compile with a java.* filter.
I commented the doctype so that the dtd does not bother us when parsing
the document.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269948 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ea6e180655
fix gzip test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269931 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
c35619ac8a
Added more tests for Manifests
Fixed problem with multiple class-path attributes. Hopefully Sun will
update their spec sometime.
PR: 4683
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269921 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
3f37290d4a
Initial cut at Manifest tests. This is in preparation for handling multiple
Class-Path entries. More to come.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269912 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
540e8914a2
this is supposed to be a binary file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269910 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
96adb93402
this is supposed to be a binary file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269909 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
286537d1f8
Make <fixcrlf> work for long lines as well.
PR: 4186, 4646, 4709
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269907 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
7e8bb3f17d
a little cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269906 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
356935f4c3
oops
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269905 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
8e37dd0ba2
Add encoding attribute to <fixcrlf>
PR: 961
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269904 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
972e0a627a
Added a missing table header. Patch from Jeff Turner <jeff@socialchange.net.au>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269896 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
feb1b040e9
one more test case -JSP xml format (which does work), and ran tabs-to-spaces on the jspc.xml file just to make the diff look bigger.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269894 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ba558a362e
Make <typedef> something that is useful.
PR: 4143
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269893 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1e88913f66
Enable the commented out tests in TaskdefTest - they failed because
org.apache.tools.ant classes must live on the system classloader to be
loaded.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269892 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
26c2dac518
jsp testcases; not yet with matching junit tests
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269888 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f84c5e38fe
make unit tests work on Windows (at least I hope so 8-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269880 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
5f93102e17
Make sure the class passed into Project.addTaskDefinition is suitable
for a task, that is it is public, non-abstract, has a no-arg
constructor and a public no-arg execute method.
PR: 4163
Submitted by: Ralf Wiebicke <ralf@rw7.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269857 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
3bfae8ec28
one more JDK 1.1 fix - testcase will fail as touch with and without
argument will result in the same file modification time.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269856 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
32da696de4
Add testcases for the inheritall/dir attribute combinations and their
results on the new project's basedir - clarify documentation.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269838 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
be53ecfdc2
Add testcases for the substitution methods (and make them work 8-)
Add testcase for <replaceregexp>, this task now works with ORO,
Jakarta Regexp and JDK 1.4 if you use \1 to refer to parens in the
regular expression.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269822 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ffea0a9f74
Rewritten part of the regexp stuff, adding substitution and options.
New optional replaceregexp tasks that takes advantage of it.
Submitted by: Matthew Inger <matti@sedonacorp.com>
This doesn't really work (but doesn't break anything either), but I
wanted to get the stuff committed now, I will put work into it
tomorrow. See mail to the list for details.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269820 13f79535-47bb-0310-9956-ffa450edef68
24 years ago