javac -encoding

View: New views
3 Messages — Rating Filter:   Alert me  

javac -encoding

by raghuveerv :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

by Prashant Reddy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: user-help@...


Re: javac -encoding

by Scot P. Floess :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: user-help@...

LightInTheBox - Buy quality products at wholesale price