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 - Library hinzufügen

Empfohlene Antworten

Veröffentlicht

Hi,

bei uns wurde das Code-Coverage-Tool Cobertura eingeführt, welches über ANT Tasks "bedient" wird.

Jetzt hab ich aber von ANT nicht die größte Ahnung...

ich hab mal was versucht


<project name="cobertura" default="init">


    <property name="cobertura.dir" value="C:/Programme/Cobertura" />


    <path id="cobertura.classpath">

        <fileset dir="${cobertura.dir}">

            <include name="cobertura.jar"/>

            <include name="lib/**/*.jar"/>

        </fileset>

    </path>


        <taskdef name="cobertura-instrument" classname="net.sourceforge.cobertura.ant.InstrumentTask"/>


	<target name="cobertura.init">

		<mkdir dir="bla/bla2" />

	</target>    


        <target name="cobertura.clean">

		<delete dir="bla" /> 

	</target>    


</project>

die Targets sind natürlich noch mist, dafür gibts aber schon Probleme:

Ich möchte in einem Target die Klasse "InstrumentTask" verwenden.

Fehler:

taskdef class net.sourceforge.cobertura.ant.InstrumentTask cannot be found.

Was mache ich falsch beim einbinden der JAR "cobertura"?

(sie liegt unter "C:\Programme\Cobertura\cobertura-1.9-bin\cobertura-1.9")

hab die JAR mal entpackt, die .class liegt da, wo sie soll?!? ;

net/sourceforge/cobertura/ant/InstrumentTask.class

Du musst dem taskdef noch sagen, in welchem path er den InstrumentTask findet:


<taskdef name="cobertura-instrument" 

classname="net.sourceforge.cobertura.ant.InstrumentTask" 

classpathref="cobertura.classpath"/>

jo, danke. hat gepklappt, der Build wird jetzt erfolgreich beendet.

dann werd ich mal weitertüfteln :cool:

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.