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>
This entry was posted in Java, Skripte and tagged . Bookmark the permalink.

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>