Re: javac task question

2023-12-22 Thread Alan Snyder
try my variant: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> O

Re: javac task question

2023-12-21 Thread Alan Snyder
gt; > > > > > > > > > > > Original Message > From: Alan Snyder [mailto:contagiousarrow...@cbfiddle.com] > Sent: Wednesday, December 20, 2023 at 23:37 UTC > To: Ant Users List > Subject: java

Re: javac task question

2023-12-20 Thread ilya Basin
ocs could be better too. I wasn't able to find examples of on the site. Please try my variant: Original Message From: Alan Snyder [mailto:contagiousarrow...@cbfiddle.com] Sent: Wednesday, December 20

Re: javac task question

2023-12-20 Thread Alan Snyder
This actually does what I want: The problem is that I don’t really want to specify srcdir, but if I leave it out, the build fails (see below). I would need to create a fake directory to use as srcdir to be sure that I don’t accidentally compile unwanted source

Re: javac task question

2023-12-19 Thread Jaikiran Pai
Hello Alan, It's hard to say what's going on. Do you have a build file (or a snippet) to show what issue you are running into? Which version of Java and Ant is this showing up on? -Jaikiran On 18/12/23 1:44 am, Alan Snyder wrote: I know of a couple of ways to run javac on more than one sour

javac task question

2023-12-17 Thread Alan Snyder
I know of a couple of ways to run javac on more than one source tree. One way is to use nested src elements. Another way is like this: srcdir="${src}:${src2}” I would like to generalize this solution to a dynamicly determined list of source trees. I thought that I could use srcpath for this p

RE: Ant javac task - error doesn't fail the build

2014-05-15 Thread WebServices Development
Sent: Saturday, May 03, 2014 07:56 To: Ant Users List Subject: RE: Ant javac task - error doesn't fail the build The line that I had included in my initial question ( copied below again for reference ) - the error is generated by javac task - it is not just me saying "it is an

RE: Ant javac task - error doesn't fail the build

2014-05-13 Thread WebServices Development
Sent: Saturday, May 03, 2014 07:56 To: Ant Users List Subject: RE: Ant javac task - error doesn't fail the build The line that I had included in my initial question ( copied below again for reference ) - the error is generated by javac task - it is not just me saying "it is an

RE: Ant javac task - error doesn't fail the build

2014-05-03 Thread WebServices Development
The line that I had included in my initial question ( copied below again for reference ) - the error is generated by javac task - it is not just me saying "it is an error because the file size is zero". So, shouldn't the failonerror be triggered in that situation, by ant? 558

Re: UNS: RE: Ant javac task - error doesn't fail the build

2014-05-02 Thread Andreas Krey
On Fri, 02 May 2014 11:05:51 +, WebServices Development wrote: > But with this one, I don't get the build failure, Possiby because this is not really an error. If a zip file you specified is empty, then it is empty. If that does not cause any required classes to be missed, that is not a compil

RE: Ant javac task - error doesn't fail the build

2014-05-02 Thread WebServices Development
mx.de] Sent: Friday, May 02, 2014 6:03 AM To: Ant Users List Subject: Re: Ant javac task - error doesn't fail the build On Fri, 02 May 2014 09:16:11 +, WebServices Development wrote: > We have an ANT javac task which generates an error like below, but the build > doesn't return

Re: Ant javac task - error doesn't fail the build

2014-05-02 Thread Andreas Krey
On Fri, 02 May 2014 09:16:11 +, WebServices Development wrote: > We have an ANT javac task which generates an error like below, but the build > doesn't return build failure. It shows successful completion. What change > do I have to make so that it will return failure? There

Ant javac task - error doesn't fail the build

2014-05-02 Thread WebServices Development
We have an ANT javac task which generates an error like below, but the build doesn't return build failure. It shows successful completion. What change do I have to make so that it will return failure? 558 4/28/14 1:09 PM EXEC[javac] error: error reading /view/dev_vie

RE: ANT 'javac' task and 'fork' attribute

