Conor MacNeill
5d4f445f37
Rename some enums ...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275058 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
a37c2ec1dd
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275056 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
d18ad0d73d
Don't include ext dir for microsoft jvc when java runtime is excluded.
PR: 18055
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275049 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
067838cf39
Lets try this as a fix: A new option to turn standardlib on
or off that overrides the defaultreferences switch
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275046 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
1cab901b51
Removed unused variable
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275045 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
bd69a79182
2003 and missing license
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275041 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
6e219fff93
Fix extraction of long file names in Tar
PR: 15230
Submitted by: J. David Beutel
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275040 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
b2f050d8bc
oops
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275039 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
130d4ee759
Change the check for the external resolver catalog impl to
ensure it can be loaded by the resolver classes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275038 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
24f9da26b5
Issue a warning message indicating that selectors within filesets
are not supported in the ftp task when the fileset is remote
(all actions except put)
PR: 18280
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275037 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
63382d9cbf
Fix the ftp task, its documentation and testcases to maintain backward
compatibility.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275035 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
5aa4257771
Remove trailing delimiter from addReferenceFileset
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275032 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
84d3b32703
removed output on System.out, sorry
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275029 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
e9d8b2247f
Make the FTP.FTPDirectoryScanner behave like the DirectoryScanner
in terms of following symbolic links which are directories.
This will make a change of behavior in comparison with ant 1.5.3
where the behavior of the ftp task was to never follow symbolic links.
Also select symbolic links which are files
PR: 14063
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275028 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
d98034a54c
Make the FTP.FTPDirectoryScanner class also register the root of a fileset
when the root matches include exclude patterns.
This is the behavior of the DirectoryScanner for normal filesets.
This change should only possibly impact the RMDIR modus of the ftp task
when the root directory is included.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275026 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
8975a12087
Add a keepcompression attribute to control the compression of entries
that come from existing archives.
PR: 16084
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275025 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
5d847c583e
Add if/unless attributes to <param/> element of <style/> task
PR: 22044
Obtained from: Jens
Submitted by: Peter Reilly & Jan Mat��rne
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275023 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
07cf1f95cc
ant -Debug would cause a NullPointerException
PR: 22065
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275022 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
c74c1765b1
Remove unneeded setting of properties in reinit()
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275017 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
f41c7c1934
scan the fileset after having called setupDirectoryScanner
PR: 22080
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275013 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
2a2141bcb6
Restore System.in, PR: 22066
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275012 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
d13027731c
Only calculate the CRC of STORED entries in <zip> if absolutely necessary.
PR: 21899
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275010 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
dacde0154f
Revert final on System classpath
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275009 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
39a371ce20
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275006 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
Peter Reilly
94a192bb79
Fix location when error occurs in running antlib
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275004 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
Steve Loughran
45cfe2ada1
add the ability to set the executable used in .net tasks. Why do this
(a) so you can refer to versions off the path (useful for multiple versions)
(b) so you can use other implementations than the windows one.
Specifically, Mono Csharp compiler, msc, apparently uses the same syntax as csc if desired. We will have to test this... I suppose we could test Rotor too, but I cant be bothered
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275000 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
e4e82cee37
I cant believe we never noticed this typo before
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274999 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
eebb110dc8
fix a couple of IDE highighted jdoc typos
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274997 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
dace404953
Improve logging and exception behavior of Perforce tasks
PR: 18154
Submitted by: Matt Bishop (Matt at thebishops dot org)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274995 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
Stefan Bodewig
39e82431e7
Keep permissions of directories as well when updating a zip archive.
PR: 21308
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274991 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
15cf412481
Allow several space separated arguments in Perforce globalopts
PR: 14395
Submitted by: Matt Bishop (matt at thebishops dot org)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274987 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
5dc5a2c333
grammar ... sorry :-)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274986 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
4d60eb3197
Similarly to what happens with the delete task, there seem to be race conditions which prevent successful directory creation on Windows.
This change allows a second try.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274985 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
8b8cea1e30
the method isMorePowerfulThanExcludes was returning false on org/apache/tools/ant/taskdefs
in the run-tests target of our buildfile because of the exclude pattern :
<exclude name="${ant.package}/taskdefs/TaskdefTest*Task.java"/>
:-(
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274984 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
adf6160f99
throw an exception if <exec/> is used with an attribute
which is incompatible with spawn and spawn=true.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274982 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
92245fefff
Some ftp servers have binary as default, so when binary is false
it is good to set explicitly the ascii mode for the transfer.
Problem reported by Michael Nebus (Michael dot Nebus at Pfizer dot com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274980 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
6ff7df9601
do not scan needlessly excluded directories
PR: 21941
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274979 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
69d9682d5d
Some tasks rely on the DFS ordering getIncludedXYZ used to provide
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274976 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
c5aff48932
copyright-date
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274975 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
01c75268c3
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274974 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
f8ec337892
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274972 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
d70354a617
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274971 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
Antoine Levy-Lambert
35845f7053
This change allows exec to start a process which will run independently of ant.
I have used the patch prepared by Charles Hudak and Peter Nimmervoll, but made it even
simpler, in the sense that I do not connect at all the new process to stream handlers
and the ant logging system, disabling input, output, error, and return exec attributes
in the case of spawn.
Strangely, it works well on Windows if one puts a sleep of one second after having spawned
the process. Why ? No idea.
PR: 5907
Submitted by: Charles Hudak ( CHudak at arrowheadgrp dot com)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274963 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
640b7f41f0
Prevent \r\n from being changed to \r\r\n under Windows
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274962 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
efb4de4096
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274960 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
1f9f28daf8
PR: 21520
throw an exception if input file does not exist
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274958 13f79535-47bb-0310-9956-ffa450edef68
22 years ago