Как я устанавливаю-Dfile.encoding в рамках build.xml муравья?

HTML CSS , :

div.mydiv {width: 200px; margin: 0 auto}
<div class="mydiv">
    
    I am in the middle
    
</div>

Ваша схема показывает элемент блочного уровня также (который отделение обычно), не встроенный.

Из вершины моей головы, min-width поддерживается в FF2 +/Safari3 +/IE7 +. Может быть сделан для IE6 с помощью hackety CSS или простой бит JS.

47
задан skaffman 27 August 2009 в 07:27
поделиться

3 ответа

A few options:

  1. add -Dfile.encoding=iso-8859-1 to your ANT_OPTS environment variable
  2. use to setup defaults for all of your invocations
34
ответ дан 26 November 2019 в 19:28
поделиться

If you've got files encoded in a particular way, it's probably best to tell javac that rather than forcing the whole JVM to use a particular encoding. The javac task has an encoding attribute for this reason.

<javac srcdir="${src.dir}" destdir="${build.classes.dir}" encoding="iso-8859-1" />

But really, you should just convert the source files to UTF-8. Everything tastes better in UTF-8. :)

71
ответ дан 26 November 2019 в 19:28
поделиться

Ant itself cannot set system properties, but if you really want to, you can write a java program which sets the system property, and execute that from within Ant.

1
ответ дан 26 November 2019 в 19:28
поделиться
Другие вопросы по тегам:

Похожие вопросы: