2013/6/30 Timo Mihaljov <
ti...@mihaljov.info>:
> I got the CCW build environment working according to the instructions on
> the HowToBuild page, so Laurent's instructions have now been
> successfully battle-tested! :)
Great news! :-)
Here are a couple of ways in which the
> instructions could be improved/clarified to make the process easier for
> new developers:
>
> - The projects should be imported to Eclipse as "General -> Existing
> Projects into Workspace" (not as "Maven -> Existing Maven Projects").
> Importing as a Maven project results in errors and modifies the Eclipse
> project files checked into the VCS. The HowToBuild page says that "You
> should then install maven support through the MarketPlace client", which
> to me seems to imply that the projects should be imported as Maven
> projects. Maybe this sentence should be removed?
That's right, this sentence is misleading. I removed it, and enforced
the fact that currently building is done from the command line.
> - `mvn clean initialize` should be `mvn clean install initialize`,
> because `initialize` depends on artifacts installed by `install`.
It's sufficient to do `mvn clean install` (no need to add initialize
at the end) : this way, ccw.core's dependencies will be installed
before ccw.core itself is installed (and also initialized as an
implied phase, as you can see in the lifecycle reference:
http://maven.apache.org/ref/3.0.5/maven-core/lifecycles.html )
I fixed the wiki page, thank you for the report.
> - I have both `/ccw.target.e37/ccw.target.e37.target` and
> `/ccw.target.e37/bin/ccw.target.e37.target`. Maybe the instructions
> should be explicit that the former should be used? (I don't know if this
> makes any difference, but it's a potential source of confusion.)
Weird, you should not have that. Cannot reproduce here. ccw.target.e37
is not a java project (so Eclipse should not copy it into
ccw.target.e37/bin), and also it's not the usual location where maven
puts stuff.
>
> - The instructions don't tell how to run the built project. Selecting
> ccw.core in the Package Explorer and choosing "Run -> Debug -> Eclipse
> Application" from the menu seems to work.
There's a better way: I've checked in serialized launch configurations in git:
Do Run > Debug as on the following resources in your workspace:
- to debug the plugin: "ccw.core/Counterclockwise Plugin.launch"
- to debug the product: "ccw.core/Counterclockwise Product.launch"
- to launch the Junit (SWTBot) tests: "ccw.core.test/Counterclockwise
Product Tests.launch"
I added these instructions to the wiki page
> - The instructions don't tell how to install the built project into the
> developer's own Eclipse environment. I did `cd ccw.updatesite && mvn
> package` on the command line and selected "Help -> Install New
> Software... -> Add... -> Local... ->
> 'ccw/ccw.updatesite/target/repository'" from the Menu. The update site
> seems to be built from the packages in the local Maven cache, so `mvn
> install` needs to be run in the main ccw directory for the latest
> changes to be included in the update site.
Indeed.
Also, note that invoking `mvn install` in the main ccw directory will
already cause the software update site to be packaged in
ccw.updatesite/target.
I updated the wiki page again.
What do you think of the overall changes I made to the wiki page?
https://code.google.com/p/counterclockwise/wiki/HowToBuild
>
> - It's strange that the latest development version is numbered
> 0.12.4-SNAPSHOT, while the latest version in the beta channel is
> 0.13.0-SNAPSHOT. This means that it's not possible to upgrade from the
> beta to the development version, because Eclipse considers the beta to
> be newer! I had to manually uninstall the beta before installing the
> development version from my locally built update site. Maybe the
> development version should also be numbered 0.13.0-SNAPSHOT with a
> separate branch for v0.12 maintenance releases?
Indeed, I will update.
Note that the features in the beta update site reflect what's present
in the git branch 'leiningen'. Those include advanced, but not yet
finished, developments on leiningen support, as well as
(unfortunately) interesting additions that are intertwined with the
work on leiningen.
In the next days, I will find a way to either merge the two branches
and get the work on leiningen protected by a feature toggle, or
extract from the leiningen branch all the interesting bits not
directly related to it.
>
> --
> Timo
>
> --
> You received this message because you are subscribed to the Google Groups "counterclockwise" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
clojuredev-dev...@googlegroups.com.
> To post to this group, send email to
clojured...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/clojuredev-devel.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>