-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add target platform creation to build script #20
Conversation
namely?
This is necessary in order to build the platform parts (generic editor). It will move away once the suggested contribution is in Platform master branch. |
<unit id="org.eclipse.xtext.xbase.lib.feature.group" version="2.10.0.v201605250459"/> | ||
<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/"/> | ||
</location> | ||
<location path="${project_loc:eclipse-language-service}/deps-repository/target/repository/plugins" type="Directory"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${project_loc:eclipse-language-service}
! I wasn't aware of that trick, that seems great!
If we go for it, it means that we need the eclipse-language-service to exist in workspace, so we should also add the .project
that sets the name and configuration.
I removed
I still don't quite understand what it does, even though I've read https://bugs.eclipse.org/bugs/show_bug.cgi?id=424089 and http://www.vogella.com/tutorials/EclipsePlatformDevelopment/article.html#build-single-parts-of-the-aggregator |
Ok, yeah, that's garbage. Feel free to remove them (by this PR or another one).
As opposed to "build all Eclipse platform". What it does it that it adds reference to the Platform repository that's used in order to build master. Without it, building this part fails with missing dependencies. |
<unit id="org.eclipse.xtext.xbase.lib.feature.group" version="2.10.0.v201605250459"/> | ||
<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/"/> | ||
</location> | ||
<location path="${project_loc:eclipse-language-service}/deps-repository/target/repository/plugins" type="Directory"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we include ls-api from http://services.typefox.io/open-source/jenkins///job/lsapi/lastSuccessfulBuild/artifact/build/p2-repository/ then the only remaining artifact is gson 2.5.0. Instead of creating a specific repo for it and using it in this .target, we could resolve to something like ${env_var:M2_REPO}/com/google/code/gson/gson/2.5/gson-2.5.jar
.
I believe it makes things a bit simpler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's good too, although user still needs to run build first, before setting the target platform (and needs to set M2_REPO env var if not set already). But this is all temporary anyways, we don't need a perfect solution now.
b53808f
to
78fc24a
Compare
I merged a patch with a .target last week: ba12025 |
(BTW I rebased my commits in the PR) I don't mind if you prefer the M2_REPO location, but it would be nice to add the other cleanup changes in PR (not target platform related). At the very least, add the top-level .project file. |
BTW, I've tried out https://github.com/andriusvelykis/pde-target-maven-plugin, but because of this issue: |
The recent changes in platform and ls-api have allowed to set up a regular .target file and that make the proposed change obsoletel |
Some notes:
deps-repository/category.xml
duplicated code fromrepository/category.xml
. Perhaps this could be fixed by using the Tycho mirror goal, but I haven't tried, don't think it's important to focus on that now.There seem to quite a few dependencies that are not necessary. Perhaps something to look at in a future patch?
Also, what is
-P build-individual-bundles
and why is it necessary for the maven build?