0

私は ANT を使用して、アプレットを使用するプロジェクト用の war ファイルを作成しています。プロジェクト ディレクトリにキーストア ファイルを作成しましたが、C:\Users にある .keystore ファイルのシステム チェックのビルド時に、プロジェクト ディレクトリでキーストア ファイルを検索するにはどうすればよいですか?

コマンド プロンプトで ANT を使用してプロジェクトをビルドすると、次のエラーが発生します。

D:\Gopakumar\Score>ant

Buildfile: build.xml

prepare:

cleartomcat:

 clear-remote:
     [delete] Deleting directory D:\Gopakumar\Score Remote API\build\classpath

incremental-remote:
       [echo] BUILDING REMOTE API
       [mkdir] Created dir: D:\Gopakumar\Score Remote API\build\classpath
       [javac] Compiling 52 source files to D:\Gopakumar\PBL ScoreCard Remote API\build\classpath
       [javac] Note: Some input files use unchecked or unsafe operations.
       [javac] Note: Recompile with -Xlint:unchecked for details.

clean-remote:

clear-pc:
     [delete] Deleting directory D:\Gopakumar\Score Performance Chart Applet\build\classpath
     [delete] Deleting directory D:\Gopakumar\Score Performance Chart Applet\dist

incremental-pc:
     [echo] BUILDING PERFORMANCE CHART APPLET
     [mkdir] Created dir: D:\Gopakumar\Score Performance Chart Applet\build\classpath
     [copy] Copying 57 files to D:\Gopakumar\Score Performance Chart Applet\build\classpath

    [javac] Compiling 37 source files to D:\Gopakumar\Score Performance Chart Applet\build\classpath

[javac] Note: Some input files use unchecked or unsafe operations.

[javac] Note: Recompile with -Xlint:unchecked for details.

[copy] Copying 35 files to D:\Gopakumar\Score Performance Chart App
 let\build\classpath

[unzip] Expanding: D:\Gopakumar\Score Performance Chart Applet\lib\hessian-3.0.13.jar into D:\Gopakumar\Score Performance Chart Applet\build\classpath
 [unzip] Expanding: D:\Gopakumar\Score Performance Chart Applet\lib\composite-1.0.jar into D:\Gopakumar\Score Performance Chart Applet\build\classpath

[unzip] Expanding: D:\Gopakumar\Score Performance Chart Applet\lib\morph-1.0.jar into D:\Gopakumar\Score Performance Chart Applet\build\classpath

[unzip] Expanding: D:\Gopakumar\Score Performance Chart Applet\lib\commons-logging-api.jar into D:\Gopakumar\Score Performance Chart Applet\build\classpath

[unzip] Expanding: D:\Gopakumar\Score Performance Chart Applet\lib\jgraph.jar into D:\Gopakumar\Score Performance Chart Applet\build\classpath 
[mkdir] Created dir: D:\Gopakumar\Score Performance Chart Applet\dist

[jar] Building jar: D:\Gopakumar\PBL ScoreCard Performance Chart Applet\dist\performancechartedit.jar

[signjar] Signing JAR: D:\Gopakumar\Score Performance Chart Applet\dist\performancechartedit.jar to D:\Gopakumar\Score Performance Chart Applet\dist\performancechartedit.jar as csi
[signjar] jarsigner error: java.lang.RuntimeException: keystore load: C:\Users\bimal\.keystore (The system cannot find the file specified)

[signjar] Enter Passphrase for keystore:

BUILD FAILED

D:\Gopakumar\Score\build.xml:556: The following error occurred while executing this line:

D:\Gopakumar\Score\build.xml:147: jarsigner returned: 1

システムは「C:\Users\bimal.keystore」で .keystore ファイルをチェックしますが、実際にはファイルは「D:\Gopakumar\PBL ScoreCard」にあります。システムが "D:\Gopakumar\PBL ScoreCard" で .keystore ファイルを検索するようにパスを変更するにはどうすればよいですか?

前もって感謝します..

4

1 に答える 1

0

signjar ant タスクのドキュメントを見ると、キーストアの場所を指定するために使用できる「キーストア」属性があるようです。

于 2013-05-07T04:06:08.153 に答える