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
25 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
25 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
25 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
25 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
25 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
Stefan Bodewig
37ed344b38
Enable redirecting either the output or error or both from a cvs command to a file.
Example usage:
<target name="diff">
<cvs command="diff" output="patch.txt"/>
</target>
Submitted by: Julian M. Savage <jsavage@fisci.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268048 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
db6f84aa22
- Javac.getCompileClasspath(true) adds the correct runtime Zip files when
running in the MS VM. It adds ${java.home}/packages/*.zip instead of
${java.home}/lib/classes.zip
- Javac.doClassicCompile() uses introspection to invoke the classic
compiler. This allows Javac.java to be compiled under a non-Sun JDK.
- Added location to the BuildExceptions thrown by javac.
Submitted by: Adam Murdoch <adammurdoch@yahoo.com>
made some methods protected to make Javac easier to extend.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268047 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
6422ae65b1
Cosmetic changes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268025 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
53b4dec9ae
extdir attribute/nested element of <javac> was broken when using jikes.
PR: #137 (Bug #35 )
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268016 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
d36ee0d77c
Added verbose and depend attributes to <javac> along with yet another
undocumented magic property (YAUMP?) build.compiler.fulldepend that
triggers Jikes' +F option.
Submitted by: Sean Brandt <sean@fuzzymagic.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268011 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
98d5287971
Put the PATH obtained from extdirs between bootclasspath and
userclasspath when using jikes or jvc to make them match javac's
behavior.
Submitted by: Robert Krueger <krueger@signal7.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268008 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
aa71851fb7
When using the temporary file to hold the source file names (in jikes
compilation on Windows) Ant included the command itself as well as all
arguments as source files.
PR: #74 (linked to bug #31 )
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267996 13f79535-47bb-0310-9956-ffa450edef68
25 years ago
Stefan Bodewig
ff810113da
Removed all nested <classpathref> elements in favor of <classpath
refid="...">.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267970 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Stefan Bodewig
1f04dfb4f5
Added encoding attribute to <javac>.
Submitted by: Hiroaki Nakamura <hnakamur@mc.neweb.ne.jp>,
Eric VanLydegraf <ericv@kinzan.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267954 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Stefan Bodewig
62961601ad
Added support for jvc (Microsofts Java compiler) to <javac>.
Submitted by: Nico Seessle <nico@seessle.de>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267953 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Conor MacNeill
ef6aec8251
Provide an explanation, at verbose level, of why Javac decides to compile
certain classes.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267931 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Conor MacNeill
c2007a8479
Move addExisting functionality from javac to Path
Fix error in Path constructor
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267905 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Stefan Bodewig
65e7fa5766
Modern compile was broken.
Reported by: Scott Sutherland <suthsc@ncs.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267898 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Stefan Bodewig
c32873b519
Added nested elements and attributes to reference CLASSPATH structures
defined at another place in the same project.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267896 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Stefan Bodewig
6667e4cdd6
Some cleanup in Javac. Removed duplicate code and used the nested
fileset element of Path to fake extdirs for Jikes.
This should change:
(1) It will scan for all files not only .JAR files in the extdirs
specified. Javac ignores the extension as well.
(2) If no extdirs have been specified, the system property
java.ext.dirs is consulted.
(3) JikesOutputParser has been removed, instead the return code of
jikes determines compilation failures. Expected to behave the same as
before - suggested by Matt Foemmel <mpfoemme@ThoughtWorks.com>.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267893 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Stefan Bodewig
82e6aad204
Make Jikes use the new Execute class instead of calling Runtime.exec itself.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267888 13f79535-47bb-0310-9956-ffa450edef68
26 years ago
Stefan Bodewig
813dfa5f81
Nested <src> element of <javac> would cause a NullPointerException.
Reported by: Paul A Bemowski <pbemowski@z-tel.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267869 13f79535-47bb-0310-9956-ffa450edef68
26 years ago