Conor MacNeill
c6c232893c
Various coding standard fixes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272418 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
d95bfb6e60
cosmetics on the <javac> family - I didn't really read the code for
the various adapters as reworking part of them is on my TODO list anyway.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272379 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
d42faeefd8
New utility class that deals with the specifics of a Java
installation:
* Moved JVM version detection code from Project to the new class.
* Unified the "find executable" methods and factored them into the new
class.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272069 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a94e3de322
Rename the attribute of <javac>'s <compilerarg> from implementation to
compiler.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272017 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
fc7e3b1fd4
revert <javac>'s fork attribute to a true boolean and add executable
attribute to set the path to the compiler.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272016 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
eb81bd4f4e
Make detection system for java|javac|javadoc fallback to *.exe instead
of * on dos based systems.
PR: 7117
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271929 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Diane Holt
bc47be3b76
Change the failed message to something (hopefully) a bit more clear.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271902 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
7fec7616d1
Changing "ant:task" to "ant.task" to avoid JDK 1.4 javadoc warnings (XDoclet has been modified to handle this separator too).
Updating the majority of the rest of the tasks with the XDoclet tags. The generated defaults.properties is *almost* the same as the current hand maintained one!
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271678 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Diane Holt
dd2124bdb1
Add new 'listfiles' attribute to allow for listing the source files being
handed off to the compiler.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271591 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
10aeeab05b
XDoclet fun!
These are harmless Javadoc comment additions for use with the proposal/xdocs runs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271582 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
466a2a978f
some typos.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271363 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
022ed20a99
Add compiler attribute to <javac> that allows users to override
build.compiler on a task by task basis.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271362 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
271c73b91c
Allow -sourcepath for <javac> to be set explicitly.
PR: 5268
Submitted by: Alex Rosen <arosen@silverstream.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271351 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
d8169cab92
split execute in <javac> to make it easier to extend.
Sugested by: Misha Dmitriev <Mikhail.Dmitriev@eng.sun.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271223 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
c2cab1b69c
- Fix unnecessary cast
- Fix array declarators
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270892 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
33bc8da118
Change the methods that try to locate JDK tools to work on AIX with
IBM's JDK 1.2 as well.
@todo refactor into a single method somewhere
PR: 5541
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270667 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f3577cdb5c
License police on task definitions:
(1) Make sure there is a Copyright notice on all files.
(2) Make sure all years in which a file has been modified are
listed.
(3) Make sure the format is consistent, i.e. separate consecutive
years with a dash, not a comma.
(4) Change some references from Tomcat to Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270658 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
f7def885dd
Added a protected method "recreateSrc" to help task writers who extend
Javac.
PR: 3703
Based on Submission by: bmoriarty@polexis.com
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270090 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
17e5ca8721
Convert tabs to spaces...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270031 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Steve Loughran
5aae1b3e8d
Erik's big javadoc fixup, bugzilla ID #4992
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269989 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Magesh Umasankar
072028843a
New debuglevel attribute for Javac - will be used only when the modern
complier is used.
PR: 4127
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269971 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
a66a2b7f86
Add testcases for latest <javac> changes, fix some problem with some
rare combination of the fork attribute and build.compiler settings.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269879 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
0ba89b453f
Add a way to pass compiler specific command line arguments to <javac>.
PR: 4406
heavily based upon a Submission by: Stephen Anderson <anderson@berbee.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269869 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
30b11d18c9
Make name of the javac executable configurable in fork mode.
PR: 4119
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269868 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
d12e6411cc
Code clean up:
- removed useless/duplicate imports
- added explicit imports rather than *
- changed specifiers order to be conform to JLS.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269827 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
bec2a0777e
Merge of 1.4.1 changes into Main truck for Gump testing
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269745 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
df14132289
Merge in 1.4 src changes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269663 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
f66cab0ea7
Merge from ANT_145_BRANCH up to Beta 2
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269587 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
aa4eb280ad
Ignore fork attribute if build.compiler doesn't point to a JDK javac.
Submitted by: Brian Deitte <bdeitte@macromedia.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269488 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
Sam Ruby
35aee5ccea
Prep for JDK 1.4.
Note: I did a complete scan of the code. Mostly it the version checks are
safe (e.g., things not supported with 1.1). The only place where it wasn't
obvious to me was RMIC, but it seemed OK.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269132 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
4ca5683c2a
<javac> rewritten to use a factory.
Submitted by: Jay Glanville <jayglanville@home.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268444 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
320a0390be
Propagate Sam's build.sysclasspath magic to <rmic> as well.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268424 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
2f3fc4ceb2
Address anomolies where classpath is now being interpreted differently by
different tasks due to my change to javac and the introduction of
${build.sysclasspath}
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268407 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
3d76bc5d3a
Provide a failonerror attribute for javac. This defaults to true. If you set it to
false, an error is logged but the build will continue.
Based on the idea by Ken Wood.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268396 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
6c287080d4
Make licence statements mention Ant in place of Tomcat
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268392 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Sam Ruby
ba0d3f2a3e
Control the order in which the system and build classpaths are combined
via a new property: build.sysclasspath.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268383 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Conor MacNeill
b9b4d060f1
Fix up problem with multiple source dirs in javac
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268215 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
8355b21de2
New FileNameMapper that does wildcard replacements like DOS's
ren *.foo *.bar. Use it in javac (more to come).
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268194 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
1375c85ac2
javadoc correction to ExecTask
Submitted by: Jesse Glick <Jesse.Glick@netbeans.com>
Make Path use getCanonicalPath throughout.
Submitted by: Vincent Bergbauer <vincent_bergbauer@yahoo.com>
Remove deprecation warnings in SignJar
Submitted by: KC Baltz <KBaltz@responsenetworks.com>
Give user a clue if the classic compiler can not be found.
Submitted by: Erik Meade <emeade@geekfarm.org>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268128 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
b189662bae
Make <javac> always add +F to the jikes command line if
build.compiler.fulldepend has been set.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268115 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
2198f70d70
and don't swap stderr and stdout either.
The release build is correct BTW, CVS claimed I changed the file fast
enough, but it committed something else, grr.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268112 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
2b0355c521
Better redirect stderr and stdout instead of stderr twice.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268111 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
99f3f52ede
Ensure the output of the modern compiler is going to be redirected as
well.
Prepare for a second release candidate build.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268110 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
838def06a0
And no stack trace for classic compiler either.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268103 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
b0027003f4
Don't print stack traces on compilation errors.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268102 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
8e8cf291a5
Made destdir in <javac> optional - don't use the -d switch at all if
this one hasn't been given.
Submitted by: Alexander Pokahr <5pokahr@informatik.uni-hamburg.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268079 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
c89099e9b9
Make <javac> use the value of srcdir as destdir if the latter has not
been specified.
Submitted by: Alexander Pokahr <5pokahr@informatik.uni-hamburg.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268075 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
47dce162e8
Allow the user to specify a classpath to <junit> even if fork="off".
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268059 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
6c40e0ca77
Let jikes use the temporary file solution if the total length of the
command line exceeds 4k.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268058 13f79535-47bb-0310-9956-ffa450edef68
25 years ago