Re: javac task question

2023-12-22 Thread Alan Snyder
I think I understand now. The documentation for javac says that javac expects source files to live in a package tree, but that does not apply to the source files on the command line. > On Dec 21, 2023, at 10:07 AM, Alan Snyder > wrote: > > Thank you for the suggestion. It s

Re: javac task question

2023-12-21 Thread Alan Snyder
023, at 10:02 PM, ilya Basin wrote: > > Alan. I never used srcpath before and after some trial and error I feel that > the source of the problem is bad description of the option in JDK. > Ant passes srcpath directly to JDK's javac (unlike srcdir which Ant itself > searches fo

Re: javac task question

2023-12-20 Thread ilya Basin
Alan. I never used srcpath before and after some trial and error I feel that the source of the problem is bad description of the option in JDK. Ant passes srcpath directly to JDK's javac (unlike srcdir which Ant itself searches for java files). The description says "Specify" or &

Re: javac task question

2023-12-20 Thread Alan Snyder
gt; 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: >>

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 mor

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

Re: default value for configurable bootclasspath in javac

2021-04-19 Thread basinilya
t; The idea is to not alter bootclasspath when the caller did not provide an > explicit -Djavac.bootclasspath=... > An empty string as the default value works fine with Sun Javac, but it fails > with: > > [myjavac] The type java.lang.Double cannot be resolved. It is indirectly

default value for configurable bootclasspath in javac

2021-04-14 Thread basinilya
Hi. I've got the following in my build xml: The idea is to not alter bootclasspath when the caller did not provide an explicit -Djavac.bootclasspath=... An empty string as the default value works fine with Sun Javac, but it

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-28 Thread Dennis Putnam
; > > > Jan > > > > Von: Dennis Putnam [mailto:d...@bellsouth.net] > Gesendet: Donnerstag, 28. Februar 2019 10:53 > An: user@ant.apache.org > Betreff: AW: Javac Run By Ant Script is Unable to Find External Jars > > > > I've figured out what the problem

AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-28 Thread jhm
...@bellsouth.net] Gesendet: Donnerstag, 28. Februar 2019 10:53 An: user@ant.apache.org Betreff: AW: Javac Run By Ant Script is Unable to Find External Jars I've figured out what the problem is but I don't know what to do to fix it. When I export the jar from Eclipse, it has this set of d

AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-28 Thread Dennis Putnam
I've figured out what the problem is but I don't know what to do to fix it. When I export the jar from Eclipse, it has this set of directories: KCBSEvents META-INF mozilla org src That is the one that works. When I build the jar using ant (below), these are the directories present: KCBSEvents ME

Re: AW: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-25 Thread Dennis Putnam
;${lib.dir}/log4j-api-2.11.2.jar"/> > unless:set="log4j-api.present" > > src="https://search.maven.org/remotecontent?filepath=org/apache/logging/log4j/log4j-api/2.11.2/log4j-api-2.11.2.jar"; > dest="${lib.dir}/log4j-api-2.11.2.jar" /> > > > > > includeantruntime="false"> > >

AW: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-25 Thread jhm
https://search.maven.org/remotecontent?filepath=org/apache/logging/log4j/log4j-api/2.11.2/log4j-api-2.11.2.jar"; dest="${lib.dir}/log4j-api-2.11.2.jar" /> 8-<--8-<--8-<--8-<--8-<-- > -Ursp

AW: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-25 Thread jhm
Could you post the content of the manifest file and your directory structure? I suppose that the paths are not correct … Jan Von: Dennis Putnam [mailto:d...@bellsouth.net] Gesendet: Montag, 25. Februar 2019 13:09 An: user@ant.apache.org Betreff: Re: AW: Javac Run By Ant Script is Unable

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-25 Thread Dennis Putnam
My apologies again but I have not made any progress on this problem. Is there perhaps a better forum I should be using at this point? I did make one discovery. It appears that although the application works in Eclipse when I try to export it to a runnable jar using the Eclipse wizard, the resulting

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-21 Thread Dennis Putnam
I found an article on adding Maven dependencies to my ant script. While I'm getting a successful build but the same exception when I run the jar, I hope this is getting me closer. At least the pom.xml is in the build. I am wondering if the added *fileset* is right and working. Here is my latest:

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-21 Thread Dennis Putnam
use references: > > … > > > > > > > > You mave have a look at > http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html > > > > > > Jan > > > > > > Von: Dennis Putnam [mailto:d...@bellsouth.net] > Gesendet: Diensta

AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-20 Thread jhm
ences: … You mave have a look at http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html Jan Von: Dennis Putnam [mailto:d...@bellsouth.net] Gesendet: Dienstag, 19. Februar 2019 15:40 An: user@ant.apache.org Betreff: Re: Javac Run By Ant Script is Unable to Find External

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-19 Thread Dennis Putnam
3 PM, Jaikiran Pai wrote: > Hi Dennis, > > I think you are almost there to get this working. How are you running > this Java application? Are you using Ant's java task? What does it look > like? Just like you did with javac, the java task will need to know what > classpath to us

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread Jaikiran Pai
Hi Dennis, I think you are almost there to get this working. How are you running this Java application? Are you using Ant's java task? What does it look like? Just like you did with javac, the java task will need to know what classpath to use while running the application. As long as you

AW: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread jhm
Ant's fetch.xml) - use Ivy as dependency manager and use it to define the path's (see Ant's check.xml) Jan > -Ursprüngliche Nachricht- > Von: Dennis Putnam [mailto:d...@bellsouth.net] > Gesendet: Montag, 18. Februar 2019 14:35 > An: user@ant.apache.org > Betr

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread Dennis Putnam
Hi Matt and Jan, Thanks to both of you as I am closer but I think I am still missing a piece. I am now getting a successful build but the resulting jar is not finding the classes in the external jars. When I run the jar I get this exception: Exception in thread "main" java.lang.NoClassDefFoun

Re: AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread Dennis Putnam
neric > includes="**.*.jar"/> > > Eclipse: > Ant: not used (I think this controlls the "export behaviour" for > inter-project dependencies) > > So combined (and tuned): > > > > > > > > > > &

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread Dennis Putnam
compiler-plugin >> 3.7.0 >> >> 1.7 >> 1.7 >> >> >> >> >> >> >> org.apache.httpcomponents >> httpclient >> 4.5.6

AW: Javac Run By Ant Script is Unable to Find External Jars

2019-02-18 Thread jhm
ort behaviour" for inter-project dependencies) So combined (and tuned): Jan > -Ursprüngliche Nachricht- > Von: Matt Bertolini [mailto:viper2...@gmail.com] > Gesendet: Sonntag, 17. Februar 2019 18:45 > An: Ant Users List > Betreff: Re: Javac

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-17 Thread Matt Bertolini
gt; commons-codec > 1.10 > > > commons-logging > commons-logging > 1.2 > > > > Presumably the maven libraries are found from the zipfilesets in the a

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-17 Thread Dennis Putnam
   commons-codec >     commons-codec >     1.10 >     >     >     commons-logging >     commons-logging >     1.2 >     >    > > Presumably the

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-14 Thread Dennis Putnam
Hi Dennis, > > On 13/02/19 11:56 PM, Dennis Putnam wrote: >> > > I don't see any classpath being passed to the javac task in your build > script. You should be passing a classpath containing your jars that are > required to compile the source. There's more than one

Re: Javac Run By Ant Script is Unable to Find External Jars

2019-02-14 Thread Jaikiran Pai
Hi Dennis, On 13/02/19 11:56 PM, Dennis Putnam wrote: > I don't see any classpath being passed to the javac task in your build script. You should be passing a classpath containing your jars that are required to compile the source. There's more than one way to do that. The javac ta

Javac Run By Ant Script is Unable to Find External Jars

2019-02-13 Thread Dennis Putnam
I had a working ant script until I made a number of source changes to my Java project via Eclipse and egit. I obviously somehow inadvertently changed something, somewhere, that is causing javac to not find libraries (perhaps pushed something via git that is not part of the source). There are some

RE: [DKIM:FAIL] Re: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument Files

2018-08-13 Thread Pietro Paolini
Thanks a lot. This fixes the problem :-) > -Original Message- > From: Jose M Urena [mailto:jose.ur...@verizon.com] > Sent: 07 August 2018 16:10 > To: Ant Users List > Subject: [DKIM:FAIL] Re: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument > Files > >

