Stephane Bailliez
437a1cfc7a
Remove double check for same condition.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270642 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
ca1005cfdc
Code layout only.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270641 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
624fb42975
Code layout only.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270640 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
a4d8a1d817
Code layout
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270639 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
3fa5d5e35c
Layout code
Enforce naming guidelines
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270638 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
e3b6d1fe76
Fix bad coding style.
then/else parts of if statement and loop body must always been enclosed
in a block statement.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270637 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
32b8cce516
Fix bad coding style.
then/else parts of if statement and loop body must always been enclosed
in a block statement.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270636 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
69f90db91b
Fix weird insertion.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270635 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
f7940f8b48
Fallback to 1.2. Come back later for this one.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270634 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
dd4f44627a
Fallback. Come back later for this one.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270633 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
6e55790037
Fix bug...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270632 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
130315b576
Fix bad coding style.
then/else parts of if statement and loop body must always been enclosed
in a block statement.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270631 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
7a4e9ca227
Fix bad coding style.
then/else parts of if statement and loop body must always been enclosed
in a block statement.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270630 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
9f2aca50e3
Fix bad coding style.
then/else parts of if statement and loop body must always been enclosed
in a block statement.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270629 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
2ddcd97730
Fallback to protected attributes to prevent breakage.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270628 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
4bcc447285
Help people who's mail server doesn't speak SMTP correctly.
PR: 5273
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270624 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
1e01d1142c
Move responsibility for cleanup to the test themselves.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270623 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
41bb266266
Add Primary Key capability to iPlanet deployment tool
Submitted by: Paul Spillman <Paul.Spillman@Sun.COM>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270622 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
aa27429577
Improve the <equals> condition by adding trim and casesensitive attributes.
Inspired by: Frank Bechmann <frank.bechmann@dcw-software.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270621 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
433f71348f
- Apply coding guidelines. No protected attribute anymore.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270620 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a8d83a4528
Don't lie about the CLASSPATH being used - build.sysclasspath changes
everything.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270617 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
cf745efc64
Improve logging when <available> is being used as a condition.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270616 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
5d79a4f5eb
Addition of destFile(File) attr to the zip/war/ear/jar tasks, fixup of docs, replacement of deprecation methods and appropriate changes to the tests.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270605 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
78602edfb7
Additional debug messages to make it easier to diagnose why a task
can't be instantiated.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270603 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
3d59359997
Remove CVS conflicts
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270602 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
36acaa7bec
Add an IndexOf method that returns the index of
the selected attribute in the enumeration.
The selected index is kept so that class extending
it can easily do a 1-1 mapping with values without
looping over the array again.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270597 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
434ef8d608
Fix for Bug 5637
NPE in JUnit XMLJunitResultFormatter if setUp() in TestSetup throws AssertionFailedError
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270512 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
f87b5ed775
- Add "label" attribute on checkout per request from Greg Frank - checks out a specific view label.
- Add "recursive" attribute as in the deprecated <starteam> task.
- Add "forced" attribute as in the deprecated <starteam> task and avoid checking StarTeam statuses when true.
- Make sure all exceptions are caught on execution and rethrown as build exceptions.
- Fixed a bug (using the "forced" attribute) which were causing files to be incorrectly not checked out when a rootLocalFolder was specified because the StarTeam file statuses were being checked in relation to the default directory.
- Fixed a bug where files were deleted immediately after being checked out when a rootLocalFolder was specified because the task erroneously thought the file was not under starteam control.
- Code layout to fix weird indent issues.
PR: 5583
Submitted by: stevec@ignitesports.com (Steve Cohen)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270490 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
6e6abf78f4
Removing DestFIle, DestDir, SrcFile, SrcDir, ValidatedFileAttribute and PreferredAttribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270489 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
9a7f0056b4
Removed references to ValidatedFileAttribute and PreferredAttribute.
Reverted IntrospectionHelper to previous version.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270488 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
1620dd543b
Usage of SrcFile,SrcDir,DestFile,DestDir abandoned. Rolling back to
previous state.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270487 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
90164753d1
added package mapper as an official mapper type
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270486 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
808bdccb90
made Javadoc provided example more realistic
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270435 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
215ff90fee
oops, forgot the license on first pass
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270423 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
93092c4c72
A new mapper to allow checking <uptodate> from test cases to their XML formatter results.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270418 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
f82ca6ff2d
Added additional methods to deal with strings.
This is mostly to avoid the use of regexp for
simple tasks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270393 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
f1b8684907
Add an option to append output, I set it to false
to preserve behavior but I think it would be better
to true.
PR: 5559
Reported by: stefanf@decode.is (Stefan Freyr Stefansson)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270392 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
08ddc22648
Messages no longer prefix DestDir, DestFile, SrcFile, SrcDir to prevent
providing possibly confusing error messages to user.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270391 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
781137c4d8
setFile(File) deprecated and replaced with setFile(DestFile).
DestFile is used in this case eventhough SrcFile would make more sense
because currently, <property> does not throw an exception if the file
is not found - it just logs a message. If SrcFile were used, it would have
thrown an exception if the file was not found thereby being backwards
incompatible.
<property> was not checking to see if the supplied file was a directory.
It used to throw a java.io.FileNotFoundException previously. Now it
prints a message saying that it is not a file.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270390 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
afa65467f7
1. setSrc(File) deprecated and replaced with setSrc(SrcFile)
2. setDest(File) deprecated and replaced with setDest(DestDir)
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270388 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
18897c517a
Delegate validation to DestDir. This has a nice effect on MkDir as at least
one 'unknown reason' (Path containing an existing non-directory element) will
be known by using DestDir.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270386 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
f1b5585024
If DestFile or DestDir does not exist, ensure that the path representing the
directory or the file is valid, by checking if the path contains any existing
non-directory element, thereby making sure the file/dir is constructible.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270385 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
4ae3c9e3c4
added empty and file constructors, the latter validates as you go. Also a little IsUpToDate() test for destdir which will should simplify dependency checking.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270384 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
a244b2f855
using srcFile datatype
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270383 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
e29a10c6a8
fixing javadoc tags
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270382 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
4c06c2bf86
setFile(File) has been replaced with setFile(SrcFile). No backwards
compatibilty issues here as task was introduced Post 1.4.1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270379 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
0320691179
setSrc(File) has been replaced with setSrc(SrcFile). No backwards
compatibilty issues here as setSrc(File) was introduced Post 1.4.1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270378 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
f4df13a3aa
stops the encoding test failing. We now test that the encoding param is supported, but there is nothing to test that the encoding actually works.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270377 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
2058109551
IntrospectionHelper has been modified such that overridden setter methods
that take in 'PreferredAttribute's as argument gain higher precedence.
New attribute types - SrcDir, SrcFile, DestDir and DestFile are introduced. Each of these types is a PreferredAttribute.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270376 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
80962473e9
cvs didnt like the latin-1 stuff
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270375 13f79535-47bb-0310-9956-ffa450edef68
24 years ago