First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 6942
Product:
Component:
Status: NEW
Resolution:
Assigned To: Guillaume Déflache <guillaume.deflache@wyona.com>
Hardware:
OS:
Version:
Priority:
Severity:
Target Milestone:
Reporter: Guillaume Déflache <guillaume.deflache@wyona.com>
Add CC:
CC:
QA Contact:
URL:
Summary:
Status Whiteboard:
Keywords:
Flags:
 

Attachment Type Creator Created Size Flags Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 6942 depends on: Show dependency tree
Show dependency graph
Bug 6942 blocks:

Additional Comments:









View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2009-01-16 19:43
Goal: ease use of Yanel with Eclipse.

------- Comment #1 From Guillaume Déflache 2009-01-30 17:28:56 -------
Small XSLT to help generating .classpath added in 41238: still rough, but can
be used manually as follows:
xsltproc --stringparam M2-repo-dir /home/guillaume/.m2/repository --stringparam
dependencies-doc-URL $PWD/dependencies.xml /path/to/dependencies2classpath.xslt
.classpath > .classpath2

Caution: xsltproc does not deal well with overwriting input files, that's why
.classpath2 is used instead of .classpath...

Also it seeems like all needed dependencies to compile the whole code are not
always there, so you might still have to add a few JARs manually! :/

------- Comment #2 From Guillaume Déflache 2009-02-05 09:24:00 -------
In particular JUnit JAR is not here (rightfully: it's only useful for testing,
not for compiling or running): we should add a reference in the XSLT to
tools/apache-ant_extras/junit-3.8.1.jar (at least that's what the Yanel project
uses, dunno about others).

------- Comment #3 From Guillaume Déflache 2009-02-27 11:18:17 -------
> Caution: xsltproc does not deal well with overwriting input files, that's why .classpath2 is used instead of .classpath...

Somehow workarounded in 41728, as a default .classpath input document can now
be used.

New usage:
xsltproc --stringparam M2-repo-dir /home/guillaume/.m2/repository
~/public-Wyona.onlyFiles.VC/0_tools/eclipse-3.settings/dependencies2classpath.xslt
src/build/dependencies.xml > .classpath2

------- Comment #4 From Guillaume Déflache 2009-03-12 13:30:08 -------
Found (revision 41913 and revision 41914) a hopefully final solution for
generating .classpath files which unlike the former handle transitive
dependencies and so gets the full needed classpath.

There are still problems (the Yanel-specific base test classes are not in the
classpath) so leaving this open.

------- Comment #5 From Guillaume Déflache 2009-03-12 20:21:05 -------
> [...] the Yanel-specific base test classes are not in the classpath

Solving this required a refactoring of the Yanel JAR installation code: done in
revision 41922.

------- Comment #6 From Guillaume Déflache 2009-03-16 08:39:18 -------
...and also revision 41956.

------- Comment #7 From Guillaume Déflache 2009-03-16 10:27:03 -------
...and also revision 41958 which fixes the broken build! :/

------- Comment #8 From Guillaume Déflache 2009-03-16 11:57:29 -------
Thanks to revision 41961 all the files needed for a compilable Eclipse project
can now be generated using a simple command: `build -f ... eclipse`! :)

------- Comment #9 From Guillaume Déflache 2009-03-24 08:27:18 -------
Since revision 42121 the Yanel test project can now also be compiled easily in
Eclipse!

------- Comment #10 From Guillaume Déflache 2009-03-27 12:56:37 -------
Since revision 42181 the Yanel test project can now also be compiled easily in
Eclipse!


Allowing these projects to compile under Eclipse also allows source-level
debugging with hot code replacement from Eclipse: you can now change Java
methods' code (not signatures) of Yanel without restarting.

Alas for resource-types this is not possible yet (doing that for those under
${yanel.source.home} may be easier though).

------- Comment #11 From Guillaume Déflache 2009-04-21 16:29:14 -------
> Since revision 42181 the Yanel test project can now also be compiled easily in
> Eclipse!

Oops, I meant the Yanel *webapp* project!

------- Comment #12 From Guillaume Déflache 2009-06-23 14:14:23 -------
...and since revision 42975 that did not work anymore because of the splitting
of the Neutron stuff, fixed in revision 43282.

------- Comment #13 From Guillaume Déflache 2009-07-20 17:31:12 -------
Since revision 43713 the Wyona Commons project can now also be compiled easily
in
Eclipse!

------- Comment #14 From Guillaume Déflache 2009-07-29 14:51:47 -------
Since revision 43912 the Wyona Security project can now also be compiled easily
in Eclipse!

------- Comment #15 From Guillaume Déflache 2009-07-29 16:49:19 -------
Since revision 43914 Yanel subprojects now always have their source code
attached under Eclipse! :)

------- Comment #16 From Guillaume Déflache 2009-09-29 16:44:03 -------
Since r44922 the Wyona Yarep project can now also be set up automatically for
Eclipse!

------- Comment #17 From Guillaume Déflache 2009-10-13 14:22:47 -------
Since r44993 all realms (that have a specific Ant build script and so probably
have some Java classes to compile) can potentially be set up automatically for
Eclipse!
Also this has been done for all such non-contributed Yanel realms, i.e. the
Welcome Admin realm and the Yanel website realm.

------- Comment #18 From Guillaume Déflache 2010-03-18 11:22:51 -------
Since r48178 all resource-types specific to a given realm (e.g. those defined
in $REALM_DIR/resource-types.xml) can be imported in one go as Eclipse
projects!

First Last Prev Next    No search results available      Search page      Enter new bug