On 3 March 2010 13:15, saadbin abid <
saad.softwareengineer@xxxxxxxxx> wrote:
> Hello aspectJ users,
>
> I am currently working with an aspectJ project. I have successfully compile
> the project and build the .jar file.
>
> output from console :
>
> Buildfile:
> C:\eclipse-Galileo\eclipse\workspace\ie.lero.spl.aml.examples.scicalc.minimal.implementation\src\build.xml
> main:
> compileProduct:
> [echo] Compiling and executing product
> 'Scical-cminimal-product-generated'
> [echo] Compiling
> [echo] Executing
> [echo] Done.
> BUILD SUCCESSFUL
> Total time: 5 seconds
>
> My problem is that I cannot see the executable product (which in my project
> is a calculator applet). I can see the applet when running with in Eclipse
> "Run As". But after running the Ant script I cannot see the product. Could
> you please guide me what could be the possible problem. I am pasting the ant
> code so that if possible you can configure if something is missing in it!!!
>
> <?xml version="1.0"?>
>
> <!--
> for documentation on AspectJ ant tasks see
>
http://www.eclipse.org/aspectj/doc/released/devguide/antTasks-iajc.html
> -->
>
> <project default="main" basedir=".">
>
> <taskdef
>
> resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
> </taskdef>
>
>
> <property
> name="root"
> value="../src"
> />
>
> <target name="compileProduct">
> <echo message="Compiling and executing product '${productId}'"/>
> <echo message="Compiling"/>
> <echo message="Classpath = ${java.class.path}"/>
> <iajc
> source="1.5"
> argfiles="${root}/${productId}.lst"
> outjar="${root}/${productId}.jar" />
>
> <echo message="Executing"/>
> <java classname="jscicalc.CalculatorApplet"
> >
> <classpath>
> <pathelement location="${root}/${productId}.jar" />
> <pathelement location="../lib/aspectjrt.jar" />
> </classpath>
> </java>
> <echo message="Done."/>
> </target>
>
> <target name="main">
>
> <antcall target="compileProduct">
> <param name="productId"
> value="Scical-cminimal-product-generated"/>
> </antcall>
> </target>
>
> </project>
>
>
> Am I missing something?
>
> Thank you very much
> --
> SAAD
>