AW: Skipping a javah task with Java 10 and higher

2019-05-07 Thread jhm
Betreff: Re: Skipping a javah task with Java 10 and higher > > Thanks much for your help! The javaversion condition works perfectly. > > > Rei Odaira > > 2019年5月7日(火) 0:58 Jan Matèrne (jhm) : > > > With xml namespaces like if:set you could exclude individu

Re: Skipping a javah task with Java 10 and higher

2019-05-07 Thread 大平怜
s.html > > > > > > > > > ... > > > > > > > > > > Jan > > > -Ursprüngliche Nachricht- > > Von: Jaikiran Pai [mailto:jaiki...@apache.org] > > Gesendet: Dienstag, 7. Mai 2019 07:38 > > An: user@ant.apache.

AW: Skipping a javah task with Java 10 and higher

2019-05-06 Thread jhm
Dienstag, 7. Mai 2019 07:38 > An: user@ant.apache.org > Betreff: Re: Skipping a javah task with Java 10 and higher > > Recent versions of Ant (starting 1.10.2) have a "javaversion" > condition[1] which you can use to setup a "property" which can then be >

Re: Skipping a javah task with Java 10 and higher

2019-05-06 Thread Jaikiran Pai
//ant.apache.org/manual/Tasks/conditions.html#javaversion -Jaikiran On 07/05/19 10:53 AM, 大平怜 wrote: > Hello, > > My build.xml has a javah task. Since it no longer works with Java 10 and > higher, I added nativeHeaderDir to a javac task, and it is working fine. > However, I still want to

Skipping a javah task with Java 10 and higher

2019-05-06 Thread 大平怜
Hello, My build.xml has a javah task. Since it no longer works with Java 10 and higher, I added nativeHeaderDir to a javac task, and it is working fine. However, I still want to keep the javah task, so that the same build.xml works for older Java. How can I make ant skip the javah task only when

Re: problem with using with the javah task

2009-10-15 Thread Bill Au
I just tried but it seems that is not valid for the javah task: javah doesn't support the nested "jvmarg" element. Bill On Thu, Oct 15, 2009 at 9:53 AM, Francis GALIEGUE wrote: > On Thu, Oct 15, 2009 at 15:37, Bill Au wrote: > > I have a need to limit the max hea

Re: problem with using with the javah task

2009-10-15 Thread Francis GALIEGUE
On Thu, Oct 15, 2009 at 15:37, Bill Au wrote: > I have a need to limit the max heap size of the javah task.  So I am using a > : > >                  classpath="${build.classes}" >          destdir="${build.native}/src/org/apache/hadoop/io/compress/zlib" >  

Re: problem with using with the javah task

2009-10-15 Thread Steve Loughran
Bill Au wrote: I have a need to limit the max heap size of the javah task. So I am using a : When I invoke javah directly with the same argument it actually works without error: javah -J-Xmx512m -classpath build/classes

problem with using with the javah task

2009-10-15 Thread Bill Au
I have a need to limit the max heap size of the javah task. So I am using a : But it is giving me a illegal argument error: [javah] Error: -J-Xmx512m is an illegal argument [javah] [javah] Usage: javah [options] [javah] [javah] where

RE: exception using javah task in 1.6.3

