This is a first cut of the generalization of <available> and
<uptodate> that is on the list for Ant2. This task supports a single
condition and sets a property if it holds true - conditions can be
containers for other conditions in turn, giving it the opportunity to
support boolean logic.
Built in conditions as of now:
* <available> and <uptodate> (slightly modified the tasks to allow them to
be used as conditions)
* containers <and>, <or> and <not>
* New conditions <equals> (compares to Strings) and <os> which should
give easier access to os.name.
More extensive documentation to follow. Take a look at Ant's build
file, it uses the task to detect whether javamail is available now.
I had to perform some ugly tricks to make sure that project gets
passed to every object that will need it - this will be very different
in the future I hope.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269456 13f79535-47bb-0310-9956-ffa450edef68
It should work independant of the size of the file as well.
Additionally it can treat tabs inside character constants in source
files differently.
Documentation will follow - also it will now update the timestamp of
files, even if the file doesn't change. This will be fixed before the
final release but shouldn't stop us from starting the beta cycle.
PR: 1053
Submitted by: Peter B. West <pbwest@powerup.com.au>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269449 13f79535-47bb-0310-9956-ffa450edef68
fixed a bug (?) in the size method that was not returning the correct size.
added some javadocs....still a lot of work :-(
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269444 13f79535-47bb-0310-9956-ffa450edef68
In ant1.3 you can specify the prefix ( for war, zip, etc ), that doesn't seem
to work anymore ( since <fileset> will create a simple filest, without the
prefix attribute ).
If we create a ZipFileSet instead of FileSet everything works again.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269436 13f79535-47bb-0310-9956-ffa450edef68
use of Ant properties in the manifest. The inline manifest will be
merged with any external file manifests. Example usage
<jar jarfile="taskjar2.jar" basedir="." manifest="manifest.mf">
<include name="src/**/*"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
</manifest>
</jar>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269431 13f79535-47bb-0310-9956-ffa450edef68
addConfiguredXXX will be called for nested elements named XXX
but will be called only once the XXX object has been configured
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269430 13f79535-47bb-0310-9956-ffa450edef68
As its name suggests, it will generate the framed report only.
It can be used either w/ xalan 2.x or xalan 1.2.2 though the later requires bsf.jar in the classpath.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269426 13f79535-47bb-0310-9956-ffa450edef68
thus allowing for more than one file of each type.
Submitted by: Mark Womack <mwomack@bevocal.com>
Add pointer to "Directory Based Tasks" in the documentation of
patternsets where patterns are actually defined.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269419 13f79535-47bb-0310-9956-ffa450edef68
Manifest entries longer than 72 bytes are wrapped according to the spec
Illegal manifest files now cause errors
Standard fields are provided by default and merged in
Manifest set by attribute and any added in META-INF/Manifest.mf are merged
PR: 1193, 2295
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269404 13f79535-47bb-0310-9956-ffa450edef68
<ftp>
ignoreNoncrtiticalErrors makes the task ignore all error messages when
creating a directory (some servers return strange codes if the
directory in question already exists).
skipFailedTransfers warns about failed file transfers but keeps going
on - transfering everything that works.
Submitted by: Steve Loughran <steve_l@iseran.com>
Add a "mkdir" action to <ftp>, make <ftp> take a missing remote file a
"the file is not uptodate" when sending files.
Submitted by: Larry V. Streepy, Jr. <streepy@healthlanguage.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269403 13f79535-47bb-0310-9956-ffa450edef68
Actually test6 of taskdef.xml failed as well, I just didnd't run it
after my last changes as it is not part of the testsuite - argh.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269402 13f79535-47bb-0310-9956-ffa450edef68
Submitted by: Beno�t Moussaud <benoit.moussaud@criltelecom.com>
Note that I don't use Continuus, so this patch has not been tested for
functionality (it compiles and looks OK, that's all I can check).
Note 2: I'm not sure whether my assumption
<cccheckin>=CCMCheckin
<ccmcheckintask>=ccm.CCMCheckinDefault
is correct.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269399 13f79535-47bb-0310-9956-ffa450edef68
attribute to <vssget>.
Submitted by: Jon Skeet <jon.skeet@peramon.com>
Note that I don't use VSS, so this patch has not been tested for
functionality (it compiles and looks OK, that's all I can check).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269398 13f79535-47bb-0310-9956-ffa450edef68
Submitted by: Steve Loughran <steve_l@iseran.com>
I've modified Steve's original submission to ensure quiet and
failonerror don't get set to true at the same time - also fixed the
logging a little as messages about failures to delete a file would go
to verbose logging or swallowed inconsistently in quiet mode.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269397 13f79535-47bb-0310-9956-ffa450edef68