Re: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument Files

2018-08-07 Thread Jose M Urena
memorymaximumsize="@{maxHeap}"> > > > > value="com.querydsl.apt.hibernate.HibernateAnnotationProcessor"/> > > > > > >

RE: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument Files

2018-08-07 Thread Pietro Paolini
o: Ant Users List > Subject: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument Files > > the issue for classpath too long can be fixed by a different strategy using > a manifest's class-path with an empty jar file > > > > > > > > > > >

Re: [E] Javac: Command-Line Argument Files

2018-08-06 Thread Jose M Urena
> > > > > value="${pathjar.classpath}"/> >> > > > > > > > > > On Mon, Aug 6, 2018 at 3:28 AM Pietro Paolini < pietro.paol...@alfasystems.com> wrote: > It is heavily intertwined with corp

RE: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument Files

2018-08-06 Thread Pietro Paolini
: [DKIM:FAIL] Re: [E] Javac: Command-Line Argument Files > > the following suggestion I have learned for working with Jenkins jobs which > can have very long paths for the workspace > > 1. if you have permission on your computer/server to create windows shares > and to run from share

RE: [E] Javac: Command-Line Argument Files

2018-08-06 Thread Pietro Paolini
It is heavily intertwined with corporate stuff so I can't. it is a regular javac task whose class path is *huge* - the problem I reckon is that the command line parameters (which includes the Classpath) do not fit into the window's command line limit.

AW: [E] Javac: Command-Line Argument Files

2018-08-05 Thread jhm
Could you post your buildfile snippet and the build output? Jan > -Ursprüngliche Nachricht- > Von: Jose M Urena [mailto:jose.ur...@verizon.com] > Gesendet: Freitag, 3. August 2018 15:02 > An: Ant Users List > Betreff: Re: [E] Javac: Command-Line Argument Files >

Re: [E] Javac: Command-Line Argument Files

2018-08-03 Thread Jose M Urena
drive, remove it from windows shares popd net share /delete TEMPSHORTPATH :: confirm share was cleaned net use net share 2. if the issue is with commands under your c:\program files, like c:\program files\oracle\jdk180\bin\javac you can try using MKLINK to remove spaces and shorten the path mkdir

Javac: Command-Line Argument Files

2018-08-03 Thread Pietro Paolini
Hi all, I am a bit struggling with an build.xml file task, I haven't got too much experience with Ant but hopefully my question won't sound too silly. On a window machine I reach the Command line limit size and the compiler task fails as "the extension or file name is too long". I am wonderin

Re: How to add the argument --add-modules to javac and java?

2017-08-18 Thread Stefan Bodewig
On 2017-08-14, Erno Scheiber wrote: > In Java 9 not all packages are included in the graph of the packages. > Now, this is the case of the package java.corba. > The argument > --add-modules java.corba ... > must be added to javac, respectivelly java in a terminal. > How

How to add the argument --add-modules to javac and java?

2017-08-14 Thread Erno Scheiber
Hi, In Java 9 not all packages are included in the graph of the packages. Now, this is the case of the package java.corba. The argument --add-modules java.corba ... must be added to javac, respectivelly java in a terminal. How to do that within apache-ant? Best regards, Erno Scheiber <ht

Re: Java 9 and javac

2015-09-14 Thread Christopher BROWN
sotms/ -- Christopher On 14 September 2015 at 06:10, Stefan Bodewig wrote: > On 2015-09-13, Christopher BROWN wrote: > > > Java 9's new module system will add extra options for the "javac" > command. > > Are there any plans to provide support for this with Ant? > >

