You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Yves Martin <yv...@elca.ch> on 2005/01/12 12:50:34 UTC

'Java' fork information

   Hello,

 You may already know that the process command line is limited according to the
 OS. And that limit on Windows with the Win32 API CreateProcess is 32 Kb. If
 the limit is exceeded, you get a java.io.IOException.

 I just discovered that there is another limit: an argument of a command line
 must not exceed a specific length.

 On my Linux 2.6, that limit is 4075 - reasonnable I would say.
 With jdk 1.4.1_05 on Windows 2000, that limit is 392...

 It seems to be a JVM bug, as far as Win32 CreateProcess method works if an
 argument is longer that 392.

 What is really annoying: when the limit is exceeded, the Runtime.exec method
 never returns: the JVM process sleeps for ever and no child comes up ?!?

 Hope this helps on day
-- 
Yves Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


tar a directory with ant (precision)

Posted by Yves Leung-Tack <yv...@laposte.net>.
  A precision (in CAPITAL LETTER) to the description I brought in the 
last post
RED cannot go throught the list !

>> Hi,
>>
>>    I'm using the tar task of ant but I come with a "problem" when 
>> untaring the tared files.
>> I can make it work but not exaclty the way I want.
>> After taring directory basedir, see above, I untar it but  I want to 
>> keep the tar program to untar in
>> the directory basedir.
>>
>> For example:
>>       basedir
>>             file1
>>             file2
>>             subdir1
>>                 subsubdir1
>>                 subsubdir2
>>
>> Now when I untar the files tared by ant, it extract it to the current 
>> directory . *I WANT IT  TO CREATE THE BASEDIR DIRECTORY AND THEN PUT 
>> THE FILES IN*
>> Is there a way to tell ant's tar to remember the basedir WHEN IT TAR 
>> THE DIRECTORY?
>>
>> Thanks
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


tar a directory with ant (precision)

Posted by Yves Leung-Tack <yv...@laposte.net>.
   A precision (in *RED*) to the description I brought in the last post


> Hi,
>
>    I'm using the tar task of ant but I come with a "problem" when 
> untaring the tared files.
> I can make it work but not exaclty the way I want.
> After taring directory basedir, see above, I untar it but  I want to 
> keep the tar program to untar in
> the directory basedir.
>
> For example:
>       basedir
>             file1
>             file2
>             subdir1
>                 subsubdir1
>                 subsubdir2
>
> Now when I untar the files tared by ant, it extract it to the current 
> directory . *I want it  to create a basedir directory and then put the 
> files in.*
> Is there a way to tell ant's tar to remember the basedir ?
>
> Thanks
>

tar directory with ant

Posted by Yves Leung-Tack <yv...@laposte.net>.
Hi,

    I'm using the tar task of ant but I come with a "problem" when 
untaring the tared files.
I can make it work but not exaclty the way I want.
After taring directory basedir, see above, I untar it but  I want to 
keep the tar program to untar in
the directory basedir.

For example:
       basedir
             file1
             file2
             subdir1
                 subsubdir1
                 subsubdir2

Now when I untar the files tared by ant, it extract it to the current 
directory ant not in basedir.

Is there a way to tell ant's tar to remember the basedir ?

Thanks

> on day
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org