Textbearbeitung mit Ant

Mit folgendem Tag werden innerhalb der JNLP-Datei die Werte für “codebase” und “main-class” ausgetauscht.

<replace dir="C:/Entwicklung/Projekt/dist">
   <include name="launch.jnlp"/>
   <replacefilter token=‘codebase="file:/C:/Entwicklung/Projekt/dist/"’ value=‘codebase="http://domain.de/p/"’/>
   <replacefilter token=‘main-class="bob.pokolm.Main"’ value=‘main-class="bob.pokolm.MainTwo"’/>
</replace>

Tags:

Hinterlasse eine Antwort