Re: Java 9 and javac

2015-09-13 Thread Stefan Bodewig
On 2015-09-13, Christopher BROWN wrote: > Java 9's new module system will add extra options for the "javac" command. > Are there any plans to provide support for this with Ant? So far I'm not aware of anybody working on it, but can't imagine we'd reject a c

RE: Java 9 and javac

2015-09-13 Thread Gary Gregory
Seems like an obvious update... to me at least ;-) Gary -Original Message- From: Christopher BROWN [mailto:br...@reflexe.fr] Sent: Sunday, September 13, 2015 14:00 To: user@ant.apache.org Subject: Java 9 and javac Hello, Java 9's new module system will add extra options for the &

Java 9 and javac

2015-09-13 Thread Christopher BROWN
Hello, Java 9's new module system will add extra options for the "javac" command. Are there any plans to provide support for this with Ant? Thanks, Christopher

RE: Need help with ANT javac classpath

2014-09-16 Thread Martin Gainty
> From: webservices_developm...@csx.com > To: user@ant.apache.org > Subject: RE: Need help with ANT javac classpath > Date: Tue, 16 Sep 2014 14:19:47 + > > �I think I may not have articulated my problem correctly MG>for 6 weeks this summer I was answering all que

RE: Need help with ANT javac classpath

2014-09-16 Thread WebServices Development
go back to 1.0 version in my javac step for the application. So, if I use the endorsed jvm property for a backward version, will it work and do I have copy just the jaxb-api.jar to that directory? The web-inf/lib contains jaxb-api.jar, jaxb-impl.jar, jaxb-xjc.jar and jaxb-libs.jar and some

RE: Need help with ANT javac classpath

2014-09-15 Thread Martin Gainty
> From: webservices_developm...@csx.com > To: user@ant.apache.org > Subject: RE: Need help with ANT javac classpath > Date: Mon, 15 Sep 2014 16:06:55 + > > Thanks. > > This is a common build script that we have, so I didn't add fork for the > javac task -

RE: Need help with ANT javac classpath

2014-09-15 Thread WebServices Development
Thanks. This is a common build script that we have, so I didn't add fork for the javac task - as it would affect other builds as well, that use the latest java version and follow the default build. If it is not possible at all to incorporate something in the common build, I will take a

Re: Need help with ANT javac classpath

2014-09-15 Thread Dominique Devienne
On Mon, Sep 15, 2014 at 5:15 PM, WebServices Development < webservices_developm...@csx.com> wrote: > P.S - I tried adding includejavaruntime="false" and > includeantruntime="false" attributes - both together as well as > individually - to the javac task - bu

Need help with ANT javac classpath

2014-09-15 Thread WebServices Development
I have an old application which is using JAXB version 1.0. When I pull in the projects in Eclipse, it compiles fine because it references the jaxb jars from my web-inf/lib. When I am defining an ANT javac task for it, I get compilation errors because the jaxb classes from rt.jar take

Ant - Pathelement with wildcard only works in Javac forked mode?

2014-08-27 Thread foolhunger
I encountered below issue when using Ant. My ANT script snippets: When set fork=”true” in javac task, the wildcard pathelement works fine, but when forked is set to false, Ant seems failed to interpret wildcard correctly. (compilation failed, due to classpath error). Any suggestions

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

2014-05-15 Thread WebServices Development
So, this is my task definition And this is what I get in the output [javac] Compiling 255 source files to C:\temp\build\XYZ\classes [javac] Since fork is false, ignoring memoryMaximumSize setting. [javac] error: error

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

2014-05-13 Thread WebServices Development
So, this is my task definition And this is what I get in the output [javac] Compiling 255 source files to C:\temp\build\XYZ\classes [javac] Since fork is false, ignoring memoryMaximumSize setting. [javac] error: error

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: Why is javac for unit tests working for me, but not someone else?

2013-02-15 Thread KARR, DAVID
> -Original Message- > From: KARR, DAVID > Sent: Friday, February 15, 2013 3:21 PM > To: Ant Users List > Subject: Why is javac for unit tests working for me, but not someone else? > > I implemented a target in a base build script for compiling and running unit &

