Closed GoogleCodeExporter closed 8 years ago
Workaround is to run update from each sub-project.
Original comment by jzaugg
on 30 Oct 2010 at 9:33
Running update for all projects might be reasonable regardless of failure, but
making missing sources/javadocs a warning instead of an error is dependent on
Ivy, which I don't think supports it.
This is unlikely to be implemented before some point in 0.9.x. You can write a
withSources wrapper that can easily be disabled or you can do something like:
override def updateAction = super.updateAction dependsOn( allUpdates )
where allUpdates is something like:
topologicalSort.dropRight(1).map { case mp: ManagedProject => mp.update }
but with the details properly handled.
Original comment by dmhar...@gmail.com
on 1 Nov 2010 at 2:57
Weird that Ivy doesn't support it since it's the default behaviour for Maven
plugins that download sources and javadocs. I also ran into this issue a while
ago and added a quick and dirty workaround (a hardcoded list of dependencies
for which withSources is not added).
Original comment by ismaelj
on 14 Nov 2010 at 1:49
Aggregation has been implemented for 0.9. I've made it so that if project A
has an aggregate dependency on B and you run task T in A, both T in A and T in
B are scheduled to be executed, but without T in A depending on T in B. (Does
that make sense?)
This fixes the issue concerning running update in all projects regardless of
failure (and it will also address the issue concerning 'test' that I think was
mentioned on the mailing list).
Original comment by dmhar...@gmail.com
on 22 Feb 2011 at 12:50
To be clear, "without T in A depending on T in B" means that T in A will not
fail if T in B fails?
Original comment by ismaelj
on 22 Feb 2011 at 8:03
Correct. The overall build will fail, though.
Original comment by dmhar...@gmail.com
on 22 Feb 2011 at 11:46
I see. I think that works well enough for interactive usage (a failed build
during update is close to harmless in that scenario if it runs to completion),
but it would still be an issue for usage in a CI like Hudson. I guess one could
make withSources conditional on something that is not true in the CI build.
That is an improvement over what can be done now then.
Original comment by ismaelj
on 22 Feb 2011 at 3:56
To clarify, I wasn't trying to say that this will resolve the original issue,
only alleviate it in the interactive case, as you say. I will look at sources
and javadocs handling. It would help if you could state precisely what
behavior you expect or want related to sources/docs handling. Transitive
downloads, invoke as a separate action or configure as part of normal
dependency specification, etc...
Thanks,
Mark
Original comment by dmhar...@gmail.com
on 22 Feb 2011 at 4:28
Possibly of interest:
http://code.google.com/p/simple-build-tool/issues/detail?id=92#c5
Original comment by dmhar...@gmail.com
on 14 Mar 2011 at 3:55
Implemented as update-classifiers command in 0.9.2. No error is generated if
download of some sources/javadocs fails.
https://github.com/harrah/xsbt/commit/4a8e79befbb53f85e53423d24cad431b72b7f341
Original comment by dmhar...@gmail.com
on 16 Mar 2011 at 2:18
Great stuff Mark. Thanks! Looking forward to 0.9.2. Would you say that it's a
good time to port relatively complex multi-module projects from 0.7.x or still
a bit early?
Original comment by ismaelj
on 16 Mar 2011 at 2:26
Hey Ismael,
I think the implementation is almost there but the documentation is not.
Additionally, there are no plugins yet, I'm not sure what I'm doing with the
jetty support, and error handling is poor.
If you want, list the main features you will need or link to your build
definition, and I'll make a guess. Otherwise, let's say 0.9.3 or 0.9.4. At
least error handling should be more reasonable by then.
-Mark
Original comment by dmhar...@gmail.com
on 16 Mar 2011 at 2:33
Thanks Mark, very useful information. I don't want to take your time, so I'll
briefly play with 0.9.2 with the understanding that it may still be early and
that I may not complete the port until 0.9.3 or 0.9.4. And sorry for hijacking
the bug. :)
Original comment by ismaelj
on 16 Mar 2011 at 2:42
[deleted comment]
Trying out 0.9.2 isn't necessarily discouraged and certainly not feedback on
it. It is just that a complex multi-module project is likely to run into
issues, including lack of documentation. I mean these only as
expectation-lowering comments and not discouraging anyone from taking my time.
I need feedback to get 0.9.x stable and so ongoing feedback from porting
efforts is valuable to me.
Thanks,
Mark
Original comment by dmhar...@gmail.com
on 17 Mar 2011 at 2:56
Original issue reported on code.google.com by
jzaugg
on 30 Oct 2010 at 9:29