Basil Crow
ef85f491ee
Implement ClassLoader#findResource(String)
4 years ago
Stefan Bodewig
cc9d93f49f
Merge branch '1.9.x'
4 years ago
Stefan Bodewig
d1ccd324c1
small tweaks to release instructions
4 years ago
Stefan Bodewig
26dae06262
one more place to bump AntUnit dependency
4 years ago
Stefan Bodewig
ee14b754bf
happy new year
4 years ago
Stefan Bodewig
5118c987c5
Merge branch '1.9.x'
4 years ago
Stefan Bodewig
73c324b9b3
upgrade to AntUnit 1.4.1
4 years ago
Stefan Bodewig
aa9ec682ea
Merge branch '1.9.x'
4 years ago
Stefan Bodewig
6594a2d66f
port some fixes from Commons Compress
4 years ago
Stefan Bodewig
7f9c5ddc85
upgrade AntUnit
4 years ago
Jan Matèrne
e46302326d
As asked on the user list: targets also could contain datatypes (as stated in the java-comment on Target#children.
While target execution tasks are "perform()"ed and datatypes are "maybeConfigure()"d.
4 years ago
Jaikiran Pai
f61ac12960
Remove practically no-op code which was calling System.setSecurityManager()
Starting Java 17, System.setSecurityManager() usage is deprecated (for removal) as noted in https://openjdk.java.net/jeps/411 .
The code here was just calling getSecurityManager() and then in a finally block setting it back using setSecurityManager(). However, we aren't setting any other security manager in between these calls.
Looking at the code history, it appears that at one point back in 2001, we were indeed setting a custom security manager (commit 41893fdb30 ) but that was then reverted in commit ff4e823ee2 . So this current piece of code is practically doing nothing.
4 years ago
Stefan Bodewig
96fa99ee6c
create local copies of realThing to avoid TOCTOU race condition
see https://bz.apache.org/bugzilla/show_bug.cgi?id=65316
4 years ago
Aleksei Zotov
e6ab7d025f
Make Watchdog for JUnitLauncherTask customizable.
This closes #147 pull request at github/apache/ant repo.
4 years ago
Jaikiran Pai
f0c686b5c3
missed noting 64836 in WHATSNEW of 1.10.10
4 years ago
Jaikiran Pai
81419ddf02
Release 1.10.10 of Ant
4 years ago
Jaikiran Pai
ad07b5f29b
bz-64733 junitlauncher - Use the org.apache.tools.ant.util.LeadPipeInputStream, which as it states, will not cause an error when the writing thread is no longer alive
4 years ago
Stefan Bodewig
bd3e69685c
we don't want multiple instances of NullOutputStream
4 years ago
Jaikiran Pai
ecc419467f
fix typo
4 years ago
Stefan Bodewig
6d5f1bdc6b
add discardOutput and discardError to redirector, apply, exec, java
4 years ago
Stefan Bodewig
f6957d0ee3
Merge pull request #146 from chenyuheng/patch-1
correct a typo in the install part of manual (file separator)
4 years ago
Yuheng
b3c04f5870
correct a typo in manual (file separator)
File separator in Windows is backslash instead of slash
4 years ago
Jaikiran Pai
04be9be9ab
[junitlauncher] Don't let the PipedInputStream.read()s continue when the main thread exits
Related to https://bz.apache.org/bugzilla/show_bug.cgi?id=64733
The main "writer" thread which initiates the writes to the PipedOutputStream (via the switched System.out/System.err) would exit/complete but would leave the SysOutErrStreamReader thread alive thus causing the PipedInputStream.read()s to continue happening in that SysOutErrStreamReader thread. This would cause the following IOException because the writer thread has exited and is no longer alive:
[junitlauncher] Caused by: java.io.IOException: Pipe broken
[junitlauncher] at java.base/java.io.PipedInputStream.read(PipedInputStream.java:321)
[junitlauncher] at java.base/java.io.PipedInputStream.read(PipedInputStream.java:377)
[junitlauncher] at java.base/java.io.InputStream.read(InputStream.java:205)
[junitlauncher] at org.apache.tools.ant.taskdefs.optional.junitlauncher.LauncherSupport$SysOutErrStreamReader.run(LauncherSupport.java:525)
[junitlauncher] ... 1 more
4 years ago
Jaikiran Pai
71c230dd93
bz-64733 Fix potential deadlock when writing out log message in junitlauncher task
4 years ago
Stefan Bodewig
e28f70a062
record #145
4 years ago
Stefan Bodewig
2f5ebf2e45
Merge pull request #145 from helfper/fix-zos-write-byte
Override ZipOutputStream.write(int)
4 years ago
Helder Pereira
793519b02e
Override ZipOutputStream.write(int)
4 years ago
Stefan Bodewig
b01e7008ba
BZ-65089 support setting arbitrary configs for JSch Session
4 years ago
Stefan Bodewig
9cf0e53fb3
Merge pull request #144 from twogee/lost-tests
Some tests were lost in migration to JUnit 4
4 years ago
twogee
9469656e76
Some tests were lost in migration to JUnit 4
4 years ago
Stefan Bodewig
6dee370878
make http condition follow redirects from http to https
Bugzilla Report 65105
4 years ago
Jaikiran Pai
4e5b94a8f6
bz-65110 Fix the ant-testutil-sources.jar generation
4 years ago
Jaikiran Pai
5f8c6370a5
bz-65110 Fix the ant-testutil-sources.jar generation
4 years ago
Jaikiran Pai
41a6c4521e
bz-64836 junitlauncher - Use a NumberFormat to print the time elapsed to match what junit task prints in its summary
4 years ago
Jaikiran Pai
fc2b223edb
bz-64836 junitlauncher - include the test aborted count in the printed summary
4 years ago
Jaikiran Pai
840cd27bae
bz-64836 junitlauncher - Print the summary only if any test was present in the test plan
4 years ago
Gösen
dee3715270
bz-64952 junitlauncher - properly report JUnit4 Parametrized test, in the XML report
Closes #125 pull request at github/apache/ant repo
5 years ago
Stefan Bodewig
623d566309
encode characters illegal in XML in junitlauncher's report
also avoid double-encoding of sysout/err
Bugzilla Reports 63436 and 65030
4 years ago
Stefan Bodewig
79573ec457
happy new year
4 years ago
Jaikiran Pai
635ccfb5e4
bz-64836 junitlauncher - Print a more informative and instant summary for tests
4 years ago
Jaikiran Pai
7efd6d0c4f
bz-64912, bz-64790 Fix regression in javac task when using arguments file
5 years ago
Stefan Bodewig
05596f1f01
record change
5 years ago
Stefan Bodewig
43216ae7ef
coding style
5 years ago
Stefan Bodewig
a29c13004e
Merge pull request #141 from TheConstructor/input-file-tokenizer
#64855 Add filterbeforeconcat option to Concat
5 years ago
Stefan Bodewig
2694ac58b2
record change
5 years ago
Stefan Bodewig
059315d571
missing license header
5 years ago
Stefan Bodewig
3ee678b473
Merge pull request #140 from TheConstructor/resource-list-with-duplicates
#64854 Add preserveduplicates option to ResourceList
5 years ago
Matthias Vill
3ec610046f
#64855 Add filterbeforeconcat option to Concat
5 years ago
Matthias Vill
11ba5bbc2d
#64854 Add preserveduplicates option to ResourceList
5 years ago
Jaikiran Pai
41c51907a4
[junitlauncher] - Introduce the ability to let listener/result formatter implementations decide whether to use legacy or new style display names for test identifiers
5 years ago