On Fri, Oct 26, 2012 at 8:55 PM, Paul Libbrecht <[email protected]> wrote: > Fabio, > > I do this routinely with remote connect. > Self-installed Tomcat. Invoked using the debug command. > Deployed webapp folder (which uses symbolic links). > > Generally this means that the compilation in IDEA is kind of useless but is a > good thing before expecting hot swap. > > How is this different? > It seems to me it is more complex to run this inside IntelliJ IDEA, do I > mistake? > I've always used Eclipse and the xwiki-debug-eclipse which has a nice property: you don't have to bother to make sure that the sources you modify (and the corresponding JARs) are available in the webapp. Eclipse (+ m2eclipse) does it for you by automatically synching every modification with the corresponding webapp. And, above all, it knows when to use a JAR coming from your repo instead of the one coming from one of your open projects.
AFAIK if you don't use this kind of automation you have to manually copy JARs and make sure that the correct version is deployed. A very error prone operation involving a lot of steps, and switching back and forth from the shell. So the advantage is that: the IDE takes care and makes sure automatically that everything is synched without you touching anything. So starting an XWiki is just a matter of a click. Again, AFAIK many people were mostly using the "manual procedure". Now since I wanted to start using Idea, and because I was coming from a highly automated environmnet (Eclipse + xwiki-debug-eclipse) I simply wanted to recreate the same level of automation in this environment, not having to manually check/copy anything. So I found a way to "emulate" xwiki-debug-eclipse in IntelliJ Idea :) The init.sh with the symlinking is the best way I've found to make available to the webapp project all the files that belong to other places (i.e., xwiki-platform-web and skins). I could have duplicated these, but if you were hacking a skin you would have had to make sure that you copy back the modified files to xwiki-platform. Again an error prone situation. With symlinks this is automatic. In Eclipse we didn't need to do that because Eclipse supported symlinking at the project level. Infact there are links, but they are defined in the .project and you don't see it in the filesystem. I am no expert of IntelliJ Idea, and this is the first time I use it. So if you see something wrong in what I described please shout :) Hope this helps, Fabio > > paul > > > Le 26 oct. 2012 à 20:38, Fabio Mancinelli a écrit : > >> Hi guys, >> >> I spent some time trying to port the great work Thomas did for Eclipse >> (https://github.com/xwiki/xwiki-debug-eclipse) to IntelliJ Idea. >> So I have something working to commit. >> >> I've already written the documentation: >> http://localhost:8080/xwiki/bin/view/Community/XWikiDebugIdea >> >> This mail is to ask if I can commit it in the main XWiki repository by >> creating a xwiki-debug-idea project. >> >> Here is my +1 >> >> -Fabio >> _______________________________________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/devs > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

