Descargar
Desarrollar
Cuenta
Descargar
Desarrollar
Entrar
Forgot Account/Password
Crear Cuenta
Idioma
Ayuda
Idioma
Ayuda
×
Entrar
Nombre de usuario
Contraseña
×
Forgot Account/Password
Translation Status of Español
Categoría:
Software
Gente
PersonalForge
Magazine
Wiki
Buscar
OSDN
>
Buscar Software
>
Software Development
>
Amateras
>
Ticket List/Search
>
Incidencia #10944
Amateras
Descripción
Project Summary
Developer Dashboard
Página Web
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
Historial
Descargas
List of Releases
Stats
Código Fuente
Code Repository list
Subversion
Ver Repositorio
CVS
Ver Repositorio
Incidencia
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Documents
FrontPage
Title index
Recent changes
Communication
Foros
List of Forums
English (1295)
Japanese (319)
Mailing Lists
list of ML
Noticias
Incidencia #10944
Ticket List
Submit New Ticket
RSS
[SC] ant内で2回以上呼び出すと出力がでない
Abrir Fecha:
2007-09-07 17:01
Última actualización:
2008-02-26 16:40
monitor
ON
OFF
Informador:
minoue
Propietario:
takezoe
Tipo:
Bugs
Estado:
Cerrado
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
Ninguno
Details
ソースの分類毎にカウントをとる為にantに何度かの タスク
stepcounter を書いたところ二つ目以降のカウント結果が表
示されなかった。
調べてみたところ。
クラス tk.stepcounter.Main の 55行目
output.close();
で標準出力が閉じられるため二つ目以降のカウント結果が出
力されないようでした。
ant以外での利用でどうなるかまでは調べていないので
とりあえず StepCounterTask で
new PrintStream(new ByteArrayOutputStream())
を与える方法で回避してみました。
if(output!=null && !output.equals("")){
main.setOutput(new PrintStream(new
FileOutputStream(new File(output))));
} else {
main.setOutput(new PrintStream(ba = new
ByteArrayOutputStream()));
}
System.out.println(files.size() + "ファイル");
main.executeCount();
if(output!=null && !output.equals("")){
System.out.println(new
File(output).getAbsolutePath() + "にカウント結果を出力
しました。");
} else {
System.out.println(ba.toString());
}
Ticket History (3/3 Histories)
2007-10-28 22:43
Updated by:
takezoe
Comentario
Logged In: YES
user_id=5449
遅くなりましたがCVSに修正をコミットしました。次のバージョン
からは修正されます。
2007-10-28 22:43
Updated by:
takezoe
Resolución
Update from
Ninguno
to
Fixed
2008-02-26 16:40
Updated by:
takezoe
Ticket Close date
is changed to
2008-02-26 16:40
Estado
Update from
Open
to
Cerrado
Attachment File List (
0
)
Attachment File List
No attachments
Editar
Please login to add comment to this ticket »
Entrar
stepcounter を書いたところ二つ目以降のカウント結果が表
示されなかった。
調べてみたところ。
クラス tk.stepcounter.Main の 55行目
output.close();
で標準出力が閉じられるため二つ目以降のカウント結果が出
力されないようでした。
ant以外での利用でどうなるかまでは調べていないので
とりあえず StepCounterTask で
new PrintStream(new ByteArrayOutputStream())
を与える方法で回避してみました。
if(output!=null && !output.equals("")){
main.setOutput(new PrintStream(new
FileOutputStream(new File(output))));
} else {
main.setOutput(new PrintStream(ba = new
ByteArrayOutputStream()));
}
System.out.println(files.size() + "ファイル");
main.executeCount();
if(output!=null && !output.equals("")){
System.out.println(new
File(output).getAbsolutePath() + "にカウント結果を出力
しました。");
} else {
System.out.println(ba.toString());
}