You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Raghuveer <ra...@infotechsw.com> on 2008/06/18 13:17:32 UTC

javac -encoding

Is there option compiling all my source files in my web application in
"tomcat\webapps\testApp" with "-encoding "option in ant.

 

Example:

.          javac -encoding ISO-8859-2 HelloWorld.java

.          javac -encoding ISO-8859-2 *.java

 

 

 

<property name="sourcedir" value="${basedir}/WEB-INF/src"/>

<property name="targetdir" value="${basedir}/WEB-INF/classes"/>

<javac srcdir="${sourcedir}"

             destdir="${targetdir}"

             classpathref="libraries"/>


Re: javac -encoding

Posted by "Scot P. Floess" <fl...@mindspring.com>.
The <javac> task does have an encoding attribute: 
http://ant.apache.org/manual/CoreTasks/javac.html

"encoding  	Encoding of source files. (Note: gcj doesn't support this 
option yet.)"

Its in the online docs ;)




On Wed, 18 Jun 2008, Raghuveer wrote:

> Is there option compiling all my source files in my web application in
> "tomcat\webapps\testApp" with "-encoding "option in ant.
>
>
>
> Example:
>
> .          javac -encoding ISO-8859-2 HelloWorld.java
>
> .          javac -encoding ISO-8859-2 *.java
>
>
>
>
>
>
>
> <property name="sourcedir" value="${basedir}/WEB-INF/src"/>
>
> <property name="targetdir" value="${basedir}/WEB-INF/classes"/>
>
> <javac srcdir="${sourcedir}"
>
>             destdir="${targetdir}"
>
>             classpathref="libraries"/>
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: javac -encoding

Posted by Prashant Reddy <pr...@pramati.com>.
Yes 'encoding' option exists in javac task.

http://ant.apache.org/manual/CoreTasks/javac.html

Raghuveer wrote:
> Is there option compiling all my source files in my web application in
> "tomcat\webapps\testApp" with "-encoding "option in ant.
>
>  
>
> Example:
>
> .          javac -encoding ISO-8859-2 HelloWorld.java
>
> .          javac -encoding ISO-8859-2 *.java
>
>  
>
>  
>
>  
>
> <property name="sourcedir" value="${basedir}/WEB-INF/src"/>
>
> <property name="targetdir" value="${basedir}/WEB-INF/classes"/>
>
> <javac srcdir="${sourcedir}"
>
>              destdir="${targetdir}"
>
>              classpathref="libraries"/>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org