Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] cannot see executable after compiling and executing iajc ant task

Hello Andy,
Thank you very much. Yes I can see the jar but in eclipse I cannot see the executable I don't know why is it so!! I am trying to run it from console and it is complaining not to find the main class. Don't know what is going on :(
Attached is the jar file I am getting after ant script. Could you please help me with it if possible?

best regards



On Wed, Mar 3, 2010 at 9:20 PM, Andy Clement <andrew.clement@xxxxxxxxx> wrote:
Your iajc task specifies an outjar - that is where the code will go -
so you won't see the output class files on disk, they are packaged
into a jar during compilation.  From the looks of it:

>             outjar="${root}/${productId}.jar" />

it will be ../src/Scical-cminimal-product-generated.jar

Andy

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
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



--
SAAD

Attachment: Scical-cminimal-product-generated.jar
Description: application/java-archive


Back to the top