Like triggering com.samaxes.maven standalone.

This generates the JS files into ../generated-sources/main/java right now.

All that's need for that to work is to also copy it to
target/openmeetings-web-5.0.0-SNAPSHOT/WEB-INF/classes

Thx
Seb

Sebastian Wagner
Director Arrakeen Solutions
http://arrakeen-solutions.co.nz/
<https://www.youracclaim.com/badges/da4e8828-743d-4968-af6f-49033f10d60a/public_url>
<https://www.youracclaim.com/badges/b7e709c6-aa87-4b02-9faf-099038475e36/public_url>


On Sat, 15 Aug 2020 at 10:37, seba.wag...@gmail.com <seba.wag...@gmail.com>
wrote:

> There must be a way to speed up this cycle.
>
> => The way webpack and other tools work is that they monitor directories
> and whenever there is a change in a file they (compile and) copy it into
> the relevant folder.
>
> It would actually work similarly with OpenMeetings.
>
> I can for example run OpenMeetings with the Jetty build in:
> cd openmeetings-web
> mvn install -P allModules,quick,mysql jetty:run-exploded
> -Dwicket.configuration=DEVELOPMENT
>
> and then if you navigate to:
>
> openmeetings-web/target/openmeetings-web-5.0.0-SNAPSHOT/WEB-INF/classes/org/apache/openmeetings/web/room/room.js
>
> If you edit this file, all to get this "live" is to refresh the browser.
> No need to start or stop anything. Jetty will serve the changed content!
>
> Now the only thing missing would be automatically copy (and compile) those
> files into this directory, without doing a full Maven rebuild and/or
> restarts. Just some lightweight JS compile.
>
> With the goal so that you can still modify the files
> in: 
> openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js
> and it will run a lightweight task to compile and copy
> to: 
> openmeetings-web/target/openmeetings-web-5.0.0-SNAPSHOT/WEB-INF/classes/x/y/z/*.js
>
> Do you have any ideas how to achieve such a lightweight maven build that
> just does the JS/CSS tasks to generate this folder (without wiping its
> content) ?
>
> If we can get this done we speed up the cycle of change + retry by a
> factor of 10.
>
> Thanks,
> Seb
>
> Sebastian Wagner
> Director Arrakeen Solutions
> http://arrakeen-solutions.co.nz/
>
> <https://www.youracclaim.com/badges/da4e8828-743d-4968-af6f-49033f10d60a/public_url>
> <https://www.youracclaim.com/badges/b7e709c6-aa87-4b02-9faf-099038475e36/public_url>
>
>
> On Sat, 15 Aug 2020 at 02:16, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> Hello Sebastian,
>>
>> On Fri, 14 Aug 2020 at 05:23, seba.wag...@gmail.com <
>> seba.wag...@gmail.com> wrote:
>>
>>> Have we found a way to modify the JavaScript and CSS files _without_
>>> triggering Maven tasks ?
>>>
>>
>> I usually change JS/CSS in Dev console, test it then move these changes
>> to IDE :)))
>>
>>
>>>
>>> It takes 2-3 minutes to run Maven and a complete restart of the
>>> OpenMeeting server. Your JSession is obviously also gone so you can re
>>> login and navigate all the way back to where you were.
>>>
>>
>> This can be improved if you will check "Remember me" on sign-in screen :)
>> I have 2 different browsers with 2 different "saved" logins :)
>>
>>
>>>
>>> It's just very tedious.
>>>
>>> There must be a way to speed up this cycle.
>>>
>>
>> Not sure how this can be improved
>> Any ideas are welcome :)
>>
>>
>>
>>>
>>> Thanks
>>> Seb
>>>
>>> Sebastian Wagner
>>> Director Arrakeen Solutions
>>> http://arrakeen-solutions.co.nz/
>>>
>>> <https://www.youracclaim.com/badges/da4e8828-743d-4968-af6f-49033f10d60a/public_url>
>>> <https://www.youracclaim.com/badges/b7e709c6-aa87-4b02-9faf-099038475e36/public_url>
>>>
>>
>>
>> --
>> Best regards,
>> Maxim
>>
>

Reply via email to