Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ant: trycatch unmöglich

Empfohlene Antworten

ich möchte in einem Ant Script einen Try - Catch block benutzen, geht aber nicht, bei meinem Target:

<target name="egal"

<trycatch>

<try> machwas das Fehlererzeugt </try>

<catch> STOP </catch>

</trycatch>

</target>

kommt in Zeile 2 der Fehler:

failed to create task or type trycatch

Cause: The name is undefined.

Action: Check the spelling.

Action: Check that any custom tasks/types have been declarated.

Action: check that any <presentdef>/<macrodef> declarations have taken place.

hat jemand ne idee? ich habe neuste ant und neuste jdk version.

danke schonmal

Hast du denn denn <trycatch> Task in deiner build.xml bekannt gemacht? Hast du überhaut die Ant-Contrib Tasks eingebunden? Nutzt du überhaupt Ant-Contrib oder doch was anderes?

Wie du siehst Fragen über Fragen ein paar mehr Informationen wären hier deutlich hilfreicher.

nein habe ganz normale ant grund-version laufen, nur die jre 1.71

habe mir schon sagen lassen, dass try catch da gar nicht mit drinne ist, und man mehr dazu installieren muß, damit man try catch nutzen kann... das werd ich jetzt probieren :) danke schonmal

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.