> * Larry Clapp <yneel@gu...> [2004-08-03 07:32:30 -0400]:
>
> Sam Steingold said:
>> To avoid this error:
> [snip]
>> /cygdrive/c/java/bin/jar: argument list too long
>> make: *** [j.jar] Error 2
>>
>> I propose the appended patch (agains CVS).
>>
> [snip]
>> + cd src && \
>> +   $(JAR) cmf manifest ../j.jar Main.class org/armedbear/j/*.class && \
>> +   $(JAR) uf ../j.jar org/armedbear/j/version org/armedbear/j/build \
>> +     org/armedbear/j/images/*.png && \
>> +   $(JAR) uf ../j.jar gnu/regexp/*.class
> gnu/regexp/MessagesBundle.properties && \
>> +   $(JAR) uf ../j.jar org/armedbear/j/mail/*.class && \
>> +   $(JAR) uf ../j.jar org/armedbear/j/jdb/*.class && \
>> +   $(JAR) uf ../j.jar org/armedbear/j/*.keywords && \
>> +   $(JAR) uf ../j.jar org/armedbear/j/mail/*.keywords && \
>> +   $(JAR) uf ../j.jar org/armedbear/lisp/*.class && \
>> +   $(JAR) uf ../j.jar org/armedbear/lisp/java/awt/*.class && \
>> +   $(JAR) uf ../j.jar org/armedbear/lisp/*.lisp org/armedbear/lisp/build
>
> This invokes jar several times.  Why not echo the filenames to a temp file
> and say
>
>     $(JAR) cmf manifest ../j.jar @temp_file_name
>     rm temp_file_name
>
> ?
>
> This is a documented feature of jar under (at least) Solaris & Windows.
> See http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jar.html and/or
> http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jar.html .
Ant over cygwin endorsement. I run this an AMD 2.2 GHZ
 
Ant on Windows I use this command line. I found the
"jdk" variable in the build.xml is used to determine
where my JDK is located. So I override it on the
cmdline. My target in this case is j.jar, again from
looking through the build.xml.


d:\projects\j-0.20.2>ant -Djdk=D:\j2sdk1.4.2_04 j.jar
>compiler-out.txt 2>&1

Another windows shell thing, if I

c:>set JAVA_HOME=d:\j2sdk1.4.2

I can then refer to it like this

d:\projects\j-0.20.2>ant -Djdk=%JAVA_HOME% <target name>

vice the unix style $JAVA_HOME. This tip may be useful
to someone.

Wayne


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!