From: Stephen C. <ste...@ot...> - 2024-04-12 09:59:18
|
Thanks a lot, Jomi! (I noticed your subsequent message with the corrected interactive shell command "mas start --use-gradle --mas2j=test.mas2j", but thought this is the better message to reply to for the mailing list records.) I am using a Dockerfile that installs Jason in Ubuntu Linux using apt-get. Would it be possible to make this new snapshot available at http://packages.chon.group/? Regards, Stephen -----Original Message----- From: Jomi Hubner <jom...@gm...> Sent: Friday, April 12, 2024 2:15 AM To: Stephen Cranefield <ste...@ot...> Cc: jas...@li... Subject: Re: [Jason-users] Using the Jason CLI with an MAS needing a Gradle build Hi Stephen, thanks again for the feedback on JasonCLI! we added two new features: 1. run the application in the CLI using gradle. The command is jason> mas start --use-gradle=test.mas2j 2. run-as support for an MAS running at other process. I pre-release with these features is available at https://github.com/jason-lang/jason/releases/tag/v3.0.0-snapshot Regards, Jomi > On 9 Apr 2024, at 07:28, Jomi Hubner <jom...@gm...> wrote: > > Hi Stephen, > > it is very nice to know that you are using JasonCLI! This tool is quite new and (I guess) few people are using, so, there are potentially some bugs to fix. > > I will take a closer look on the problems you mentioned! > > thanks > > Jomi > >> On 8 Apr 2024, at 19:14, Stephen Cranefield <ste...@ot...> wrote: >> >> I am using Jason for the first time since the command-line interface was introduced. The interactive shell and the ability to write scripts are very useful features. However, they don't seem to be as easy to use with .mas2j files as they could be. >> My app needs a custom internal action that has a dependency on a jar file. Therefore, I ran these CLI commands: >> jason app create test --console cd test >> jason app add-ia <internal-action-class> [ I then edited the internal action code ] >> jason app add-gradle >> In the build.gradle file I noticed the dependency entry "implementation fileTree(dir: 'lib', include: '*.jar'), so I created a lib folder in my project and put the jar file in it. >> I could then run my MAS using "jason test.mas2j". However, this must be done before beginning an interactive jason shell. There does not seem to be a way to just start the MAS using Gradle within the shell. Is there a way to do that? Just entering "test.mas2j" (the CLI command with the initial "jason" removed) did not work. >> If I enter the interactive shell and do not start a new MAS then most CLI commands detect that my "test" MAS is running and use that. However, the command "agent run-as ..." results in the error message: "no local running MAS, so, no agent to run the commands". The "agent run-as" command also does not support the -mas-name argument. These two limitations seem unique to "agent run-as". For example, "agent start" detects a running MAS and also supports the -mas-name argument. >> Regards, Stephen Stephen Cranefield >> School of Computing >> University of Otago >> PO Box 56, Dunedin, New Zealand >> http://www.infosci.otago.ac.nz/stephen-cranefield/ >> _______________________________________________ >> Jason-users mailing list >> Jas...@li... >> https://lists.sourceforge.net/lists/listinfo/jason-users > > |