Hi Jacques, They are linked automatically here. I'm beginning to get worried that this might be a windows thing again. Are the sources not linked on your PC?
Taher Alkhateeb. On Jul 26, 2016 9:01 PM, "Jacques Le Roux" <jacques.le.r...@les7arts.com> wrote: > Thanks Taher, > > I found that but I thought from answers in the Stackoverflow thread that > Eclipse would automatically link the jars with the sources if they exist. > > Or do you have to link them all manually :-o ? > > Jacques > > > Le 26/07/2016 à 16:18, Taher Alkhateeb a écrit : > >> Hi Jacques, >> >> As I mentioned above, the sources reside in your Gradle cache. >> >> For example. looking at the commons-cli library, on my computer it is >> found >> in : >> >> >> $HOME/.gradle/caches/modules-2/files-2.1/commons-cli/commons-cli/1.3.1/1303efbc4b181e5a58bf2e967dc156a3132b97c0/commons-cli-1.3.1.jar >> >> $HOME/.gradle/caches/modules-2/files-2.1/commons-cli/commons-cli/1.3.1/12ec02d8cb9fbb33bd05506109a4fc8bcc3578/commons-cli-1.3.1-sources.jar >> >> Is that what you were searching for? >> >> Taher Alkhateeb >> >> On Tue, Jul 26, 2016 at 5:04 PM, Jacques Le Roux < >> jacques.le.r...@les7arts.com> wrote: >> >> Thanks Taher, >>> >>> I did not read the Stackoverflow thread sufficiently it's there: >>> >>> https://docs.gradle.org/current/dsl/org.gradle.plugins.ide.eclipse.model.EclipseClasspath.html#org.gradle.plugins.ide.eclipse.model.EclipseClasspath:downloadSources >>> so downloadSources=true is default in v2 >>> >>> But I did not find where the sources are, it seems from the Stackoverflow >>> thread answers that it's automatically done, and you seems to imply >>> that. I >>> will try more jars to see how it goes.. >>> >>> Jacques >>> >>> >>> >>> Le 26/07/2016 à 13:05, Taher Alkhateeb a écrit : >>> >>> Hi Jacques, >>>> >>>> I believe that in JCenter (and I think MavenCenteral also) most Jars >>>> declare their sources. If you call the eclipse task, then it will >>>> download >>>> those sources to the gradle cache along with the binaries. Very few >>>> exceptions are there. For example, javolution sources didn't download >>>> which >>>> would've made refactoring EntitySaxReaders.java easier (off topic). >>>> >>>> Also with regards to the downloadSources=true I think yes we should not >>>> worry about because if I'm in a production server I won't call eclipse >>>> tasks either way and hence won't download the sources. >>>> >>>> Did I tackle your question correctly? Sorry if I shifted. >>>> >>>> Regards, >>>> >>>> Taher Alkhateeb >>>> >>>> On Tue, Jul 26, 2016 at 1:47 PM, Jacques Le Roux < >>>> jacques.le.r...@les7arts.com> wrote: >>>> >>>> Oh I have no problems with the eclipse task, this is for local usage. I >>>> >>>>> use it of course, else Eclipse is lost with the OFBiz project. >>>>> >>>>> I was more asking where are the Java sources available, in the Gradle >>>>> cache? And if it's there, where exactly? >>>>> >>>>> Also, from your answer I understand that you use the OOTB eclipse task >>>>> w/o >>>>> the <<downloadSources=true">> stuff that I found in a Stackoverflow >>>>> answer >>>>> linked below >>>>> >>>>> Thanks >>>>> >>>>> Jacques >>>>> >>>>> >>>>> >>>>> Le 26/07/2016 à 11:47, Taher Alkhateeb a écrit : >>>>> >>>>> Oh, allow me to explain: >>>>> >>>>>> ./gradlew cleanAll loadDefault -> This would download the dependencies >>>>>> and >>>>>> load your data >>>>>> ./gradlew cleanAll build eclipse loadDefault -> this would be same as >>>>>> above >>>>>> but would additionally download the source Jars. >>>>>> >>>>>> So if you avoid calling the eclipse tasks, then no source jars will >>>>>> download. I can double check exactly how this happens if you like, >>>>>> but I >>>>>> think we are safe as a general idea. >>>>>> >>>>>> On Tue, Jul 26, 2016 at 12:43 PM, Jacques Le Roux < >>>>>> jacques.le.r...@les7arts.com> wrote: >>>>>> >>>>>> Does this mean that you used >>>>>> >>>>>> downloadSources=true" >>>>>>> >>>>>>> In you local Eclipse task? >>>>>>> Because you said you had the sources easily available. Beside, where >>>>>>> did >>>>>>> you find the sources exactly? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> Jacques >>>>>>> >>>>>>> >>>>>>> >>>>>>> Le 24/07/2016 à 17:54, Taher Alkhateeb a écrit : >>>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> After a bit of investigation I believe Gradle will _not_ download >>>>>>>> source >>>>>>>> libraries _unless_ someone calls the "eclipse" task. So I think no >>>>>>>> need >>>>>>>> to >>>>>>>> do any changes for releases. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> >>>>>>>> Taher Alkhateeb >>>>>>>> >>>>>>>> On Fri, Jul 22, 2016 at 11:08 PM, Taher Alkhateeb < >>>>>>>> slidingfilame...@gmail.com> wrote: >>>>>>>> >>>>>>>> Hi Jacques, >>>>>>>> >>>>>>>> Sure. I have an idea in mind for how to make this very trivial so >>>>>>>> that >>>>>>>> >>>>>>>>> minimal code is needed to prepare for a release. Whenever you issue >>>>>>>>> the >>>>>>>>> jira I'll attach a patch for a convenient solution. >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> >>>>>>>>> Taher Alkhateeb >>>>>>>>> >>>>>>>>> On Jul 22, 2016 11:04 PM, "Jacques Le Roux" < >>>>>>>>> jacques.le.r...@les7arts.com> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>> I think a Jira is appropriate. I believe it should be a subtask of >>>>>>>>> OFBIZ-7534. I like them because it's easy to spot the state >>>>>>>>> (advance >>>>>>>>> of >>>>>>>>> work done, and especially remaining issue to work on). I'll handle >>>>>>>>> the >>>>>>>>> wiki >>>>>>>>> side when I'll get a chance... >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> Jacques >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Le 21/07/2016 à 14:39, Taher Alkhateeb a écrit : >>>>>>>>> >>>>>>>>> Nice work okay we have the answer on how to stop downloading the >>>>>>>>> sources >>>>>>>>> >>>>>>>>> :) >>>>>>>>> >>>>>>>>>> On Jul 21, 2016 3:35 PM, "Jacques Le Roux" < >>>>>>>>>> jacques.le.r...@les7arts.com> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>> Thanks Taher, >>>>>>>>>> >>>>>>>>>> I guess you spoke about Eclipse. BTW should we not add " >>>>>>>>>> >>>>>>>>>> downloadSources=true" >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> https://stackoverflow.com/questions/10156847/how-to-tell-gradle-to-download-all-the-source-jars#answer-10655347 >>>>>>>>>>> ? >>>>>>>>>>> >>>>>>>>>>> For IntelliJ it's here >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> https://stackoverflow.com/questions/12718753/how-to-download-dependency-sources-for-gradle-project-in-idea >>>>>>>>>>> >>>>>>>>>>> We will put that, with other things, in the "Gradle to And" wiki >>>>>>>>>>> page >>>>>>>>>>> ASAP >>>>>>>>>>> >>>>>>>>>>> Jacques >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Le 21/07/2016 à 08:05, Taher Alkhateeb a écrit : >>>>>>>>>>> >>>>>>>>>>> Hi Everyone, >>>>>>>>>>> >>>>>>>>>>> One of the very nice things I discovered a while back is that >>>>>>>>>>> Gradle >>>>>>>>>>> >>>>>>>>>>> automatically downloads The Source libraries for the jar >>>>>>>>>>>> dependencies >>>>>>>>>>>> for >>>>>>>>>>>> almost all of the libraries. >>>>>>>>>>>> >>>>>>>>>>>> This means that you can ctrl-click with your IDE to navigate the >>>>>>>>>>>> source >>>>>>>>>>>> code of these external libraries which I find very helpful for >>>>>>>>>>>> debugging. >>>>>>>>>>>> >>>>>>>>>>>> So just wanted to share that for anyone who might want to take >>>>>>>>>>>> advantage >>>>>>>>>>>> of >>>>>>>>>>>> this >>>>>>>>>>>> >>>>>>>>>>>> Taher Alkhateeb >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >