Stefan Bodewig
d1549366e5
Make <java> handle exceptions gracefully if failonerror="true" in
non-forked mode as well.
PR: 6353
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272297 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
9f71c862fe
New depend checks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272286 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
909ef56547
Setup to suport more test sets for depend task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272282 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
69b83f3213
Re-enable DependTest - no longer uses touch
Update many checks to handle optional tasks which require JDK 1.2+
Problems remain for builds with ORO present
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272236 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
ac65e76ac6
Test case for <classfileset>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272221 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
c0a3bacdf9
Test cases for <depend> task
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272217 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ea60c3f749
Make tag and date attributes of <cvs> work again as well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272198 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
62a2e7a759
If package attribute has been set, <cvs> would place it in front of
the command - which is wrong.
Reported by: Ovidiu Predescu <ovidiu@apache.org>
Updated cvs example to point to something usable.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272193 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
242af53651
Add nested <commandline> elements to <cvs>
PR: 7433
Submitted by: stephan beal <stephan@wanderinghorse.net>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272189 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
3fce5ce014
testcase for AbstractCvsTask
Submitted by: stephan beal <stephan@wanderinghorse.net>
As you need a CVS client and must run this test in an Ant source tree
checked out from CVS, this test does not run by default, you need to
enable it via
ant test -Dhave.cvs=1
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272188 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
4488376868
Add testcase for <ant>'s logfile placement, fix NPE in <ant>.
If <ant> should ignore the dir attribute, we only have to change the
locations of test3.log and test4.log.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272171 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
5594451580
New task <concat>
Submitted by: Derek Slager <derek@activate.net>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272165 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
eca5133693
Retain order of sections and attributes in manifests.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271919 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Diane Holt
cf83aba68a
Finally add the new <basename> and <dirname> tasks. (yay!)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271908 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
37cd9404c7
New attribute - ignoreSstemClasses - added to <available>.
PR: 6031
Submitted by: peterj@liberate.com (Peter Janes)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271903 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
3e35ab334b
two new tests
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271794 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
5aace621e9
Testcase for LoadProperties inclusive of testcases for a few filter readers as well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271790 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
ef35d9d19d
Fix StripJavaComments such that it strips out java comments properly. Testcase added.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271789 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
f9c551b16e
Promote Filter Reader proposal to main trunk.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271759 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
4ab1950bd8
Zip task
duplicate (attribute): behavior when a duplicate file is found. Valid values are add, preserve, and fail. The default value is add.
zipgroupfileset (nested fileset): allows for multiple zip files to be merged into the archive. Each file found in this fileset is added to the archive the same way that "zipfileset src" files are added.
Jar task
duplicate/zipgroupfileset: same as in Zip task
filesetmanifest (attribute): behavior when a Manifest is found in a zipfileset or zipgroupfileset file is found. Valid values are skip, merge, and mergewithoutmain. mergewill merge all of manifests together, and merge this into any other specified manifests mergewithoutmain merges everything but the Main section of the manifests. Default value is skip
manifest (existing attribute): this attribute now also accepts the name of a jar added through a fileset. If its the name of an added jar, the task expects the manifest to be in the jar at META-INF/Manifest.mf
Submitted by: Brian Deitte <bdeitte@macromedia.com>
PR: 5667, 5036
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271698 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
5c5b959ca7
1. Fix bug where <move> ignored <filterset>s.
2. Add filterset based test to CopyTest.
3. Add MoveTest.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271675 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
2ff97ac3d1
Now that we know why the test worked all these month, make it work
again, this time documenting the reason.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271603 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
72f4f0b5a4
assert that gzip's new uptodate check also affects bzip2.
2002
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271575 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
0005305ea6
time checking on gzip, with tests.
submitted by Jeff Martin <jeff@custommonkey.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271573 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
2ccd335cf3
Added 'prefix' option to <property>. Designed to only work when loading a property file or resource.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271519 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
3a60c3af7e
Utility task to list all your current properties along with unit tests, as written by Matt Albrecht . Added a prefix to save a subset of the properties for the very silly. Left it in optional.jar although it has no dependencies.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271507 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
6cbeee38fa
Here goes: propertyfile refactoring to hopefully fix all outstanding issues with it. "now" and "never" were removed as operations (didn't make sense). "never" was removed as a value (it caused a null pointer exception anyway).
Other code cleanup (axing "m_" prefixes).
Added "unit" attribute to <entry> defaulting to DAY. This was essentially the previous default, but it was far too confusing.
Test cases beefed up to consider several scenarios.
There may be more changes needed to satisfy other use cases, and certainly some previous (undocumented) behavior has been changed (for the better!).
Is there a use-case for "never" as a value?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271503 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
165b7dfa13
Tests and fixes for the DemuxOutputStream
1. New tests for the DemuxOutputStream and parallel task
2. Fix for the DemuxOutputStream thread problem identified by Jon Skeet
3. Found additional bug where UnknownElement does not hand output and error
strings onto the real task
A little bit of checkstyling.
Hmmm, really should be in bed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271501 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d3cd72efd0
<regularexpression> --> <regexp>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271430 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
bbf5ec8b44
Improve coverage of manifest unit tests
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271308 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
f1548aec2b
added tests to look at <java's> exception handling.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271280 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
b0566b79cb
java task test build file
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271277 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
a7f0867fda
Fix single-file fileset functionality. Did this ever work (,Peter)?
XP-style: added test case to detect bug, then fixed it. Also, trying to break out of the mould of the "testN" test case names - too brittle and non-descriptive.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271143 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
8fa296bb51
New attributes to tarfileset to allow equivalent of tar -P option
PR: 5874
Submitted by: Stefan Heimann (mail@stefanheimann.net )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271139 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
786e2e2e1c
Prefix attirubte for tar task
PR: 6054
Submitted by: mail@stefanheimann.net (Stefan Heimann)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271134 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
d65cafdcec
adding destFile naming scheme to tar, for consistency with the zip family and other tasks. I know Costin thinks we do this deliberately, just to break his builds, so even though I have updated the manual and the test cases, I have commented out the deprecated message which users should get when they use the tarfile attribute. Which means old builds still work, but the old params are no longer documented for new users.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271035 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
dd38c61aec
two new attrs to loadfile to make it more flexible in feeding other tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271033 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
Stephane Bailliez
2e9a06e9d1
create directory before running test...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270773 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
51b5caf9a8
lets test condition
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270747 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
3b41e256ee
<fixcrlf> failed on Mac files.
Reported by: Matt McHenry <mmchenry@carnegielearning.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270662 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1e01d1142c
Move responsibility for cleanup to the test themselves.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270623 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
5d79a4f5eb
Addition of destFile(File) attr to the zip/war/ear/jar tasks, fixup of docs, replacement of deprecation methods and appropriate changes to the tests.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270605 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
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