2013-02-07 Thread WebServices Development
Can someone give me an example of using jdk6 style wildcard classpath with compilerargs? Thanks -Original Message- From: WebServices Development [mailto:webservices_developm...@csx.com] Sent: Friday, February 01, 2013 6:42 AM To: user@ant.apache.org Subject: RE: ANT 'javac'

RE: ANT 'javac' task and 'fork' attribute

2013-02-01 Thread WebServices Development
ng for an example. Thank you. -Original Message- From: WebServices Development [mailto:webservices_developm...@csx.com] Sent: Thursday, January 31, 2013 10:54 PM To: user@ant.apache.org Subject: RE: ANT 'javac' task and 'fork' attribute From the link here (http://mindprod

RE: ANT 'javac' task and 'fork' attribute

2013-01-31 Thread WebServices Development
. -Original Message- From: Rainer Noack [mailto:rai...@noacks.net] Sent: Thursday, January 31, 2013 6:28 PM To: user@ant.apache.org Subject: Re: ANT 'javac' task and 'fork' attribute Hi, yep, that's the behaviour how ant works. why do you think com.sun.tools.ja

Re: ANT 'javac' task and 'fork' attribute

2013-01-31 Thread Rainer Noack
7;s cp is expanded to jar-files in the directory. try the element to set javac's classpath directly. rgds Rainer Am 31.01.2013 20:57, schrieb WebServices Development: While researching when trying to figure out why I could not use the wildcard classpath for the javac task- even in ant

ANT 'javac' task and 'fork' attribute

2013-01-31 Thread WebServices Development
While researching when trying to figure out why I could not use the wildcard classpath for the javac task- even in ant 1.8.4 ( wildcards are supposed to be allowed since Ant 1.8.2 )- here is what I have inferred. Can someone please let me know, if the inference is correct or am I mis-guided

RE: Which javac does ant use in its "javac" task?

2013-01-17 Thread WebServices Development
in ANT starting with version 1.8.2 according to the documentation. -Original Message- From: Welsh, Armand [mailto:awe...@statestreet.com] Sent: Wednesday, January 16, 2013 3:40 PM To: Ant Users List Subject: RE: Which javac does ant use in its "javac" task? I understand

RE: Which javac does ant use in its "javac" task?

2013-01-17 Thread WebServices Development
\*,C:\Software\WAS85\lib\*,C:\Software\WAS85\plugins\*] -Original Message- From: Maurice Feskanich [mailto:maurice.feskan...@oracle.com] Sent: Wednesday, January 16, 2013 1:23 PM To: Ant Users List Subject: Re: Which javac does ant use in its "javac" task? You may have already do

Re: Which javac does ant use in its "javac" task?

2013-01-16 Thread Rainer Noack
Hi, just for your understanding: Ant's javac task is not a compiler itself, but calls the specified compiler (if not specified otherwise, the javac of the jdk you are running ant with.) BUT: In the most cases Ant is passing a resolved classpath to the compiler. Regarding the specified ord

RE: Which javac does ant use in its "javac" task?

2013-01-16 Thread Welsh, Armand
ting this from what little details do exist in the documentation. -Original Message- From: WebServices Development [mailto:webservices_developm...@csx.com] Sent: Tuesday, January 15, 2013 5:40 PM To: Ant Users List Subject: RE: Which javac does ant use in its "javac" task? Thank you.

Re: Which javac does ant use in its "javac" task?

2013-01-16 Thread Maurice Feskanich
n...@oracle.com] Sent: Tuesday, January 15, 2013 20:57 To: Ant Users List Subject: Re: Which javac does ant use in its "javac" task? According to the Ant 1.8.4 docs, wildcards are only supported in the 'location' attribute of a pathelement or a classpath. Based on this

RE: Which javac does ant use in its "javac" task?

2013-01-16 Thread WebServices Development
urice Feskanich [mailto:maurice.feskan...@oracle.com] Sent: Tuesday, January 15, 2013 20:57 To: Ant Users List Subject: Re: Which javac does ant use in its "javac" task? According to the Ant 1.8.4 docs, wildcards are only supported in the 'location' attribute of a pathelement or a

