Stefan Bodewig
c3e12bfadd
fix versions
4 years ago
Stefan Bodewig
44582f1c79
Merge pull request #161 from twogee/jakarta-mail
Use Jakarta EE
4 years ago
twogee
cd1bb841b1
Use Jakarta EE
4 years ago
Arturo Bernal
6718c526a8
Use Bulk operation instead of iteration.
4 years ago
Stefan Bodewig
433819ffb6
Merge pull request #156 from arturobernalg/feature/java_8
Replace Lambda with method reference.
4 years ago
Stefan Bodewig
48c6dc53f6
Merge pull request #155 from arturobernalg/feature/redundant_if
Simplify single assignment and avoid redundant if conditions.
4 years ago
Stefan Bodewig
87ac5d5ddb
Merge pull request #157 from arturobernalg/feature/performance
Performance:
4 years ago
Arturo Bernal
0ad2609358
Simplify single assignment and avoid redundant if conditions.
4 years ago
Arturo Bernal
8b4d346c75
Performance:
* Use arrayCopy
* Avoid redundant String.format
* Exit the loop early
4 years ago
Jaikiran Pai
0089151938
bz-65424 Prevent potential deadlocks in IntrospectionHelper
4 years ago
Stefan Bodewig
76c97ceb3b
Merge pull request #159 from arturobernalg/feature/array_pre_size
Use an empty array in favor of pre-sized array.
4 years ago
Stefan Bodewig
28b9927c3c
Merge pull request #154 from arturobernalg/feature/string_builder
Change StringBuffer in favor of StringBuilder.
4 years ago
Stefan Bodewig
566fa8685e
Merge pull request #153 from arturobernalg/feature/import
Delete unused import.
4 years ago
Stefan Bodewig
158043f4b3
Merge pull request #139 from twogee/useless-boxing
No boxing
4 years ago
Stefan Bodewig
16be5c00c0
record tar symlink change of #142
4 years ago
Stefan Bodewig
2d0b468ee8
Merge branch 'feature/tarfileset-preserve-symlinks' of https://github.com/mstrap/ant into mstrap-feature/tarfileset-preserve-symlinks
4 years ago
Jaikiran Pai
fa91bff92e
Check for warnings in err stream too, to make javadoc task work on Java 17+
Discussed in dev list https://mail-archives.apache.org/mod_mbox/ant-dev/202106.mbox/%3c2e2ef67a-7d96-adfc-f050-efaccab7e6c2@apache.org%3e
4 years ago
Stefan Bodewig
9943641b56
Merge branch '1.9.x'
4 years ago
Stefan Bodewig
e5e0019a02
ensure build.compiler works with full classnames for extjavac/modern
https://bz.apache.org/bugzilla/show_bug.cgi?id=65539
4 years ago
Arturo Bernal
fbb42627ad
Use an empty array in favor of pre-sized array.
4 years ago
Arturo Bernal
374c7ec72d
Replace Lambda with method reference.
4 years ago
Arturo Bernal
8a402eea3a
Change StringBuffer in favor of StringBuilder.
4 years ago
Arturo Bernal
96823b02b6
Delete unused import.
4 years ago
Stefan Bodewig
8593dbc3d1
Merge branch '1.9.x'
4 years ago
Stefan Bodewig
033f8dc250
BZ 65497 - improve documentation around file time granularity
4 years ago
Stefan Bodewig
4da6c49b04
BZ 65499 avoid getCanonicalFile in many cases
4 years ago
Jaikiran Pai
83b157b47f
bz-65489 http condition - don't follow redirects when followRedirects is set to false
4 years ago
Basil Crow
91515560ef
findResources(String, boolean) can unnecessarily search the parent
4 years ago
twogee
e9bd11fa78
Unnecessary boxing/conversion
5 years ago
Basil Crow
ef85f491ee
Implement ClassLoader#findResource(String)
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
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
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
Marc Strapetz
2e2ed8ad31
Tar: preserve symlinks from <tarfileset> sources
5 years ago