Matthew Jason Benson
c09b4ad628
propertyset threw NPE with nested, mapped propertysets.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278290 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
5ee66cf257
<scriptmapper>, with tests and docs. At this point we have near total script coverage of all the core ant extension points. Note the refactoring of scriptcondition to give us a better base for these things.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278273 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Peter Reilly
3d66f4ef91
Allways create qualified targets in imported build files
PR: 28444
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278272 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
07680bb2e3
tests for junitreport handling various forms of bad data, plus explicit handling of zero-byte files with a different error message..
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278261 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
091610197b
Patch XMLValidate to create a new parser every time, plus test case that verifies it works.
Note that there is an extra change, the return code of doVerify() is now boolean and not void. I have plans for an option to halt the build only if a schema is valid (I'm using ant/gump) to validate XSD files, and want to test that a schema correctly rejects invalid files. This is just a step on the way, while I was in the method.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278246 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
4439a0410e
removes fork option from Apt, in code, in docs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278229 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Peter Reilly
0a36bf20ec
check for same targets in a source file
PR: 34566
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278179 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
c0bb2736d0
Somehat more intelligent way to let windows catch up in java test
PR: 34502
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278168 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
c1153f2f17
time /t gives IOException / error=2 (file not found) on win XP home NL.
cmd.exe should be available on all NT versions.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278167 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Peter Reilly
eaef2bfdbe
add backtrace attribute to <macrodef>
PR: 27219
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278161 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
fc605cd185
nt->winnt
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278157 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Steve Loughran
370ac32906
Now for the fun. Exec adds an osfamily attribute, so you can restrict execution to a platform such as nt, or unix. This propagates to execon, so into chmod, attrib, etc. We could therefore adapt them use osfamily as their way of being unix or windows only.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278155 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
4b343f551b
The refid attribute of the I/O redirector was not functional.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278141 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
86cd020ce9
Add negate attribute to linecontains and linecontainsregexp filterreaders.
PR: 34374
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278124 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
6bd9a3ed78
Remove "strip-duplicates" behavior from; add condition behavior to, Length task.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278120 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
2c68e6ab60
Add subproject Executor to Executor interface + its use to Project & Ant task.
Move keep-going awareness to Executors.
PR: 22901
Submitted by: Alexey Solofnenko
Reviewed by: Matt Benson
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278114 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
126daf8b31
Removing old code testing for JDK 1.0 and 1.1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278071 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
33832587a4
Ignore stray dir that can be left behind after an interrupted test.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278070 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
8a86b8228f
#25832 : deprecating the task names <WsdlToDotnet> and <style>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278068 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
41985851e2
change name of handledirchar to handledirsep to be similar to pathconvet
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278063 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
a6583cdfa6
fork in the test that says so
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278062 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
b02d774374
Well, a bit of hackery and you can verify that JAR is signed. But there is *nothing* to verify that the signature itself is trusted. Essentially "jarsigner -verify" is a worthless piece of junk from the security perspective.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278060 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
25e6c497c3
system properties are in <signjar>, so you can (manually) propagate proxy settings. Updated docs and examples.
Patched Environment.java for raw access to the variables, rather than just a string array.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278059 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
53bcbf1d66
Unit Test for PR 32973
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278056 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
450c0f1f2f
Factor out a base classs and add a verification task, a verification which cannot rely on return codes as a success metric, as the program returns 0 even for invalid jars. Hence the disabled test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278052 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
b41196e3ea
-TSA support, bug 32390
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278050 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
abf8e1ecce
-tests for old and new signjar features written; working
-signjar test patched for offline testing
-fixed SignJar to pass the tests
-doc updates to match tested code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278049 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
6342658910
Make pass on Windows
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278040 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
f39da1b5b5
unit test for PR 25911
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278034 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
a1634b4203
Unit test for PR 24866
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278031 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
39a8bb4be6
Make the framed JUnit report deal with multiple reports for the same testcase.
PR: 32645
Submitted by: Yves Martin <yves dot martin at elca dot ch>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277916 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
4a834a6214
Jikes is right, the fallthrough is a problem
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277902 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
e72ab9dcb5
little pointer to note that this test seems dependent upon viewcvs.cgi working, which it wont after an SVN move.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277888 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
80593698b1
Moving isreachable to reflect on the new method. On java <=1.4; if the hostname can be resolved then we are reachable.
All tests run against localhost. This *should* work everywhere, but no doubt someone with a confused /etc/hosts or no IPv4 stack will have different opinions.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277887 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
dae6ce9ace
Apt testing. We can say this works now :)
I do worry that the example Java1.5 code looks just like STL C++.
We also need to compare factorypath with classpath behaviour. But we can demo that you can add new factories
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277860 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
c7e8a8e498
Removed $Id$ cvs tags
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277846 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
0fb6ce69c2
Forgot to commit testcase for doubled EOF char on the new filter-delegated
FixCRLF task. Translated test assertions from Java to Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277825 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
b1f75a400d
First fix the tests to fail when they should, then fix rmic to work as before, even on Java1.5, then add new tests to explicitly do version checks.
bug "rmic always compiles on Java1.5"
http://issues.apache.org/bugzilla/show_bug.cgi?id=33862
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277811 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
5061e731c3
1. Add Kevin Greiner's FixCrLfFilter (slightly modified)
2. Adapt FixCRLF the task to use the filter (single set of fixcrlf code)
3. Implement ChainableReader in FixCRLF so that the existing taskdef
will be recognized as a nested element in a filterchain.
PR: 33155
Submitted by: Kevin Greiner
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277787 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
015ec69fd1
Add preservelastmodified attribute to fixcrlf.
PR: 25770
Submitted by: Yuji Yamano
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277778 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
81197f555a
Get with usetimestamp did not work when local timestamp roughly >= now.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277761 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
782bc21332
RedirectorElementTest stopped working on windows w/h cat on the path.
Now it passes the testcase if cat is not available.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277743 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
43cb5f9b25
get with usetimestamp did not work on Java 1.2 .
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277740 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
fc96c7e44a
cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277738 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
6c13bc7130
condition to check for parser features. Left to others to put into Ant's build.xml.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277735 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
97150b670e
fixcrlf gets a new attribute to make it easier to fix a single file. no nested filesets for <fileset file>, see.
Also put the schemavalidate in the right place in WHATSNEW.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277731 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
a317e0c69c
Remove trailing WS from blank lines.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277721 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
595133b251
Pathconvert no longer requires that one of (targetos|pathsep|dirsep)
be set; platform defaults are used when this is the case.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277715 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
b69245c422
those extra tests I threatened
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277711 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
6591339aa0
still had an interim attribute name here. fixed.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277709 13f79535-47bb-0310-9956-ffa450edef68
21 years ago