Hello,
I am using the following snippet:
<javac deprecation="${deprecation}"
debug="${debug}" debuglevel="${debuglevel}">
<compilerarg compiler="gij"/>
</javac>
Can you try something like this:
<javac deprecation="${deprecation}"
debug="${debug}" debuglevel="${debuglevel}">
<compilerarg line="-Xlint="unchecked""/>
</javac>
Also an expert from <javac> tash docs[1]:
You can specify additional command line arguments for
the compiler with nested <compilerarg> elements.
These elements are specified like Command-line
Arguments...
Command-line Arguments docs is at [2]
[1]http://ant.apache.org/manual/CoreTasks/javac.html
[2]http://ant.apache.org/manual/using.html#arg
--- "W.E.Taylor" <[EMAIL PROTECTED]> wrote:
> I have no problem running this on the javac cmd
> format outside of ant.
>
> Sorry but I cannot seem to find out where I set a
> java compiler option.
> I just need to add *Xlint=unchecked*. Have tried;
> just adding this:
>
> <compilerarg >
> -Xlint="unchecked"
> </compilerarg>
>
> What is this he correct format or do I have to nest
> it with in this:
>
> <javac srcdir="${src}"
> destdir="classes" >
> </javac>
>
> Here is my build file:
>
> </target>
> <target name="compile" depends="init"
> description="compile the source " >
> <!-- Compile the java code from ${src} into
> ${build} -->
> <!-- -Xlint:unchecked -->
>
> <javac srcdir="${src}"
> destdir="classes" >
> </javac>
> <copy
> todir="classes/org/weconsultants/jmanager/images">
> <fileset dir="${src}">
> <include name="*.gif"/>
> <include name="*.png"/>
> </fileset>
> </copy>
> </target>
>
> <target name="dist" depends="compile"
> description="generate the distribution" >
> <!-- Create the distribution directory -->
> <mkdir dir="${dist}/lib"/>
>
> <!-- Put everything in ${build} into the
> JHackerManager.jar file -->
> <!-- <jar jarfile="${dist}/lib/JManager.jar"
>
> basedir="${build}"/> -->
> <jar jarfile="${dist}/lib/JManager.jar"
> basedir="classes"/>
> </target>
>
> <target name="clean"
> description="clean up" >
> <!-- Delete the ${build} and ${dist} directory
> trees -->
> <delete dir="${build}"/>
> <delete dir="${dist}"/>
> </target>
> </project>
> --
>
>
> Thanks in Advance...
> IchBin
>
__________________________________________________________________________
>
> 'The meeting of two personalities is like the
> contact of two chemical
> substances: if there is any reaction, both are
> transformed.'
> - Carl Gustav Jung, (1875-1961), psychiatrist and
> psychologist
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]