ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@seessle.de>
Subject [PATCH] Another try on Javac
Date Mon, 18 Sep 2000 23:04:23 GMT
Sorry, it's still Windows-only, but I will try to do some experiments at
work tomorrow.

It compiled 1000 Classes all located in a direcory named
"this_is_a_really_long_dir_name\ and_another_really_long_dir_name
\and_the_last_really_long_dir_name \toplevel\apackage\subpackage" (without
the spaces, I just inserted them to make it a little bit more readable) from
a "normal" ant-file like this

<?xml version="1.0"?>
<project name="Ant" default="main" basedir=".">

  <target name="main">
    <echo message="${java.vendor} ${java.version}"/>
    <property name="build.compiler" value="jikes"/>

    <javac srcdir="D:\temp\src" destdir="D:\temp\classes"
            includes="**/*.java"/>
  </target>
</project>

and also if I call this build-file from another one in another directory
(causing ant to to a chdir before execution).

It now checks the length of all the arguments that would be passed to the
compiler and writes them to or temp-file if the length is above 32000 of JDK
< 1.3 and length is above 4000. The 4000 is used here because you are much
more limited in the command line length if you execute the command thru
cmd.exe (which ant does for jdk < 1.3).

It is not tested on Win9x, but I don't think it should break anything which
worked before...

Can you please cc to seessle@hmorga.de if you are interested in me doing
some research on Linux? (Although I don't know if this will give any clues
on what should be done on unix generally).

Nico


Mime
View raw message