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
>
Foros
>
Japanese
>
StepCounter3.0.0の-showDirectoryオプション
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
Foros:
Japanese
(Thread #31570)
Return to Thread list
RSS
StepCounter3.0.0の-showDirectoryオプション (2012-02-18 15:13 by
nabedge
#62278)
Responder
ども。StepCounter3.0.0の-showDirectoryオプションがうまく効かないようなのですが、
コマンドオプションの指定の仕方が違うのでしょうか?
$ find ./ -type f
./src/com/example/HelloWorld.java
./stepcounter-3.0.0-jar-with-dependencies.jar
$ java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode)
$ java -cp stepcounter-3.0.0-jar-with-dependencies.jar jp.sf.amateras.stepcounter.Main src
ファイル 種類 カテゴリ 実行 空行 コメント 合計
-------------------------------------------------------------------------------------
HelloWorld.java Java 8 2 0 10
-------------------------------------------------------------------------------------
合計 8 2 0 10
$ java -cp stepcounter-3.0.0-jar-with-dependencies.jar jp.sf.amateras.stepcounter.Main -showDirectory src
ファイル 種類 カテゴリ 実行 空行 コメント 合計
-------------------------------------------------------------------------------------
-showDirectory 未対応
HelloWorld.java Java 8 2 0 10
-------------------------------------------------------------------------------------
合計 8 2 0 10
Responder al #62278
×
Sujeto
Body
Reply To Message #62278 > ども。StepCounter3.0.0の-showDirectoryオプションがうまく効かないようなのですが、 > コマンドオプションの指定の仕方が違うのでしょうか? > > $ find ./ -type f > ./src/com/example/HelloWorld.java > ./stepcounter-3.0.0-jar-with-dependencies.jar > > $ java -version > java version "1.6.0_25" > Java(TM) SE Runtime Environment (build 1.6.0_25-b06) > Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode) > > $ java -cp stepcounter-3.0.0-jar-with-dependencies.jar jp.sf.amateras.stepcounter.Main src > > ファイル 種類 カテゴリ 実行 空行 コメント 合計 > ------------------------------------------------------------------------------------- > HelloWorld.java Java 8 2 0 10 > ------------------------------------------------------------------------------------- > 合計 8 2 0 10 > > $ java -cp stepcounter-3.0.0-jar-with-dependencies.jar jp.sf.amateras.stepcounter.Main -showDirectory src > > ファイル 種類 カテゴリ 実行 空行 コメント 合計 > ------------------------------------------------------------------------------------- > -showDirectory 未対応 > HelloWorld.java Java 8 2 0 10 > ------------------------------------------------------------------------------------- > 合計 8 2 0 10 >
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Entrar
Nickname
Vista previa
Post
Cancelar
RE: StepCounter3.0.0の-showDirectoryオプション (2012-02-18 15:34 by
takezoe
#62279)
Responder
-showDirectory=true のように =true を付けて指定してください。
Responder al
#62278
Responder al #62279
×
Sujeto
Body
Reply To Message #62279 > -showDirectory=true のように =true を付けて指定してください。
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Entrar
Nickname
Vista previa
Post
Cancelar
RE: StepCounter3.0.0の-showDirectoryオプション (2012-02-18 17:18 by
nabedge
#62283)
Responder
ありがとうございます!動きました。
が、今度はAntタスクではshowDirectoryオプションが動かないようです。こっちは仕様でしょうか?
<?xml version="1.0" ?>
<project default="count" basedir=".">
<taskdef
name="stepcounter"
classname="jp.sf.amateras.stepcounter.ant.StepCounterTask"
classpath="lib/stepcounter-3.0.0-jar-with-dependencies.jar" />
<target name="count">
<stepcounter
showDirectory="true"
format="csv"
output="count.txt"
encoding="UTF-8">
<fileset dir="src">
<include name="**/*.java" />
</fileset>
</stepcounter>
</target>
</project>
結果:
BUILD FAILED
C:\workspace\zzz-ant\build.xml:15: stepcounter doesn't support the "showDirectory" attribute
Responder al
#62278
Responder al #62283
×
Sujeto
Body
Reply To Message #62283 > ありがとうございます!動きました。 > > が、今度はAntタスクではshowDirectoryオプションが動かないようです。こっちは仕様でしょうか? > > <?xml version="1.0" ?> > <project default="count" basedir="."> > <taskdef > name="stepcounter" > classname="jp.sf.amateras.stepcounter.ant.StepCounterTask" > classpath="lib/stepcounter-3.0.0-jar-with-dependencies.jar" /> > > <target name="count"> > <stepcounter > showDirectory="true" > format="csv" > output="count.txt" > encoding="UTF-8"> > <fileset dir="src"> > <include name="**/*.java" /> > </fileset> > </stepcounter> > </target> > </project> > > 結果: > > BUILD FAILED > C:\workspace\zzz-ant\build.xml:15: stepcounter doesn't support the "showDirectory" attribute
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Entrar
Nickname
Vista previa
Post
Cancelar
RE: StepCounter3.0.0の-showDirectoryオプション (2012-02-19 00:06 by
takezoe
#62290)
Responder
多分こんな感じです。-showDirectoryオプションの指定方法とあわせてREADMEに書いておきます。
<stepcounter format="excel" output="count.xls" encoding="UTF-8">
<src="src" />
</stepcounter>
Responder al
#62283
Responder al #62290
×
Sujeto
Body
Reply To Message #62290 > 多分こんな感じです。-showDirectoryオプションの指定方法とあわせてREADMEに書いておきます。 > > <stepcounter format="excel" output="count.xls" encoding="UTF-8"> > <src="src" /> > </stepcounter>
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Entrar
Nickname
Vista previa
Post
Cancelar
RE: StepCounter3.0.0の-showDirectoryオプション (2012-02-19 11:50 by
nabedge
#62307)
Responder
ありがとうございます。最終的にはこんな感じでうごきました!
<project default="count" basedir=".">
<taskdef
name="stepcounter"
classname="jp.sf.amateras.stepcounter.ant.StepCounterTask"
classpath="lib/stepcounter-3.0.0-jar-with-dependencies.jar" />
<target name="count">
<stepcounter
format="csv"
encoding="UTF-8">
<src path="src"/>
</stepcounter>
</target>
</project>
結果:
Buildfile: C:\workspace\zzz\build.xml
count:
[stepcounter] 1起点ディレクトリ
[stepcounter] /src/com/example/zzz/App.java,Java,,8,1,4,13
[stepcounter] /src/com/example/zzz/App2.java,Java,,8,1,4,13
[stepcounter] /src/com/example/zzz/foo/App.java,Java,,7,3,8,18
BUILD SUCCESSFUL
Total time: 347 milliseconds
Responder al
#62290
Responder al #62307
×
Sujeto
Body
Reply To Message #62307 > ありがとうございます。最終的にはこんな感じでうごきました! > > <project default="count" basedir="."> > <taskdef > name="stepcounter" > classname="jp.sf.amateras.stepcounter.ant.StepCounterTask" > classpath="lib/stepcounter-3.0.0-jar-with-dependencies.jar" /> > <target name="count"> > <stepcounter > format="csv" > encoding="UTF-8"> > <src path="src"/> > </stepcounter> > </target> > </project> > > 結果: > Buildfile: C:\workspace\zzz\build.xml > count: > [stepcounter] 1起点ディレクトリ > [stepcounter] /src/com/example/zzz/App.java,Java,,8,1,4,13 > [stepcounter] /src/com/example/zzz/App2.java,Java,,8,1,4,13 > [stepcounter] /src/com/example/zzz/foo/App.java,Java,,7,3,8,18 > BUILD SUCCESSFUL > Total time: 347 milliseconds
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Entrar
Nickname
Vista previa
Post
Cancelar