2016-04-06 11 views
0

私はinstall4j 6.0.4を使用しており、1つのWARファイルの内容を更新する必要があります。 this answerにに関しては、私は、「インストール」画面の一部として、次のアクションに構成:install4j 6.0.4 - ZIPファイルを作成できません

  1. ExtractZipFileActionを - 期待通りに動作しますが、
  2. 正しくModifyTextFileActionを解凍した - 予想通り、ファイルの内容が
  3. CreateZipFileActionを変更された作品 - なし新しいWARファイルが作成され、次のアクションが

を失敗した。しかし、すべての3つのアクションがログファイルに成功したとしてマークされている:

[INFO] com.install4j.runtime.beans.actions.files.ExtractZipFileAction [ID 13956]: Execute action 
     Property mode: 666 
     Property dirMode: 777 
     Property zipFile: myApplication.war 
     Property showProgress: false 
     Property fileFilter: null 
     Property destinationDirectory: temp_war 
     Property rollbackSupported: true 
     Execute action successful after 30363 ms 
[INFO] com.install4j.runtime.beans.actions.text.ModifyTextFileAction [ID 12713]: Execute action 
     Property searchValue: mySomething1 
     Property logReplacement: true 
     Property replaceValue: mySomething2 
     Property encoding: null 
     Property escapeForPropertyFile: false 
     Property failIfNoReplacement: true 
     Property files: [temp_war\myFile.txt] 
     Property rollbackSupported: true 
     Backing up C:\Program Files\MyApplication\temp_war\myFile.txt 
     Execute action successful after 16 ms 
[INFO] com.install4j.runtime.beans.actions.files.CreateZipFileAction [ID 13957]: Execute action 
     Property zipFile: myApplication-new.war 
     Property recursive: true 
     Property addTopLevelDirectoriesToRelativePath: true 
     Property showFileNames: true 
     Property showProgress: true 
     Property files: [temp_war, myAnotherFile.txt] 
     Property fileFilter: null 
     Property directoryFilter: null 
     Property rollbackSupported: true 
     Execute action successful after 16721 ms 
[INFO] com.install4j.runtime.beans.screens.InstallationScreen [ID 8]: Rollback barrier reached 
     command: move 1 screens, executing actions, checking condition 
[INFO] com.install4j.runtime.beans.actions.files.MoveFileAction [ID 5318]: Execute action 
    Property shared: false 
    Property destinationFile: myDestinationFolder 
    Property mode: 644 
    Property uninstallMode: Always 
    Property overwriteMode: Always 
    Property directoryMode: 755 
    Property triggerReboot: false 
    Property recursive: true 
    Property delay: false 
    Property showProgress: true 
    Property showFileNames: false 
    Property directoryFilter: null 
    Property files: [myApplication-new.war] 
    Property fileFilter: null 
    Property rollbackSupported: true 
    The file "C:\Program Files\MyApplication\myApplication-new.war" does not exist 
[ERROR] com.install4j.runtime.beans.actions.files.MoveFileAction [ID 5318]: Execute action not successful after 0 ms 

また、既存のWARファイルを更新できません。私はCreateZipFileActionの 'zipFile'プロパティで指定しましたが、このアクションは再び成功とマークされましたが、WARファイルは更新されませんでした。

答えて

1

「ZIPファイルの変更」アクションがあるinstall4j 6.1にアップデートすることをお勧めします。

+0

はい、私はあなたに同意します。「ZIPファイルを変更する」は簡単になります。しかし、私はいくつかのソリューション/回避策をお勧めしますバージョン6.0.4。特にこのバージョンのみのライセンスがある場合。 –

+1

6.0のライセンスキーは、6.1と同様に動作します。 –

+0

[バージョン6.1には多くの変更が含まれています](https://www.ej-technologies.com/download/install4j/changelog.html#6.1)、現在のバージョン6.0.4は安定しているようです適切なファイルをZIPアーカイブに圧縮するために実装された静的Java関数を回避する方法がありました。とにかく、あなたの助けにIngoに感謝! –

関連する問題