Stefan Bodewig
44f9042792
Make javac testcase work on JDK 1.4
Thanks Magesh.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272566 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
ccef0f8982
Implement and document a compression attribute for the tar and untar tasks.
Submitted by: Curt Arnold <carnold@houston.rr.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272562 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
94fa51d8c2
make tests use JavaEnvUtils.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272555 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
73c26feb56
JDK 1.1 doesn't seem to grok spaces in the keys of a properties file,
no matter which version of escapes I have tried.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272554 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
e6706b6dae
Make live easier for projects that subclass Project by setting the
input handler to a default value.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272551 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
01b5ce6c03
Inherit input handlers in <ant*>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272548 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
550607147f
merge input propsal into main tree.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272541 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
7b1b3d1667
added test to ensure XMLCatalog *and* classpath are working as expected.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272534 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
d7d2c3fe3e
First pass at a slight variant of Nicola Ken Barozzi's XmlProperty task from PR #7767 . More tests and probably some slight refactoring is needed to handle other cases (like the list properties) better, but works as-is pretty nicely.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272527 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
bbe68be969
new istrue/isfalse condition tests.
I stuck some contains tests in here too, not noticing that they were in ContainsTest. Well, extra tests are always good, and now we test validation too.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272524 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
ba37491689
the handy helper class to allow tasks to take hexadecimal, octal, or decimal strings, and returns back an intValue.
test cases even! :)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272518 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
55811ba73b
Decide whether javac will be invoked with -depend od -Xdepend on the
compiler attribute rather than the current JDK (falling back to
assuming the current JDK if compiler has not been specified).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272509 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
2a04171e90
merged in my tests. Added a new one verifying that properties we havent heard of get included as literals.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272482 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
25a478af38
Testfile for bugs 5377 and 7980 - this is supposed to create no output
at all, but does for the fork="no" thread case.
I tried to put this into a JUnit testcase, but either you can capture
System.out (and destroy DemuxOutputStream's magic) or you don't (and
can't assert there is no output).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272473 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
2fa6f80465
Fix testcase which failed due to change in single $ handling
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272454 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
e79b77b82b
Add compiler attribute and nested <compilerarg> element to <rmic>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272440 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
9d16acee8e
stand-alone tests for facade stuff.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272439 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
0b602ec2cb
Factor some facade task support stuff out from <javac>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272438 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
b7b1b04ab6
two tests sharing the same data set; XmlValidate fails horribly
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272423 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
17279312b5
2002
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272406 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
3518a35d47
Bring all headers into line
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272404 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
74e6cd31d6
test for WSDL and NET handling
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272389 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
7585dbdb21
Don't reencode console output.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272353 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
bbc333a9be
Fix up zipfileset references to allow any fileset
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272352 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f1d485a8b0
make DirSetTest work again.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272340 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
07a3027bb2
Add a check in depend so that if a class file is out of date and the
source file cannot be determined, the class is not deleted and a warning
is given.
PR: 7312
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272314 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
c17d143ac3
swallow characters that are illegal in XML documents.
PR: 6351
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272312 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
a3d6a54f95
Test depend cache
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272304 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
3c96ebf5a3
<depend> task does not handle case where an inner and outer class are written at
different times since they have a mutual dependency. I have introduced a 100
millisecond tolerance to catch this situation
PR: 7529
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272303 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
6638f2ac2b
Move assertion statement inside try block and make the testcase pass on Windows environments with dubious java.home
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272301 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
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
Stefan Bodewig
1f992c596b
rework inheritance tree for DirSet and FileSet, they are not
interchangeable.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272294 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
Stefan Bodewig
d463563bef
timeout support for <java>
PR: 5299
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272237 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
7196c156c9
Disable second half of this test for now. I'm not sure why you can't pass
a <dirset> to a <fileset> by reference.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272223 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
2510d3d6d4
Tabs, rats!
"It wasn't me."
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272191 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
98d509c6f8
reimplement DirSetTest as subclass of FileSetTest
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272183 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
af0dbb6ef2
reimplement DirSet as subclass of FileSet
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272182 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
274da33012
Add tests fro DirSet and the new DirSet/FileList support in Path.
Step one of planned DirSet refactoring.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272179 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
6a182bf836
typo
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272172 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
Stefan Bodewig
f7c0a7741d
Add method to FileUtils that emulates File.createNewFile (well, sort
of) and use it in Touch as well as BuildNumber.
Various JDK 1.1 issues.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272157 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d42faeefd8
New utility class that deals with the specifics of a Java
installation:
* Moved JVM version detection code from Project to the new class.
* Unified the "find executable" methods and factored them into the new
class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272069 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
2d12131d81
documented (not sufficiently, but its at least a start) the new nesting patternset and corrected copyright
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272044 13f79535-47bb-0310-9956-ffa450edef68
24 years ago