Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Compile AspectJ programs from another Java program

Hi,

Runtime.exec does not run it in a particular shell unless specified.
Hence, the following should work.

Runtime.exec("command.com /C ajc account/*.java");

or

String[] cmd = {"command.com", "/C", "ajc account/*.java"};
Runtime.exec(cmd) ;

Monal

On 2/26/07, Fayezin <nitrousfiz@xxxxxxxxxxxxxx> wrote:
Hi,

Thanks for the reply.

Runtime.exec("ajc account/*.java") does not work and throws a runtime
exception.
My guess is that it does not support command line arguments like the command
prompt.

Any ideas?

Thanks,

Fayezin



On 26/02/07, Eric Bodden <eric.bodden@xxxxxxxxxxxxxx> wrote:
> Hmmm, Runtime.exec(..) should help, if it comes to the worst.
>
> Eric
>
> On 2/26/07, Fayezin < nitrousfiz@xxxxxxxxxxxxxx> wrote:
> > Hello,
> >
> > I need to compile aspectJ programs using ajc 1.0 (not 1.5) from within
> > a java program, but I cant seem to figure out how.
> >
> >
> > Please help me to solve this problem.
> >
> > Thanks,
> >
> > Fayezin
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> >
>
>
> --
> Eric Bodden
> Sable Research Group
> McGill University, Montréal, Canada
> _______________________________________________
> 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




Back to the top