2005-05-02 Thread Gary Gregory
Ah, crud, this breaks our build too. Gary -Original Message- From: Maurice Feskanich [mailto:[EMAIL PROTECTED] Sent: Friday, April 29, 2005 11:15 AM To: Ant Users List Subject: Re: exception using javah task in 1.6.3 Hi Antoine, Thanks for the info. I have created Bugzilla report

Re: exception using javah task in 1.6.3

2005-04-29 Thread Maurice Feskanich
Hi Antoine, Thanks for the info. I have created Bugzilla report #34681 for this issue. Maury Antoine Levy-Lambert wrote: > Hello Maurice, > > The class which is trying to use com.sun.tools.javah.oldjavah.Main is > src/main/org/apache/tools/ant/taskdefs/optional/javah/SunJavah.java > http://cv

Re: exception using javah task in 1.6.3

2005-04-28 Thread Antoine Levy-Lambert
Hello Maurice, The class which is trying to use com.sun.tools.javah.oldjavah.Main is src/main/org/apache/tools/ant/taskdefs/optional/javah/SunJavah.java http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs/optional/javah/SunJavah.java I guess the problem is that the changes

exception using javah task in 1.6.3

2005-04-28 Thread Maurice Feskanich
Hi All, I just tried doing my build with 1.6.3, and I'm getting: [javah] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javah/oldjavah/Main This build has been working fine with 1.6.2. All I did to use 1.6.3 was change the value of ANT_HOME. I've looked through the do

Re: Changing method signatures WAS Re: Extension of the Javah-Task

2005-04-20 Thread Stefan Bodewig
On Wed, 20 Apr 2005, Matt Benson <[EMAIL PROTECTED]> wrote: >> True, a good place to turn it into add(ResourceCollection) later. > > Where do we stand on that? i.e. the above requires 3rd-party code to > recompile, or we can be nice We have to be nice, I'd say. > Also, for tasks like this where

Changing method signatures WAS Re: Extension of the Javah-Task

2005-04-20 Thread Matt Benson
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Wed, 20 Apr 2005, Matt Benson > <[EMAIL PROTECTED]> wrote: > > >> (2) Use addFileset(FileSet fs) and add fs to > collection on each > >> invocation, you get support for multiple FileSets > for free. > > > > Better yet, use add(FileSet fs) just be

Re: Extension of the Javah-Task

2005-04-20 Thread Stefan Bodewig
On Wed, 20 Apr 2005, Matt Benson <[EMAIL PROTECTED]> wrote: >> (2) Use addFileset(FileSet fs) and add fs to collection on each >> invocation, you get support for multiple FileSets for free. > > Better yet, use add(FileSet fs) just because you can. True, a good place to turn it into add(ResourceC

Re: Extension of the Javah-Task

2005-04-20 Thread Matt Benson
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Wed, 20 Apr 2005, Karsten Klohs <[EMAIL PROTECTED]> > wrote: > > > | I agree. Native support for filesets would be > the cleanest > > | solution. [SNIP] > (2) Use addFileset(FileSet fs) and add

Re: Extension of the Javah-Task

2005-04-20 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 20 Apr 2005, Karsten Klohs <[EMAIL PROTECTED]> wrote: > | I agree. Native support for filesets would be the cleanest > | solution. > |>>I appreciate any comments to this idea. > | > | > | All it takes is somebody who does the coding and suppl

Re: Extension of the Javah-Task

2005-04-20 Thread Matt Benson
--- Karsten Klohs <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 [SNIP] The implicit convention, is that the full file > name exactly corresponds to > the full class name. How can this restriction be > relaxed? One idea is to > investigate the files' contents to find

Re: Extension of the Javah-Task

2005-04-20 Thread Karsten Klohs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi again, |>>3. I took a brief look at the development of Ant tasks and |>>implementation of the javah-task. I think that it should be quite |>>easy (famous last words ;-)) to extend the javah-task, so that it |>>can take

Re: Extension of the Javah-Task

2005-04-20 Thread Stefan Bodewig
your friend. Translate the fileset into a property and use that. Use "," as pathsep. > 3. I took a brief look at the development of Ant tasks and > implementation of the javah-task. I think that it should be quite > easy (famous last words ;-)) to extend the javah-task, so that i

Extension of the Javah-Task

2005-04-20 Thread Karsten Klohs
, the build-in javah task requires full qualified class name given in a special attribute. The issue was brought up in this Mailing list a few month ago, but seems not have to produced an answer. Thus, I will try to ask hopefully constructive questions: 1. Has anyone solved the problem already? 2

Re: patch for bug # 21410 (javah task doesn't work on jdk1.4.2)

2003-08-14 Thread Antoine Levy-Lambert
There will be a release of ant 1.5.4 with this bug fixed in it this week. Cheers, Antoine - Original Message - From: "Sultan Saini" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 09, 2003 10:44 PM Subject: patch for bug # 21410 (javah task do

Re: Problem: javah task and Sun j2sdk 1.4.2. beta (Windows)

2003-06-20 Thread Antoine Levy-Lambert
ED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 12:31 PM Subject: Problem: javah task and Sun j2sdk 1.4.2. beta (Windows) > When I try to run a javah task with the most recent SUN Windows jdk > (j2sdk 1.4.2 beta) it turns out that the API of com.s

Problem: javah task and Sun j2sdk 1.4.2. beta (Windows)

2003-06-20 Thread Rutger Hofman
When I try to run a javah task with the most recent SUN Windows jdk (j2sdk 1.4.2 beta) it turns out that the API of com.sun.tools.javah.Main has changed. The javah task requires this constructor: public com.sun.tools.javah.Main(java.lang.String[]); which seems to have disappeared: C:\TEMP