Why is javac for unit tests working for me, but not someone else?

2013-02-15 Thread KARR, DAVID
I implemented a target in a base build script for compiling and running unit tests with cobertura. It's working fine in my environment. Someone I work with is trying to use it in their environment. As expected, it bombs completely in his environment. I'm trying to find some clues that tell m

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
Hi, yep, that's the behaviour how ant works. why do you think com.sun.tools.javac.Main in tools.jar is deprecated? It's still the standard java compiler and the class that you call, when you execute the javac application. Yes, there is a new API (and SPI) in javax.tools but it&

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
Yes, I have done it and I get the following error. I indicates something is happening in the Javac class in taskdefs. I would like to debug into ant code when running but do not know how to do it. Is it possible to put a breakpoint in ANT source when testing it from RAD / Eclipse? BUILD

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
I understand this won't answer your question, but why wouldn't you just build your classpath using the path element tag, and let ANT build the fully qualified list instead of using wildcards in the javac classpath? You can do what you want

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
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, your classpath element should be: Maury On 01/15/13 15:38, WebServices Development wrote: Sorry, there was a typo on javac call

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
you will find a javac key in .\org\apache\ant\taskdefs\default.propertiesjavac=org.apache.tools.ant.taskdefs.Javac defaults.properties is wholly contained within ant.jar inside $ANT_HOME\lib\ant.jar Martin __ Verzicht und Vertraulichkeitanmerkung

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

2013-01-15 Thread WebServices Development
Sorry, there was a typo on javac call classpath. It should have been JAVA_HOME=/opt/local/software/websphere/v7/java/bin export JAVA_HOME JDK_HOME=/opt/local/software/websphere/v7/java export JDK_HOME /opt/local/software/websphere/v7/java/bin/javac -verbose -d /home/ab/antcode/build/classes

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

2013-01-15 Thread WebServices Development
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 commandline javac call

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

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

2013-01-14 Thread WebServices Development
. So, the questions I have are - Which javac does ant use? Is it in the ANT code that doesn't process the wildcard classpath? - What role does JAVA_HOME play when using ANT? - How can I resolve the issue, so I can use ANT with wildcard classpath ? Than

Re: How can I pass -Xlint to javac ?

2011-09-12 Thread Beat Meier
hould have the compiler attribute that will signal when javac should look at the value/line -Original Message- From: walla...@gmail.com [mailto:walla...@gmail.com] Sent: Friday, September 09, 2011 8:21 PM To: Ant Users List Subject: Re: How can I pass -Xlint to javac ? Hello Try

RE: How can I pass -Xlint to javac ?

2011-09-11 Thread Urena, Jose M (Jose)
Xlint is only valid for newer compilers if you are concerned that code might be compiled with different JDK versions or from different vendors then compilerarg should have the compiler attribute that will signal when javac should look at the value/line -Original Message- From

Re: How can I pass -Xlint to javac ?

2011-09-09 Thread wallaceb
Hello Try using this --Original Message-- From: Beat Meier To: user@ant.apache.org ReplyTo: Ant Users List Subject: How can I pass -Xlint to javac ? Sent: Sep 9, 2011 7:48 PM Hello How can I give arguments to the sun java compiler? I want to use -Xlint with the javac but see no

How can I pass -Xlint to javac ?

2011-09-09 Thread Beat Meier
Hello How can I give arguments to the sun java compiler? I want to use -Xlint with the javac but see no option of javac ant task? Thanks Beat - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands

答复: 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

AW: AW: javac output when using ant?

2010-03-24 Thread Jan.Materne
I got another idea. Maybe you already have the javac output but thought it was some of Ant. If you output is prepare: [echo] preparation compile: [echo] compiling [javac] [echo] finished All javac's output is redirected to Ants logging and you'll see i

Re: AW: javac output when using ant?

