Stefan Bodewig
db48fbb829
Various checkstyle violations
Submitted by: Larry Shatzer
And some
(untabify (point-min) (point-max))
on some files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277063 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
689641b018
accessors to command line are occasionally useful when working with java
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276932 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
c31f5ae257
Somewhat reworked patch for bug# 31106, submitted by Isao Yanagimachi.
Took the opportunity to clean up the tasks slightly, such as removing duplication in various methods.
We need a unit test for long command line java, and many parameter java, just to see what breaks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276922 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
c00d5a6977
Implement jar index for referenced jars, PR: 14255
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276389 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
819d9a02f1
The small things you find when reviewing code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276387 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
40cf93ab71
Minor formatting changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276347 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
2d25bc6890
I do not like the current process of marking incompatibility, as it is a dog to use from programmatic task access. We should validate immediatly before execution instead. This commit is not a fix, merely a partial workaround.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276261 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Matthew Jason Benson
b0507d4451
Add <redirector>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276257 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
0e58e71738
White-space changes only
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276234 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
54b827ff4f
Don't swallow the stack trace if a Java program throws an exception.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276233 13f79535-47bb-0310-9956-ffa450edef68
22 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
Steve Loughran
8cbb49d6a0
nothing wrong with setFailOnError(false) and spawn.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276162 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
Stefan Bodewig
ba56fe06af
fix wrong javadoc comment.
PR: 25939
Submitted by: Jesse Glick <jglick at netbeans dot org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275984 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
46a9d8a1c5
<java> ignored the append attribute.
PR: 26137
Submitted by: Emmanuel Rayzal <emmanuel at ukibi dot com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275982 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
8b1e44f10b
Add a cloneVm attribute to CommandlineJava and <java> and <junit>.
If set, the forked VM will be configured to match the currently
running VM closely. This involves:
* copying of all system properties.
* copying of the bootclasspath - only if no bootclasspath has been
specified explicitly or build.sysclasspath has been set to "only".
This is accompanied by a magic system property build.clonevm that can
be used to force the attribute to be set.
It has to be a system property as CommandlineJava doesn't know about
project instances.
PR: 25327
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275775 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
7d5a81af57
With these changes assertions now work, at least as far as the java tests are concerned...not tested junit
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275293 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
962a59d64f
Style
Submitted by: Larry Shatzer (larry dot shatzer at spirent dot com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275272 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
36accb02b3
Treat timeout like a failed execution, fix comments on Execute#getExitCode
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275258 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
08084b4e5c
Next round of typo fixes by Larry Shatzer
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275242 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
6330dbe30f
Fix some incorrect comments
PR: 23042
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275220 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
543e74c784
Use again Permissions to catch non zero exit statuses when using the Java task
with FailOnError = "true"
PR: 22533
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275162 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
1df7fd17ca
Rollback temporarily the setting of new permissions when failonerror="true"
and fork="false"
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275155 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
1de5995d90
Set default permissions appropriate to fail the builds when failonerror is
true (and fork false) and no other permissions were set.
Suggestion of Steve Loughran.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275153 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
e67a40fbb3
Revert part of the commit that made tasks use Execute#isFailure.
On OpenVMS the Java VM will exit with a return code of 0 on success,
even though this is going to signal a failure for the OS. All tasks
that spawn new VMs have now been reverted to explicitly check for
retCode != 0 instead of Execite.isFailure(retCode).
We could as well introduce Execute#isJavaFailure or something like
this in case future VM's on OpenVMS will start to do the right thing.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275005 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
2c905033e5
I always worry when I change something fundamental, and the amount of refactoring here to get assertions in 'cleanly' means the change here is larger than one would expect. The key problem is that the existing code created presized arrays, but sizing these arrays meant resolving every single option and counting the #of commands -effectively creating the command line twice. Once to size it, once to save the results. this was silly and unwieldy, though it made sense given how this command grew and grew.
Most of the diff is changing CommandLine and CommmandLineJava to append their info to a supplied ListIterator, so that we dont need to create string arrays and keep on appending them. All the old stuff is still there, but used less -certainly not used at all by CommandLineJava.
No assertion tests yet...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275002 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
3b3a4cd29f
Add spawn attribute to java task as well
PR: 5907
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274992 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
7e82bff60d
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274969 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
d47dfcbc98
Use Execute.isFailure
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274951 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
410129735b
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274851 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
4ac04f30c2
Ensure all generated output gets through the output system to the
generating task
PR: 21636
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274840 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
e580392c2d
More cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274776 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
b5bd5af059
Add a nested <bootclasspath> to <java>.
Submitted by: W. Craig Trader <craig dot trader at lmco dot com>
Do the same for <junit>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274621 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
08c47d7e62
Add nested <propertyset>s to <java> and <junit>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274562 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Antoine Levy-Lambert
295ea16dac
allow to set a property with the exit code of java bugrep 19099 submitted by Donal Quinlan (donal at savvion dot com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274500 13f79535-47bb-0310-9956-ffa450edef68
23 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
Conor MacNeill
47856f86d8
Minor edits - i.e. make it compile
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274094 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
Conor MacNeill
4a9153f9f2
Input handling framework
Non-forked Java tasks can now have their input redirected.
Note that it would be possible to add a noninteractive flag to
Ant preventing any input from System.in in any java classes
druing a build. Would prevent locking up waiting for input
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274021 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
984ad3c021
Refactor output handling from Exec into a new class Redirector and
use this in Java task to get access to features such as
separate error stream, redirected input, etc.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274020 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
6ceeb5d3da
Much better solution to unterminated output - better backward compat
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273938 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
987c943d07
Flush output of Java task when finished.
Propagate indication of whether line is terminated or not
through to project and tasks
PR: 16555
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273930 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
Peter Donald
f9121ee81e
Encapsulate some fields in Task and add some deprecation warnings to coresponding fields.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273157 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
28b68ab7d0
Encapsulate usage of project object rather than allowing objects 7 subclasses acessing a protected variable of their super super super .... class.
Deprecated the variable so that that anyone directly referencing variable will get warning and suggestion to use the accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273155 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
da5a13f8e4
Merge differences between the ANT_15_FINAL branch and the trunk into the trunk.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273081 13f79535-47bb-0310-9956-ffa450edef68
24 years ago