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/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la 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 +0000 > > 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 -classpath > /home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/WebContent/WEB-INF/lib/*:/home/ab/antcode/build/classes:/opt/local/software/websphere/v7/lib/*:/opt/local/software/websphere/v7/plugins/*: > -sourcepath /home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/src -target > 1.6 -g:none -source 1.6 > /home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/src/com/xxx/xxxStarter/event/*.java > > /home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/src/com/xxx/xxxStarter/vo/*.java > > commandline.log 2>&1 > > > Command line > -classpath > /home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/WebContent/WEB-INF/lib/*:/home/ab/antcode/build/classes:/opt/local/software/websphere/v7/lib/*:/opt/local/software/websphere/v7/plugins/*: > > > Ant > > <classpath > path="/home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/WebContent/WEB-INF/lib/*;/opt/local/software/websphere/v7/lib/*;/opt/local/software/websphere/v7/plugins/*"/> > > > > _____________________________________________ > 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" 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 commandline javac call > > > <!-- Compile Classes --> > <target name="compile" depends="init, prepare" description="Compile > the classes"> > <property name="myclasspath" refid="test.classpath"/> > <echo message="myclasspath= ${myclasspath}"/> > <javac srcdir="${src.paths}" > failonerror="true" > includeantruntime="false" > destdir="${build.dir}/classes" > debug="${javac.debug}" > debuglevel="${javac.debuglevel}" > verbose="true" > memoryMaximumSize="${javac.memoryMaximumSize}" > fork="yes" > > executable="/opt/local/software/websphere/v7/java/bin/javac" > source="1.6" > target="1.6"> > <classpath > path="/home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/WebContent/WEB-INF/lib/*;/opt/local/software/websphere/v7/lib/*;/opt/local/software/websphere/v7/plugins/*"/> > </javac> > </target> > > > Commandline javac call > 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 -classpath > /home/ab/antcode/RAD8ProjectsWAS7Server/CSXStarterWeb/WebContent/WEB-INF/lib/*:/home/ab/antcode/build/classes:/opt/local/software/websphere/v7/lib/*:/opt/local/software/websphere/v7/plugins/*: > -sourcepath /home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/src -target > 1.6 -g:none -source 1.6 > /home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/src/com/xxx/xxxStarter/event/*.java > > /home/ab/antcode/RAD8ProjectsWAS7Server/StarterWeb/src/com/xxx/xxxStarter/vo/*.java > > commandline.log 2>&1 > > > Thanks for any help you can provide. > > -----Original 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 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 Development wrote: > > 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 > > in both cases. > > > > In the command line execution, it expands the wildcard classpath that is > > introduced in JDK 6. > > > > In ANT execution, it does not expand the list, so the compile fails. > > > > From what I have read, ANT is supposed to support wildcard classpaths with > > version 1.8.2 and I am on version 1.8.4. > > > > 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 ? > > > > > > Thank you > > > > > > > > > > > > > > ----------------------------------------- > > This email transmission and any accompanying attachments may contain > > CSX privileged and confidential information intended only for the use > > of the intended addressee. Any dissemination, distribution, copying > > or action taken in reliance on the contents of this email by anyone > > other than the intended recipient is strictly prohibited. If you have > > received this email in error please immediately delete it and notify > > sender at the above CSX email address. Sender and CSX accept no > > liability for any damage caused directly or indirectly by receipt of > > this email. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > user-unsubscr...@ant.apache.org<mailto:user-unsubscr...@ant.apache.org> For > > additional > > commands, e-mail: user-h...@ant.apache.org<mailto:user-h...@ant.apache.org> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscr...@ant.apache.org<mailto:user-unsubscr...@ant.apache.org> For > additional commands, e-mail: > user-h...@ant.apache.org<mailto:user-h...@ant.apache.org> > >