2010-03-24 Thread David Weintraub
On Wed, Mar 24, 2010 at 10:26 AM, litarena wrote: > > Thanks for the suggestion, but -d isn't giving me the java compiler error. > ant's output advises: > > There was an error while running line 143 of build.xml see java compiler > output for details. Hmmm... I use Java and Ant, and I get the ful

Re: AW: javac output when using ant?

2010-03-24 Thread litarena
-- >> Von: litarena [mailto:patrick_macke...@msn.com] >> Gesendet: Mittwoch, 24. März 2010 15:06 >> An: user@ant.apache.org >> Betreff: javac output when using ant? >> >> >> I need more than ant -v -logfile mylogfile.txt >> >> What I need is t

AW: javac output when using ant?

2010-03-24 Thread Jan.Materne
have you tried -d? Jan > -Ursprüngliche Nachricht- > Von: litarena [mailto:patrick_macke...@msn.com] > Gesendet: Mittwoch, 24. März 2010 15:06 > An: user@ant.apache.org > Betreff: javac output when using ant? > > > I need more than ant -v -logfile mylogfile

javac output when using ant?

2010-03-24 Thread litarena
I need more than ant -v -logfile mylogfile.txt What I need is the output from javac itself, but via ant (later via ant, via eclipse) how do I get ant to give me the java compiler's output in a file? -- View this message in context: http://old.nabble.com/javac-output-when-usin

Re: AW: Passing a list of files to javac

2010-03-11 Thread Nan Null
or it's a bug. It's best to look into the source of javac task and see what are the error messages for. Then see if you can specify the correct syntax. Else, just modify the task source (it's open source right). Then submit the bug and the patch. On Thu, Mar 11, 2010 at 8:34 AM, M

Re: AW: Passing a list of files to javac

2010-03-11 Thread Matt Benson
AM, Robert Menteer wrote: That solves the minor problem of ; vs , but doesn't solve the real problem. The real problem is in getting javac to recognize a filelist/fileset/path. What I'm looking for is something to replace the filelist that javac will accept. On Mar 11, 2010, at 2:23 AM,

Re: AW: Passing a list of files to javac

2010-03-11 Thread Robert Menteer
That solves the minor problem of ; vs , but doesn't solve the real problem. The real problem is in getting javac to recognize a filelist/fileset/path. What I'm looking for is something to replace the filelist that javac will accept. On Mar 11, 2010, at 2:23 AM, jan.mate...@rzf.fin-nr

AW: Passing a list of files to javac

2010-03-10 Thread Jan.Materne
- <-- email is about this + <-- email is about this Jan >-Ursprüngliche Nachricht- >Von: Robert Menteer [mailto:reet...@me.com] >Gesendet: Mittwoch, 10. März 2010 21:28 >An: user@ant.apache.org >Betreff: Passing a list of files to javac > >H

Passing a list of files to javac

2010-03-10 Thread Robert Menteer
How can I get the javac task to use an existing fileset? In my build.xml I have created several filesets to be used in multiple places throughout build file. Here is how they have been defined: I have also

error details missing on javac failure - only stack trace shows

2010-02-28 Thread Lynne` Ready
some that overlap projects. The issue is manifesting in one of these "well-exercised", overlapping build files. When I run ant and the build fails on a javac task, the stack trace is output and instructs, "see the compiler output for details", but the error details are no

Re: Problem with javac target on Windows server

2010-02-10 Thread Pascal Quesseveur
>"RP" == Rez P writes: RP> You could always hard code RP> user.home=c:\docume~1\rest\of\the\path to avoid spaces On Windows server 2008 user's home is in C:\Users\... There is no reference to C:\Documents and Settings. I don't think the problem comes from spaces in a path. -- Pascal Ques

RE: Problem with javac target on Windows server

2010-02-10 Thread Rez P
You could always hard code user.home=c:\docume~1\rest\of\the\path to avoid spaces > From: quessev...@abaksystemes.fr > To: user@ant.apache.org > Subject: Re: Problem with javac target on Windows server > Date: Wed, 10 Feb 2010 17:37:19 +0100 > > >"SB" == Stefan

  1   2   3   4   5   6   >