Specifying java files encoding through javatools
*Hello.
*I'm trying to package Ejs (http://fem.um.es/Ejs/) and learn the process and tools to use on the way. *- I downloaded the source package, unzip and rename to ejs-4.3.4 *- I used jh_makepkg to build the debian files skeleton (with debian/rules like : '%: dh --with javahelper $@") *- I will have to adjust those files, for dependencies at least, and then invoke debian/rules build to get a .deb file (am i right ?) * *My blocking problem is I don't see where/how to specify source files are in ISO-8859-1 * *Also am I on the good path ? Is it better to use jh when possible (Ejs seems to be easy, plain java, no code generation, etc), or should I go for a ant or maven build file immediately (where encoding is easy to handle..) *Any help appreciated :-) -- Cédric |
Specifying java files encoding through javatools
On Tue Oct 04 16:38, Cédric Pineau wrote:
> I'm trying to package Ejs (http://fem.um.es/Ejs/) and learn the process and > tools to use on the way. > > - I downloaded the source package, unzip and rename to ejs-4.3.4 > - I used jh_makepkg to build the debian files skeleton (with debian/rules > like : '%: dh --with javahelper $@") > - I will have to adjust those files, for dependencies at least, and then > invoke debian/rules build to get a .deb file (am i right ?) well, dpkg-buildpackage is better than invoking debian/rules directly. You'll have to tweak several of the files under debian/, including certainly changelog, copyright and control, probably also including sommme install files. > My blocking problem is I don't see where/how to specify source files are in > ISO-8859-1 I thought Java files were always utf8? > Also am I on the good path ? Is it better to use jh when possible (Ejs > seems to be easy, plain java, no code generation, etc), or should I go for a > ant or maven build file immediately (where encoding is easy to handle..) Well, it should be easy to do with jh_build, but there's nothing stopping you writing a build.xml for ant - dh7 should pick that up automatically too. Regardless, you should use the rest of javahelper. Matt |
Specifying java files encoding through javatools
Le 5 octobre 2011 01:56, Matthew Johnson <mjj29@debian.org> a écrit :
well, dpkg-buildpackage is better than invoking debian/rules directly. *Ok * > *My blocking problem is I don't see where/how to specify source files are in > ISO-8859-1 I thought Java files were always utf8? *Class files/java internals are UTF-8, but source files are not necessarily. -- Cédric |
Specifying java files encoding through javatools
On Wed Oct 05 05:30, Cédric Pineau wrote:
> > > > > My blocking problem is I don't see where/how to specify source files are > > in > > > ISO-8859-1 > > > > I thought Java files were always utf8? > > > > Class files/java internals are UTF-8, but source files are not > necessarily. override_jh_build: jh_build -o"-encoding ISO-8859-1" should do it, you can specify arbitrary extra options to javac this way. Matt |
Specifying java files encoding through javatools
Le 5 octobre 2011 10:50, Matthew Johnson <mjj29@debian.org> a écrit :
override_jh_build: * * * *jh_build -o"-encoding ISO-8859-1" should do it, you can specify arbitrary extra options to javac this way. *It works, thank you :-) ! -- Cédric |
| All times are GMT. The time now is 03:29 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.