[forge-issues] [JBoss JIRA] (FORGE-2665) addon-watch command for developer mode where we can make the forge container watch for rebuilds of addons and auto-reload them
George Gastaldi (JIRA)
issues at jboss.org
Fri Jun 24 14:55:00 EDT 2016
[ https://issues.jboss.org/browse/FORGE-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257005#comment-13257005 ]
George Gastaldi commented on FORGE-2665:
----------------------------------------
Implemented in https://github.com/gastaldi/watch-addon. Install using {{addon-install-from-git --url https://github.com/gastaldi/watch-addon.git}}
The command is {{addon-watch-start}} and it will listen for changes in your {{~/.m2/repository}}
Let me know how it goes so I can move that to core and make it available in the next version.
Thank you!
> addon-watch command for developer mode where we can make the forge container watch for rebuilds of addons and auto-reload them
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-2665
> URL: https://issues.jboss.org/browse/FORGE-2665
> Project: Forge
> Issue Type: Feature Request
> Components: Addon Development
> Affects Versions: 3.2.2.Final
> Reporter: James Strachan
> Assignee: George Gastaldi
> Fix For: 3.x Future
>
>
> its kinda clumsy and slow when working on a Forge addon; you try some code, rebuild it, then in your Forge app you run the remove / install commands to get the new code into your CLI install of Forge (or your web app running Forge, or your IDE etc...)
> What would be cooler is if we had an 'addon-watch wildcard' command. That lets you start/stop watching addons that have SNAPSHOT versions. Even ignore the wildcard and just watch all SNAPSHOT addons.
> When watching, every installed addon of version SNAPSHOT, we'd watch ~/.m2/repository for the builds of the addons. If you then rebuild an addon, it'd reload the addon automatically (remove it first, then re-install it)!
> This would make it much quicker and simpler to try things out! Its especially painful when testing out changes to Forge commands in a web app (e.g. hawtio-forge) as you typically need to build the addons then rebuild the addon repo then rebuild/restart the web app etc!
> So this simple approach would help folks get more rapid feedback on building any addon - however you run them (CLI, web, IDE)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the forge-issues
mailing list