Re: Which javac does ant use in its "javac" task?

2013-01-15 Thread Maurice Feskanich
:/opt/local/software/websphere/v7/lib/*:/opt/local/software/websphere/v7/plugins/*: Ant _ From: WebServices Development Sent: Tuesday, January 15, 2013 6:06 PM To: Ant Users List Subject: RE: Which javac does ant use in its "javac" ta

RE: Which javac does ant use in its "javac" task?

2013-01-15 Thread WebServices Development
Thank you. I presume this is answer to my first question - Which javac does ant use? Is it in the ANT code that doesn't process the wildcard classpath? Is this javac class a java compiler class, or just a class that defines ANT's javac task ? If it is a compiler, then does it

RE: Which javac does ant use in its "javac" task?

2013-01-15 Thread Martin Gainty
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: webservices_developm...@csx.com > To: user@ant.apache.org > Subject: RE: Which javac does ant use in its "javac" task? > Date: Tue, 15 Jan 2013 23:38:40 + > > Sorry, ther

RE: Which javac does ant use in its "javac" task?

2013-01-15 Thread WebServices Development
es ant use in its "javac" task? Actually, currently I am testing with hardcoding the classpath as in below task definition. I ultimately want to create a classpath from a string, but that is next question, if I can get this working. This is the same path I am using in my co

RE: Which javac does ant use in its "javac" task?

2013-01-15 Thread WebServices Development
al Message- From: Maurice Feskanich [mailto:maurice.feskan...@oracle.com] Sent: Tuesday, January 15, 2013 3:41 PM To: Ant Users List Subject: Re: Which javac does ant use in its "javac" task? Without knowing how you are creating the classpath for ant to use, it is impossible to say w

Re: Which javac does ant use in its "javac" task?

2013-01-15 Thread Maurice Feskanich
Without knowing how you are creating the classpath for ant to use, it is impossible to say why it is not working for you. It may be something as simple as using the wildcard in a way that has ant expanding it rather than it being passed through to javac. Maury On 01/14/13 17:23, WebServices

Which javac does ant use in its "javac" task?

2013-01-14 Thread WebServices Development
I am using ant 1.8.4. My JAVA_HOME is set to the location of JDK 7. I have a set of classes that use a list of jars from a given library location. When I use command line jdk to do the compile it gives different results from using ant script to do the compile. The classpath definition is same

答复: javac task encountered a compiling error at the 'import' statement

2011-03-21 Thread 汪燕青
: Ant Users List 主题: 答复: javac task encountered a compiling error at the 'import' statement I've tried setting the classpath and sourcepath, still didn't work. But if I removed the problematic import statement, compiling ok, which means the classpath and sourcepath is right. I

答复: javac task encountered a compiling error at the 'import' statement

2011-03-21 Thread 汪燕青
fix. But I when using Eclipse, setting the project's java compiler's 'Compiler compliance level' to 1.3, it was ok. -邮件原件- 发件人: 汪燕青 [mailto:wangyanq...@gameabc.com] 发送时间: 2011年3月22日 10:20 收件人: Ant Users List 主题: 答复: javac task encountered a compiling error at the

Re: javac task encountered a compiling error at the 'import' statement

2011-03-21 Thread Scot P. Floess
javac task but still didn’t work. I don’t know why.       Anyone faced the similar problem? How did you solve this? Any suggestions would be highly appreciated!       The Eclipse project’s Java compiler setting is like this: cid:image001.png@01CBE808.BD0895F0   And I set the javac

Patch submitted for javac task

2010-09-01 Thread Andrew Eisenberg
Hi all, A few months ago, I submitted a small patch to the javac task, but I have not heard any response as to whether or not the patch is reasonable. Is there someone available who can triage it? https://issues.apache.org/bugzilla/show_bug.cgi?id=48829 thanks for your help, Andrew

Re: javac task cannot find jar, but jar exists

2009-07-09 Thread zyellowman2
I fixed this by changing all refid= to path= zyellowman2 wrote: > > I am having an issue where my javac task is trying to include a jar in the > classpath, but says that it cannot find the reference. The location that > it says it is looking is in fact the directory that contai

javac task cannot find jar, but jar exists

2009-07-09 Thread zyellowman2
I am having an issue where my javac task is trying to include a jar in the classpath, but says that it cannot find the reference. The location that it says it is looking is in fact the directory that contains the exact jar it is looking for, case-sensitive and all. The problem does not arise

Classpath issue with javac task

2009-06-17 Thread Zanzerkia, Robert
I am using Ant 1.6.5. The problem I am running into is that a wrong class is loaded. I have IBM RAD installed on the system and it is using the class from that directory tree. I have setup my own classpath in the build.xml and it does not include C:\IBM... entries. So how can I prevent javac pic

Re: how to force recompile everything using javac task

2008-07-05 Thread David Weintraub
t; Hi Raymond, > > Thanks for your reply. > Actually I have two task in my build.xml. First task would > compile everything from src dir "Adir" and jar it. Second task > will compile a few java file from "Bdir" which could override some of > first ones and cre

Re: how to force recompile everything using javac task

2008-07-03 Thread Geoffrey Mitchell
uld override some of first ones and create another jar again. If I put a delete task before second javac task, I would need to selectively delete some java classes instead of deleting the whole output directory which is a little bit complex :-). It would be nice if there is some other options to do

Re: how to force recompile everything using javac task

2008-07-02 Thread Andy Stevens
uld override some of > first ones and create another jar again. If I put a delete task before > second javac task, I would need to selectively delete some java classes > instead of deleting the whole output directory which is a little bit > complex :-). It would be nice if there is som

RE: how to force recompile everything using javac task

2008-07-02 Thread Guo-ping . Zhang
I put a delete task before second javac task, I would need to selectively delete some java classes instead of deleting the whole output directory which is a little bit complex :-). It would be nice if there is some other options to do this. I tried using "touch" java source before sec

RE: how to force recompile everything using javac task

2008-07-01 Thread Raymond Berg (ALLETE)
, July 01, 2008 2:06 AM To: user@ant.apache.org Subject: how to force recompile everything using javac task Hi, how to force recompile everything using javac task? Javac task always compare modify time with target classes. I want to recompile java source no matter target classes exists and newer

how to force recompile everything using javac task

2008-07-01 Thread Guo-ping . Zhang
Hi, how to force recompile everything using javac task? Javac task always compare modify time with target classes. I want to recompile java source no matter target classes exists and newer. Is there any options to achieve this? Thanks,

AW: how to record javac task?

2008-02-06 Thread Jan.Materne
1. What do you expect in your log? 2. Maybe just setting the loglevel would help Jan -Ursprüngliche Nachricht- Von: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. Februar 2008 20:00 An: Ant Users List Betreff: Re: how to record javac task? Please try this

Re: how to record javac task?

2008-02-04 Thread glenn opdycke-hansen
t; > but nothing is getting recorded > plz help me out. > -- > View this message in context: > http://www.nabble.com/how-to-record-javac-task--tp15268113p15268113.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > ---

how to record javac task?

2008-02-04 Thread san84
hi all, am beginner to ant tool. am trying to record the compile task using ant as follows but nothing is getting recorded plz help me out. -- View this message in context: http://www.nabble.com/how-to-record-javac-task--tp15268113p15268113.html Sent from the Ant - Users mailing

Re: How to include multiple source branches in javac task

2007-10-09 Thread Sunil Prabhakaran
> > On 10/8/07, Sunil Prabhakaran <[EMAIL PROTECTED]> wrote: > > Hi > > > > Have you tried the Includesfile attribute in Javac task? > > > > Regards > > Sunil Prabhakaran > > > > On 10/8/07, Alexis Votta <[EMAIL PROTECTED]> wrote: &

Re: How to include multiple source branches in javac task

2007-10-08 Thread Alexis Votta
No, I haven't. How can I use it? On 10/8/07, Sunil Prabhakaran <[EMAIL PROTECTED]> wrote: > Hi > > Have you tried the Includesfile attribute in Javac task? > > Regards > Sunil Prabhakaran > > On 10/8/07, Alexis Votta <[EMAIL PROTECTED]> wrote: >

Re: How to include multiple source branches in javac task

2007-10-08 Thread Sunil Prabhakaran
Hi Have you tried the Includesfile attribute in Javac task? Regards Sunil Prabhakaran On 10/8/07, Alexis Votta <[EMAIL PROTECTED]> wrote: > This is how my javac task looks right now. > > destdir="${build.classes.dir}"> > > > >

How to include multiple source branches in javac task

2007-10-08 Thread Alexis Votta
This is how my javac task looks right now. I want to move the include names to a properties file, so that my javac task looks like:- This will help me to put all the includes at one place in the properties file like this:- src.includes = UIManager.java

Re: How to include a single Java file in javac task?

2007-10-08 Thread Prashant Reddy
Try : On Mon, 2007-10-08 at 16:20 +0530, Alexis Votta wrote: > Currently, my compile target is as follows. > > > > > > > So, it compiles everything in ${src.dir}. > > Apart from this I want to add one single Java file to be compiled. > Therefore, I want: > > 1. All Java f

How to include a single Java file in javac task?

2007-10-08 Thread Alexis Votta
Currently, my compile target is as follows. So, it compiles everything in ${src.dir}. Apart from this I want to add one single Java file to be compiled. Therefore, I want: 1. All Java files in ${src.dir} to be compiled. 2. rt/src/Crypto.java to be compiled. How can I do this?

FW: Failonerror attribute of Delete and Javac task

2007-08-25 Thread Ravi Roy
, August 25, 2007 5:36 PM To: 'user@ant.apache.org' Subject: Failonerror attribute of Delete and Javac task Hi All, My product build scripts are spanned across serveral build scripts. At times, while deleting the temp folder, I use the

Failonerror attribute of Delete and Javac task

2007-08-25 Thread Ravi Roy
Hi All, My product build scripts are spanned across serveral build scripts. At times, while deleting the temp folder, I use the following : Please note above in the target that I am using failonerror="false", which I

Re: Javac task query

2007-06-27 Thread Wayne Cannon
Keep in mind that a class file is generated for every Java class, NOT for every source file. Source files can contain multiple classes (although I generally don't like the practice, it's very common for listener classes in GUI code). If B.java defined classes B and C, the compiler would gener

RE: Javac task query

2007-06-27 Thread Yadav, Akshat Kumar
Thanks Steve, I will look into this. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 5:09 PM To: Ant Users List Subject: Re: Javac task query Yadav, Akshat Kumar wrote: > Thanks Peter for reply. > > I think ANT developer sho

Re: Javac task query

2007-06-27 Thread Steve Loughran
Yadav, Akshat Kumar wrote: Thanks Peter for reply. I think ANT developer should think on extending there "javac" task to provide such feature. Thanks, I must disagree. You should get into the habit of doing clean builds on a regular basis, at least first thing every mornin

Re: Javac task query

2007-06-27 Thread Yadav, Akshat Kumar
Thanks Peter for reply. I think ANT developer should think on extending there "javac" task to provide such feature. Thanks, -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 3:46 PM To: Ant Users List Subject: Re: Javac task quer

Re: Javac task query

2007-06-27 Thread Peter Reilly
nal Message- From: Prashant Reddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 1:57 PM To: Ant Users List Subject: Re: Javac task query No 'javac' task by itself will not delete class file whose source java file has been deleted, and rightly so. I do not think you would really

RE: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Thanks Prashant for reply. I am talking for the situation where a.java, b.java and c.java are independent java code files. Thanks, -Original Message- From: Prashant Reddy [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 27, 2007 1:57 PM To: Ant Users List Subject: Re: Javac task query

Re: Javac task query

2007-06-26 Thread Prashant Reddy
No 'javac' task by itself will not delete class file whose source java file has been deleted, and rightly so. I do not think you would really want other source files to *not* compile when you have deleted a dependent source file. Imagine class A uses class C and you deleted class C

Re: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
et me know... Thanks, -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 7:04 PM To: Ant Users List Subject: Re: Javac task query Yadav, Akshat Kumar wrote: > > Hi Prashant, > > I had executed ANT in verbose and debug mode and

Re: Javac task query

2007-06-26 Thread Steve Loughran
Yadav, Akshat Kumar wrote: Hi Prashant, I had executed ANT in verbose and debug mode and it shows [javac] HelloWorlApp.java added as HelloWorlApp.class doesn't exist. Whereas the class file exist in dest dir. I tried adding/deleting dest dir in classpath, but no luck in both the situation.

Re: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
ubject: RE: Javac task query Humm.. May be you could try running ANT in verbose mode, see why ANT thinks it should compile .java files that are not modified. Also, I think the destination dir the classes are directed to is automatically added to classpath by ANT. So you may not need this : &

RE: Javac task query

2007-06-26 Thread Prashant Reddy
cNDBBIMH > [EMAIL PROTECTED] > https://issues.apache.org/struts/browse/STR-2403 > > Thanks, > > -Original Message- > From: Prashant Reddy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 26, 2007 5:17 PM > To: Ant Users List > Subject: Re: Javac task query > &g

RE: Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
-2403 Thanks, -Original Message- From: Prashant Reddy [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 5:17 PM To: Ant Users List Subject: Re: Javac task query Please see : http://ant.apache.org/faq.html#always-recompiles HTH On Tue, 2007-06-26 at 16:15 +0800, Yadav, Akshat Kuma

Re: Javac task query

2007-06-26 Thread Prashant Reddy
Please see : http://ant.apache.org/faq.html#always-recompiles HTH On Tue, 2007-06-26 at 16:15 +0800, Yadav, Akshat Kumar wrote: > Hi All, > > Ant manual says "The source and destination directory will be > recursively scanned for Java source files to compile. Only Java files > that have no corre

Javac task query

2007-06-26 Thread Yadav, Akshat Kumar
Hi All, Ant manual says "The source and destination directory will be recursively scanned for Java source files to compile. Only Java files that have no corresponding .class file or where the class file is older than the .java file will be compiled." Reference: http://ant.apache.org/manual/CoreT

Re: Re: javac task with classpath issue

2007-06-14 Thread query
Reformatted one is available in:  20070612125513.17951.qmail () webmail6 ! rediffmail ! com On Tue, 12 Jun 2007 Scot P.Floess wrote : >Can you reformat and show some samples? > >query wrote: >>Sorry for the mail format. >> >>The issue with recompilation is not with jar file, but with class files.

Re: Re: javac task with classpath issue

2007-06-14 Thread query
Reformatted one is available in:  20070612125513.17951.qmail () webmail6 ! rediffmail ! com On Tue, 12 Jun 2007 Scot P.Floess wrote : >Can you reformat and show some samples? > >query wrote: >>Sorry for the mail format. >> >>The issue with recompilation is not with jar file, but with class files.

Re: Re: javac task with classpath issue

2007-06-14 Thread query
Reformatted one is available in:  20070612125513.17951.qmail () webmail6 ! rediffmail ! com On Tue, 12 Jun 2007 Scot P.Floess wrote : >Can you reformat and show some samples? > >query wrote: >>Sorry for the mail format. >> >>The issue with recompilation is not with jar file, but with class files.

Re: javac task with classpath issue

2007-06-12 Thread Scot P. Floess
Can you reformat and show some samples? query wrote: Sorry for the mail format. The issue with recompilation is not with jar file, but with class files. When I have already mentioned eg1.jar in classpath, hence compiler shouldn't recompile the common java files while compiling eg2 source files.

Re: Re: javac task with classpath issue

2007-06-12 Thread query
Sorry for the mail format. The issue with recompilation is not with jar file, but with class files. When I have already mentioned eg1.jar in classpath, hence compiler shouldn't recompile the common java files while compiling eg2 source files. This issue is arising only with ANT tool. What can

Re: javac task with classpath issue

2007-06-08 Thread David Weintraub
27;t seem to be working. On 8 Jun 2007 07:23:05 -, query <[EMAIL PROTECTED]> wrote: I have already compiled some java source files using ANT <javac> task and created a jar file(eg1.jar). I am using eg1.jar in the classpath to compile files in E:\\ANTBUILD\\eg\\eg2\\sources.

javac task with classpath issue

2007-06-08 Thread query
I have already compiled some java source files using ANT <javac> task and created a jar file(eg1.jar). I am using eg1.jar in the classpath to compile files in E:\\ANTBUILD\\eg\\eg2\\sources.The log shows that in the classpath, it is also including the destination folder as a classpath. Is

AW: Rebuild in javac Task with include attribute

2007-04-29 Thread Jan.Materne
org >Betreff: Rebuild in javac Task with include attribute > > >Hi, > >There is something I do not understand in Javac Tasks with include >attributes : > > > > > > > > > > >Why at each launch of co

Rebuild in javac Task with include attribute

2007-04-28 Thread Saloucious
-javac-Task-with-include-attribute-tf3663136.html#a10235609 Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

javac task + sourcepathref + excluded files = impossible?

2007-04-09 Thread Trevor Harmon
I have a list of source files that must be supplied to javac as well as several other tasks. It's a complex list with excludes, so I want to factor it out as a path reference to avoid future copy-and-paste bugs. But this doesn't seem to be possible! My path reference is defined like this:

Re: Re: Re: Issue with javac task

2007-03-30 Thread Peter Reilly
t; > > > > >On 24 Mar 2007 07:27:13 -, first last <[EMAIL PROTECTED]> wrote: > >> > >>Hi, > >> > >>I am new to ANT. > >>Currently, iam using ANT 1.7 and java 1.5.0 > >> > >>Earlier, I was compiling java files using

Re: Re: Re: Issue with javac task

2007-03-29 Thread query
newbie to both java and ant! >On Mon, 26 Mar 2007 Peter Reilly wrote : > >You need to set the debug attribute to "true" on the javac task. > > > >By default the debug attribute is "false", this corresponds (since > >I think ant 1.4) to -g:none. &g

Re: Issue with javac task

2007-03-26 Thread Peter Reilly
You need to set the debug attribute to "true" on the javac task. By default the debug attribute is "false", this corresponds (since I think ant 1.4) to -g:none. should give the same debug info as the default commandline javac. Peter On 24 Mar 2007 07:27:13 -

Issue with javac task

2007-03-23 Thread first last
  Hi, I am new to ANT. Currently, iam using ANT 1.7 and java 1.5.0 Earlier, I was compiling java files using command line javac.exe. Now, I am compiling java files using ANT javac task. Though the build is successful, I observed that the class files generated using ANT javac task is smaller

AW: Failing a javac task due to Xlint warnings

2007-03-05 Thread Jan.Materne
>-Ursprüngliche Nachricht- >Von: Brown, Carlton [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 5. März 2007 22:33 >An: user@ant.apache.org >Betreff: Failing a javac task due to Xlint warnings > >Hi all, > >I am looking for a way to cause javac to fail if certai

Failing a javac task due to Xlint warnings

2007-03-05 Thread Brown, Carlton
Hi all, I am looking for a way to cause javac to fail if certain warnings are encountered (deprecation, etc).I did not see any attribute to that would produce such behavior. My next thought was to capture the stdout or stderr of javac into a property and then check it in a nested in a tas

javac task with -Xlint

2006-11-30 Thread Ron Wheeler
How does one get ant to run the Java 1.6 compiler with the -Xlint argument in Eclipse? I am using Eclipse with 1.6.5 Ron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: How to silence javac task?

2006-11-28 Thread Hans Schwaebli
the svn-history about "self" ... Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 28. November 2006 07:59 >An: Ant Users List >Betreff: RE: How to silence javac task? > > >:-) > >i just saved it

doesnt run on 1.6.x but on 1.7 (WAS: How to silence javac task?)

2006-11-28 Thread Jan.Materne
gt;-Ursprüngliche Nachricht- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 28. November 2006 08:50 >An: user@ant.apache.org >Betreff: AW: How to silence javac task? > >mmm ... I had tested that in the past ... >I did a retest on Ant 1.5 (failed, ok

AW: How to silence javac task?

2006-11-27 Thread Jan.Materne
n-history about "self" ... Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 28. November 2006 07:59 >An: Ant Users List >Betreff: RE: How to silence javac task? > > >:-) > >i just saved it for further

RE: How to silence javac task?

2006-11-27 Thread Rebhan, Gilbert
:54 AM To: user@ant.apache.org Subject: AW: How to silence javac task? Hihi - I thought I had implemented something ;-) Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 27. November 2006 15:45 >An: Ant Users List >Bet

AW: How to silence javac task?

2006-11-27 Thread Jan.Materne
Hihi - I thought I had implemented something ;-) Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 27. November 2006 15:45 >An: Ant Users List >Betreff: RE: How to silence javac task? > > >Hi, &

RE: How to silence javac task?

2006-11-27 Thread Rebhan, Gilbert
D] Sent: Monday, November 27, 2006 3:40 PM To: Ant Users List Subject: Re: How to silence javac task? I have to reply to a message because if I post my problem as a new message it is always rejected as spam! Here is it: I want to echo the current target name. Is this possible? The

Re: How to silence javac task?

2006-11-27 Thread Hans Schwaebli
I have to reply to a message because if I post my problem as a new message it is always rejected as spam! Here is it: I want to echo the current target name. Is this possible? There is no build-in property ant.target.name. Maybe another way? Why I want to do this? Because if a

RE: Change JAVA home for one Javac task and not the other

2006-08-31 Thread Noel Sebastien \(BIL\)
understand the sense of "extdirs" options. Anyway works fine without using it. -Original Message- From: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] Sent: mercredi 30 août 2006 16:04 To: Ant Users List Subject: Re: Change JAVA home for one Javac task and not the other Hello Sebas

RE: Change JAVA home for one Javac task and not the other

2006-08-30 Thread Stephen McConnell
> -Original Message- > From: Marc Farrow [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 30 August 2006 11:10 PM > To: Ant Users List > Subject: Re: Change JAVA home for one Javac task and not the other > > Can't you just specify the source level when you ca

Re: Change JAVA home for one Javac task and not the other

2006-08-30 Thread Antoine Levy-Lambert
Hello Sebastien, Marc, you have to fork the in this case. so Regards, Antoine Original-Nachricht Datum: Wed, 30 Aug 2006 09:39:43 -0400 Von: "Marc Farrow" <[EMAIL PROTECTED]> An: "Ant Users List" Betreff: Re: Change JAVA home for one Javac task

Re: Change JAVA home for one Javac task and not the other

2006-08-30 Thread Marc Farrow
Can't you just specify the source level when you call the javac task? The same as Something like javac -source 1.3 -target 1.3 com.mycompany.MyClass.java On 8/30/06, Noel Sebastien (BIL) <[EMAIL PROTECTED]> wrote: Hello, I have one build.xml, with two Javac tasks (amongt several

Change JAVA home for one Javac task and not the other

2006-08-30 Thread Noel Sebastien \(BIL\)
Hello, I have one build.xml, with two Javac tasks (amongt several other ones). The first javac task uses the default java.home (which is our JDK 1.4.1) => works fine The second javac task should use another java.home (JDK 1.3.1 for example) => but how do change the javac path ? Somethin

Re: How to silence javac task?

2006-08-16 Thread Hans Schwaebli
It wouldn't help here because javac.exe writes to error stream both warnings and errors. javac.exe should be quiet regarding warnings if I say so (nowarn=true), but not regarding errors. Thats the problem. James Abley <[EMAIL PROTECTED]> wrote: I run 1.6.5 and haven't looked in SVN to see i

Re: How to silence javac task?

2006-08-15 Thread James Abley
I run 1.6.5 and haven't looked in SVN to see if it's on the roadmap, but would enhancing to support I/O redirectors [1] be of any use here? Cheers, James [1] http://ant.apache.org/manual/CoreTypes/redirector.html Dominique Devienne wrote: So 2. and 3. are _always_ logged irrespective of use

  1   2   >