Stefan Bodewig
55dcf2dee8
New task <condition>.
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
24 years ago
Conor MacNeill
70b420621b
Pesky windows locking
Can't rename a file that is open or where the destination exists
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269455 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
ac1664c3fd
Propagate errorproperty and failureproperty from BatchTest to all of
its elements.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269454 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
b162d6d5c4
Add fork attribute to <javac>.
PR: 383
Submitted by: Brian Deitte <bdeitte@macromedia.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269453 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
36f7c9bb7b
Some minor JDK 1.1 compatibility problems. MMetricsStreamHandler.java
still won't compile.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269452 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
1a93e607f2
Add a Log4j listener
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269451 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Costin Manolache
6ff47bd2ae
Rollback previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269450 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a794b2b204
<fixcrlf> now deals with CR only line-ends and arbitrary tab lengths.
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
24 years ago
Stephane Bailliez
af7fb0127a
Fixed a possible systemid problem reported by glennmaughan@optushome.com.au (Glenn Maughan)
Moved the timing garbage generated as well to a global timing instead...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269448 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
1228b336de
doc update to reflect the addition of the -jar option
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269447 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
cc569b21fc
Mini testcase for the Java task....not fantastic but better than nothing..
It mainly test for the -jar option
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269446 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
458b181fc1
Added the support to the -jar option in the command line per suggestion of <aspyker@nc.rr.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269445 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
886b552945
Added the support to the -jar option in the command line per suggestion of <aspyker@nc.rr.com>
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
24 years ago
Sam Ruby
198880a644
Avoid NPE's - seen when running JUnit on Win2K
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269443 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
5f35fa88d3
Two steps forward, one step back - make it build under JDK 1.1
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269442 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
8543e47b28
Add jvmVersion attribute so that maxmeory is formatted correctly for the
target JVM
PR: 2913
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269441 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
0e37f4714c
Handle innser classes in the default package
PR: 2934
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269440 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
046a49448b
Actually set the exception on task level messages
PR: 2942
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269439 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
6f0e2f06ac
BuildExceptions were not printing their own stack trace. They do this now
but it does make the output in the event of a failure a bit noisier
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269438 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
f97f71d5d1
Make if and unless attributes of <target> dynamically evaluated
PR: 2955
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269437 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Costin Manolache
6e33aa3d8c
Small fix in Zip.java.
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
24 years ago
Costin Manolache
dce8636fe3
Small fix in manifest, added Class-Path attribute, now it should
work with java -jar ant.jar
Let me know if there's any problem.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269435 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f9a500cd6b
Support for kopi and gcc implementations of <javac>.
PR: 2476
Submitted by: Takashi Okamoto <tora@debian.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269434 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
261ac57e67
Expand properties in <sql>.
PR: 1447
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269433 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
693d7c8906
Add nested <fileset> to <sql>
Submitted by: Tim Stephenson <tim.stephenson@sybase.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269432 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
cc911f5992
Allow manifests of Jar files to be specified in-line. This allows the
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
24 years ago
Conor MacNeill
f2bc3fe7c8
New Introspection capability. Methods which have the signature
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
24 years ago
Conor MacNeill
e2ae69c528
Documentation for new Locale option in <tstamp>
Submitted by: Michal Pise <michal.pise@st.ms.mff.cuni.cz>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269429 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
f32956be21
declare the tasks maudit and mmetrics to Metamata tasks.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269428 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
2f374849c6
add an exclude to remove MAudit task from the compile since it requires Oromatcher
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269427 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
eacd7ea193
The stylesheet that should replace all the one in the source code.
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
24 years ago
Stephane Bailliez
51db1b515b
stylesheets that can be used to generate some framed report for Metamata tasks MMetrics and MAudit
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269425 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
99353c3498
documentation for metamata tasks MMetrics and MAudit
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269424 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
08e296e85d
New Tasks for Metamata Audit and Metamata Metrics.
Since Metamata was acquired by Webgain, Quality Analyzer 2.0 is also compatible with them.
I'm using them for a while and they were requested by Garrick Olson, Garrick.Olson@Aceva.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269423 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f60ca231a1
Don't delete generated files if sourcebase and basedir happen to be
the same.
PR: 2943
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269422 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a7f39c75ec
didn't mean to remove the toString method with my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269421 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
8f282967e0
Clean up documentation for <patternset> to better explain the nested elements.
PR: 2158
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269420 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
c2e92b3185
Add <includesfile>/<excludesfile> elements to <patternset> and friends,
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
24 years ago
Stephane Bailliez
55ed11a225
Fixed a typing mistake to exclude Sitraka's tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269418 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
25116b2c5b
Resolve properties within properties files by first consulting the project
properties first.
PR: 2915
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269417 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
a34bbd1562
the optional xsl to be used with JProbe Coverage tasks. It generates a framed report a la JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269416 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
74305aa0a1
added definition for the 3 JProbe Coverage tasks: jpcoverage, jpcovreport, jpcovmerge
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269415 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
d5a2eaa266
Documentation for JProbe Coverage tasks
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269414 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
523a67f3ba
JProbe Coverage tasks: covmerge, covreport, coverage
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269413 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
6b8588300d
Sitraka JProbe Coverage tasks: covmerge, covreport, coverage
As it needs a regexp engine, the build.xml is modified to build it only if OroMatcher exists in the classpath.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269412 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
25a3d75797
Update to Crimson 1.1.1 which is a bugfix release.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269411 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
561a6d3abf
Add some better error management for exec errors. By wrapping the real
exception in a build exception, hopefully we'll get a stack trace
PR: 2542
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269410 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
6ed54839c9
Produce a summary, on request, of the actions taken by the replace
task
PR: 956
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269409 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
3088910997
Add Locale support to TStamp task.
Submitted by: Michal Pise <michal.pise@st.ms.mff.cuni.cz>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269408 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
590936af26
Manifest is no longer in a fileset and so needs an uptodate check of its own
Also now log warnings about malformed manifests
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269407 13f79535-47bb-0310-9956-ffa450edef68
24 years ago