]> source.dussan.org Git - aspectj.git/commitdiff
demonstrating inpath and fork/forkclasspath
authorwisberg <wisberg>
Fri, 9 Jan 2004 17:45:33 +0000 (17:45 +0000)
committerwisberg <wisberg>
Fri, 9 Jan 2004 17:45:33 +0000 (17:45 +0000)
docs/dist/doc/examples/build.xml

index 26c6086f6003e0086cd7470d26468550d0a7b495..8fd48dbc7ebf527455c92abca16900e273a08fe5 100644 (file)
        
     <!-- ============================================================= -->
     <!-- do tracing example with 1.1 bytecode weaving (binary aspects) -->
+    <!-- (and use fork/forkclasspath to avoid Eclipse 2.x bug)         -->
     <!-- ============================================================= -->
     <target name="tracing-bc" depends="init"
      description="tracing example with bytecode weaving (binary aspects)">
        <!-- build application classes -->
        <iajc outjar="${jar.dir}/tracingApp.jar"
           classpath="${aspectjrt.jar}"
+          fork="true"
+          forkclasspath="${aspectjtools.jar}"
             verbose="off">
          <src path="${example.dir}"/>
          <include name="tracing/*.java" />
        <!-- Build a read-only tracing library -->
        <iajc outjar="${jar.dir}/tracingLib.jar"
           classpath="${aspectjrt.jar}"
+          fork="true"
+          forkclasspath="${aspectjtools.jar}"
             verbose="off">
          <src path="${example.dir}"/>
          <include name="tracing/version3/Trace.java" />
        <!-- This example uses a concrete aspect in source form, -->
        <!-- but the aspects could be written to be binary only. -->
        <iajc outjar="${jar.dir}/tracedApp.jar"
-             injars="${jar.dir}/tracingApp.jar"
+             inpath="${jar.dir}/tracingApp.jar"
          aspectpath="${jar.dir}/tracingLib.jar" 
           classpath="${aspectjrt.jar}"
+          fork="true"
+          forkclasspath="${aspectjtools.jar}"
             verbose="off">
          <src path="${example.dir}"/>
          <include name="tracing/version3/TraceMyClasses.java" />