Peter Reilly
f58d3967f0
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@470130 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Steve Loughran
7c58ba3edd
Having learned about how the java memory model really works, I have had a quick code review of the threading here.
1. stuff that is shared read is always marked volatile, to avoid being compiled out.
2. added more synchronization when appropriate.
I make no claims as to thread safety here, as I was never that good at formal proofs of correctness.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@465013 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Stefan Bodewig
2e897819a8
copy2license.pl
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439418 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Matthew Jason Benson
761201eca2
If the class invoked by the <java> task threw a ClassNotFoundException,
this was misinterpreted as the specified class itself not being found.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@418146 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
7eb22e8cdc
indicated when methods/classes became deprecated, as to give us the possibility to remove deprecated methods in the future.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@396012 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
da4edf3f9b
Validate system properties before running a Java command, PR 34725
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278221 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jesse N. Glick
5aeca1e0e3
#32941 : do not try to catch ThreadDeath when <java fork="false"> is halted.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278075 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
429a40d827
stylecheck
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277904 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
650416f089
Looks like the right thing to do:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277756 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
27acd99f49
Javadoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277614 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
bb7647cf3f
Remove temp variable/method call, some blank lines
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277613 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
eca527f22b
Simplify forking of new VMs by providing a fork method in ExecuteJava
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277571 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
b423ccde3b
Some cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276623 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
c885f56836
remove authors from files
PR: 27177
Obtained from: J.M. (Martijn) Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276208 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
278781dcd6
Copyright owner is The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276065 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
66555ca10d
Remove trailing spaces in all java files
in order to make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276017 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
ca1513552f
Switch to Apache Software License 2.0
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276010 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
5366fee095
Head sync
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275749 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
8268a3c4e4
Spelling
Submitted by: Larry Shatzer (Larry dot Shatzer At Spirent Dot Com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275235 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Jan Materne
0c42e047b2
Checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275180 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
8fab9564d5
PR: 22533
Submitted by: J.M. (Martijn) Kruithof (ant at kruithof dot xs4all dot nl)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275149 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
cc8099c252
Fix inconsistent synchronization
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274927 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
3a35c7d914
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274858 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
66b5bf27b7
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274824 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
2450ee6bbf
Remove use of InitializeClass now that we are JDK 1.2+
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274814 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
24436a1c92
Remove email address from sources
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274203 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1dc8a07905
Remove Jakarta Project from license
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274040 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
59ae8f7485
cvs up -dP --pedantic-copyrigt-check
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273875 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
50ab376294
Add support for Package information to the ClassLoader
Rather than using reflection I have created a JDK 1.2+ specific
subclass of the AntClassLoader. This has necessitated replacing
direct construction of the classloader with a factory method in
Project. This factory method will attempt to create the new
class loader dynamically and then fall back to the current version if
the new loader is not available.
Existing users who construct the classloader directly will continue to
work as at Ant 1.5 - i.e. no package information is created. All Ant
code (except classloader) uses the new factory method
PR: 11196
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273874 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
8f413c1208
Remove unused imports, remove glob imports, sort imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273169 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
6bc9693c3c
Ongoing Javadocs
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272495 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
80080d456c
Reduce a small number of long lines
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272443 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d91fdceaa6
<java> may alter value of dir during execute. Cosmetics.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272378 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
Conor MacNeill
45fd3ec75d
Refector the new method into a separate set and get methods
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272270 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
4c560e713a
make sure output of the spawned thread is attributed to the current
<java> task when using the timeout feature.
If you don't like the name of the method, change it 8-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272245 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
614713629b
Make not so strong, we don't really know whether we've managed to end
the spawned thread. Make the thread a daemon thread.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272238 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
Stefan Bodewig
f3577cdb5c
License police on task definitions:
(1) Make sure there is a Copyright notice on all files.
(2) Make sure all years in which a file has been modified are
listed.
(3) Make sure the format is consistent, i.e. separate consecutive
years with a dash, not a comma.
(4) Change some references from Tomcat to Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270658 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
d12e6411cc
Code clean up:
- removed useless/duplicate imports
- added explicit imports rather than *
- changed specifiers order to be conform to JLS.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269827 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
f66cab0ea7
Merge from ANT_145_BRANCH up to Beta 2
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269587 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
74eb73ac39
Add a security manager so that non-forked java programs that call
System.exit() work
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269373 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
059ad35916
This is a major change. :-)
It introduces the concept of a TaskContainer to allow a task to contain
other tasks. This allows Task composition
It introduces a <parallel> task for multithreading support. There is
also a <sequential> task.
It reworks System.out management to handle all task generated output
and route it through the Ant event system. This handles multithreaded
output.
This is a major rework to the patch originally submitted by Thomas. I
have taken a different route for the output management, in particular.
Based on patch by Thomas Christen <chr@active.ch>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269371 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
f1bfa32916
More classloader improvements
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269353 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
b839a3ed0f
Improve the performance of the classloader - The classloader will, however,
now have the jars open.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269352 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
c234e7e183
Set the thread context class loader when running <java> tasks
PR: 1085
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269349 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
0fcac6aa36
Add a new front end fro Ant which will perform many of the functions
of the current ant launcher scripts. Also allows many of the classes
necessary for Ant to be hidden from Java tasks run in VM.
Changes to the classloader to allow the parent loader to be specified.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269347 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
a6c6685f62
Initialize classes which are loaded through a classloader. Note that the
approach here uses newInstance to achieve initialisation for JDK 1.1
compatability. Under JDK 1.2, both initialization and the classloader to
use can be specified to Class.forName();
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269021 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
7435b27b91
Merge 1.3 branch changes into MAIN
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268691 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
6c287080d4
Make licence statements mention Ant in place of Tomcat
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268392 13f79535-47bb-0310-9956-ffa450edef68
25 years ago