Stefan Bodewig
01ce0c3b1e
Prepare for RC1 of version 1.10.11 of Ant
4 years ago
Stefan Bodewig
cc9d93f49f
Merge branch '1.9.x'
4 years ago
Stefan Bodewig
26dae06262
one more place to bump AntUnit dependency
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
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
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
Stefan Bodewig
6d5f1bdc6b
add discardOutput and discardError to redirector, apply, exec, java
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
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
twogee
9469656e76
Some tests were lost in migration to JUnit 4
5 years ago
Stefan Bodewig
6dee370878
make http condition follow redirects from http to https
Bugzilla Report 65105
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
5 years ago
Jaikiran Pai
635ccfb5e4
bz-64836 junitlauncher - Print a more informative and instant summary for tests
5 years ago
Jaikiran Pai
7efd6d0c4f
bz-64912, bz-64790 Fix regression in javac task when using arguments file
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
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
Jaikiran Pai
ca5821430b
Prevent CI job failures on Java 15+ for ScriptDefTest
5 years ago
Jaikiran Pai
458fba12de
Skip scriptdef-test.xml antunit tests for JDK >=15 due to unavailability of script engine for "javascript" language in JRE
5 years ago
Jaikiran Pai
079c134fd5
Introduce an "atmost" attribute for the javaversion condition
5 years ago
Jaikiran Pai
a2b9f4c33e
bz-64742 Fix SCP task (with sftp=true) to correctly parse the remote directory when fetching from root directory
5 years ago
Stefan Bodewig
81aee9ec90
Merge branch '1.9.x'
5 years ago
Stefan Bodewig
4ae9d1cd60
bump JUnit to fix https://github.com/junit-team/junit4/security/advisories/GHSA-269g-pwp5-87pp
5 years ago
Stefan Bodewig
6cd24d6163
Tagging version 1.10.9 of Ant
-----BEGIN PGP SIGNATURE-----
iHEEABECADEWIQTOgHWiUVR77iSbwVGiEVrhX2uLcgUCX3SwdBMcYm9kZXdpZ0Bh
cGFjaGUub3JnAAoJEKIRWuFfa4tyL0kAoI7hnaufcFKbzp16v8JAzflOgwk9AKCM
7KzK3KzWBY1l/CLlcnjyf9Wh/g==
=X7Gy
-----END PGP SIGNATURE-----
Merge tag 'rel/1.10.9'
Tagging version 1.10.9 of Ant
# gpg: Signatur vom Mi 30 Sep 2020 18:21:08 CEST
# gpg: mittels DSA-Schlüssel CE8075A251547BEE249BC151A2115AE15F6B8B72
# gpg: Aussteller "bodewig@apache.org"
# gpg: Korrekte Signatur von "Stefan Bodewig <bodewig@apache.org>" [vollständig]
# gpg: alias "Stefan Bodewig <stefan.bodewig@freenet.de>" [vollständig]
# gpg: alias "Stefan Bodewig <stefan@samaflost.de>" [vollständig]
# Haupt-Fingerabdruck = CE80 75A2 5154 7BEE 249B C151 A211 5AE1 5F6B 8B72
5 years ago
Stefan Bodewig
15686e56dd
Prepare for RC1 of version 1.10.9 of Ant
5 years ago
Stefan Bodewig
4706f77779
exclude Graal.js Nashorn compat tests from POM builds
5 years ago
Stefan Bodewig
a837084980
enable Nashorn compatibility when running GraalVM JS
and add a magic property to disable it again
5 years ago
Maarten Coene
7e6cc33e04
Add the possibility to specify a custom filename mapper when creating an INDEX.LIST ( #134 )
5 years ago
Stefan Bodewig
6c3d7de934
no longer complain when not finding tools.jar
People using the JRE won't have it and it has been removed from
OpenJDK with Java 9, it seems.
5 years ago
Stefan Bodewig
f891c4bd8b
config may return null-hostname for wildcard configs
5 years ago
Stefan Bodewig
569e428850
replace our ReaderInputStream with the one of Commons IO
https://bz.apache.org/bugzilla/show_bug.cgi?id=40455
Suggested by Vladimir Sitnikov
5 years ago
Stefan Bodewig
51e5624af4
try making test independent of timezone
5 years ago
Stefan Bodewig
aab46b586e
Merge pull request #135 from apache/property-enumerator
Property enumerator
5 years ago
Stefan Bodewig
87ac51d3c2
fallback to a separate owner-only tempdir if possible
5 years ago
Stefan Bodewig
08a6e42fb4
log an error message if no JavaScript engine can be found in Java 15+
5 years ago