External Tools Macros for appinfo.json

I just figured how to use Webstorm external tools to connect with LG WebOS development.

I created external tool for creating web app , and also compile the app to IPK.

I need more macros for example :

1. To install an IPK file :

to install generated IPK, we use Command Line : ares-install -d <devicename> <IPK file>

for <devicename> , I use $Prompt$ to type device name

for <IPK file>, actually can use $FilePrompt$, but actually it always reside on $ProjectFileDir$\OutputIPK\[the one file IPK inside it]

So is there any macro to find IPK file inside $ProjectFileDir$\OutputIPK and use the fullpath ?

2. To launch app :

to launch app, we use Command Line : ares-launch -d <devicename> <application id>

for <devicename>, I use $Prompt$ to type device name

for <application id> , it is actually contained in file appinfo.json, on property "id"

So how can make Macros to read appinfo.json on property "id" automatically ?

3. To Close app : 

basically the same as to launch app, just need to use Command Line : ares-launch -c -d <devicename> <application id>

0
1 comment

There are no macros for this, and I doubt they will be ever added... The task is too specific. And creating custom macros is currently prohibited (see https://youtrack.jetbrains.com/issue/IDEA-153788#focus=Comments-27-2399131.0-0)

Anyway, please feel free to file a request for adding these macros to youtrack, https://youtrack.jetbrains.com/issues/IDEA

0

Please sign in to leave a comment.