naether 0.8.6 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1143 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Naether::Maven
8
+
9
+ &mdash; Documentation by YARD 0.8.2.1
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../';
20
+ framesUrl = "../frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../_index.html">Index (M)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../Naether.html" title="Naether (class)">Naether</a></span></span>
36
+ &raquo;
37
+ <span class="title">Maven</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: Naether::Maven
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">Naether::Maven</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/naether/maven.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Helper for interacting with a Maven POM</p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+ <p class="tag_title">Author:</p>
113
+ <ul class="author">
114
+
115
+ <li>
116
+
117
+
118
+
119
+
120
+
121
+ <div class='inline'>
122
+ <p>Michael Guymon</p>
123
+ </div>
124
+
125
+ </li>
126
+
127
+ </ul>
128
+
129
+ </div>
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ <h2>
138
+ Class Method Summary
139
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
140
+ </h2>
141
+
142
+ <ul class="summary">
143
+
144
+ <li class="public ">
145
+ <span class="summary_signature">
146
+
147
+ <a href="#create_from_notation-class_method" title="create_from_notation (class method)">+ (Naether::Maven) <strong>create_from_notation</strong>(notation) </a>
148
+
149
+
150
+
151
+ </span>
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+ <span class="summary_desc"><div class='inline'>
162
+ <p>Create an instance based on notation.</p>
163
+ </div></span>
164
+
165
+ </li>
166
+
167
+
168
+ <li class="public ">
169
+ <span class="summary_signature">
170
+
171
+ <a href="#create_from_pom-class_method" title="create_from_pom (class method)">+ (Naether::Maven) <strong>create_from_pom</strong>(pom_path) </a>
172
+
173
+
174
+
175
+ </span>
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+ <span class="summary_desc"><div class='inline'>
186
+ <p>Create an instance from a POM.</p>
187
+ </div></span>
188
+
189
+ </li>
190
+
191
+
192
+ </ul>
193
+
194
+ <h2>
195
+ Instance Method Summary
196
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
197
+ </h2>
198
+
199
+ <ul class="summary">
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#build_pom-instance_method" title="#build_pom (instance method)">- (String) <strong>build_pom</strong> </a>
205
+
206
+
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ <span class="summary_desc"><div class='inline'>
219
+ <p>Create the XML for a Maven Pom.</p>
220
+ </div></span>
221
+
222
+ </li>
223
+
224
+
225
+ <li class="public ">
226
+ <span class="summary_signature">
227
+
228
+ <a href="#dependencies-instance_method" title="#dependencies (instance method)">- (Object) <strong>dependencies</strong>(scopes = nil) </a>
229
+
230
+
231
+
232
+ </span>
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+ <span class="summary_desc"><div class='inline'>
243
+ <p>Get dependences for Project as notations.</p>
244
+ </div></span>
245
+
246
+ </li>
247
+
248
+
249
+ <li class="public ">
250
+ <span class="summary_signature">
251
+
252
+ <a href="#dependencies%3D-instance_method" title="#dependencies= (instance method)">- (Object) <strong>dependencies=</strong>(dependencies) </a>
253
+
254
+
255
+
256
+ </span>
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+ <span class="summary_desc"><div class='inline'>
267
+ <p>Set dependencies.</p>
268
+ </div></span>
269
+
270
+ </li>
271
+
272
+
273
+ <li class="public ">
274
+ <span class="summary_signature">
275
+
276
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Maven) <strong>initialize</strong>(pom_path = nil) </a>
277
+
278
+
279
+
280
+ </span>
281
+
282
+
283
+ <span class="note title constructor">constructor</span>
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+ <span class="summary_desc"><div class='inline'>
293
+ <p>Create new instance.</p>
294
+ </div></span>
295
+
296
+ </li>
297
+
298
+
299
+ <li class="public ">
300
+ <span class="summary_signature">
301
+
302
+ <a href="#load_naether-instance_method" title="#load_naether (instance method)">- (Object) <strong>load_naether</strong>(naether) </a>
303
+
304
+
305
+
306
+ </span>
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+ <span class="summary_desc"><div class='inline'>
317
+ <p>Load dependencies and remote repo from a <span class='object_link'><a href="../Naether.html" title="Naether (class)">Naether</a></span> instance.</p>
318
+ </div></span>
319
+
320
+ </li>
321
+
322
+
323
+ <li class="public ">
324
+ <span class="summary_signature">
325
+
326
+ <a href="#notation%3D-instance_method" title="#notation= (instance method)">- (Object) <strong>notation=</strong>(notation) </a>
327
+
328
+
329
+
330
+ </span>
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+ <span class="summary_desc"><div class='inline'>
341
+ <p>Set the Notation for this Project.</p>
342
+ </div></span>
343
+
344
+ </li>
345
+
346
+
347
+ <li class="public ">
348
+ <span class="summary_signature">
349
+
350
+ <a href="#repositories%3D-instance_method" title="#repositories= (instance method)">- (Object) <strong>repositories=</strong>(repositories) </a>
351
+
352
+
353
+
354
+ </span>
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+ <span class="summary_desc"><div class='inline'>
365
+ <p>Set repositories.</p>
366
+ </div></span>
367
+
368
+ </li>
369
+
370
+
371
+ <li class="public ">
372
+ <span class="summary_signature">
373
+
374
+ <a href="#version-instance_method" title="#version (instance method)">- (Object) <strong>version</strong> </a>
375
+
376
+
377
+
378
+ </span>
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+ <span class="summary_desc"><div class='inline'>
389
+ <p>Get the version.</p>
390
+ </div></span>
391
+
392
+ </li>
393
+
394
+
395
+ <li class="public ">
396
+ <span class="summary_signature">
397
+
398
+ <a href="#write_pom-instance_method" title="#write_pom (instance method)">- (Object) <strong>write_pom</strong>(file_path) </a>
399
+
400
+
401
+
402
+ </span>
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+ <span class="summary_desc"><div class='inline'>
413
+ <p>Write Maven Pom.</p>
414
+ </div></span>
415
+
416
+ </li>
417
+
418
+
419
+ </ul>
420
+
421
+
422
+ <div id="constructor_details" class="method_details_list">
423
+ <h2>Constructor Details</h2>
424
+
425
+ <div class="method_details first">
426
+ <h3 class="signature first" id="initialize-instance_method">
427
+
428
+ - (<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Maven</a></span></tt>) <strong>initialize</strong>(pom_path = nil)
429
+
430
+
431
+
432
+
433
+
434
+ </h3><div class="docstring">
435
+ <div class="discussion">
436
+
437
+ <p>Create new instance</p>
438
+
439
+
440
+ </div>
441
+ </div>
442
+ <div class="tags">
443
+
444
+
445
+ </div><table class="source_code">
446
+ <tr>
447
+ <td>
448
+ <pre class="lines">
449
+
450
+
451
+ 51
452
+ 52
453
+ 53
454
+ 54
455
+ 55
456
+ 56
457
+ 57
458
+ 58</pre>
459
+ </td>
460
+ <td>
461
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 51</span>
462
+
463
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_pom_path'>pom_path</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
464
+ <span class='kw'>if</span> <span class='id identifier rubyid_pom_path'>pom_path</span>
465
+ <span class='ivar'>@project</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>com.tobedevoured.naether.maven.Project</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_pom_path'>pom_path</span> <span class='rparen'>)</span>
466
+ <span class='kw'>else</span>
467
+ <span class='ivar'>@project</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>com.tobedevoured.naether.maven.Project</span><span class='tstring_end'>&quot;</span></span> <span class='rparen'>)</span>
468
+ <span class='kw'>end</span>
469
+
470
+ <span class='kw'>end</span></pre>
471
+ </td>
472
+ </tr>
473
+ </table>
474
+ </div>
475
+
476
+ </div>
477
+
478
+
479
+ <div id="class_method_details" class="method_details_list">
480
+ <h2>Class Method Details</h2>
481
+
482
+
483
+ <div class="method_details first">
484
+ <h3 class="signature first" id="create_from_notation-class_method">
485
+
486
+ + (<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Naether::Maven</a></span></tt>) <strong>create_from_notation</strong>(notation)
487
+
488
+
489
+
490
+
491
+
492
+ </h3><div class="docstring">
493
+ <div class="discussion">
494
+
495
+ <p>Create an instance based on notation</p>
496
+
497
+
498
+ </div>
499
+ </div>
500
+ <div class="tags">
501
+ <p class="tag_title">Parameters:</p>
502
+ <ul class="param">
503
+
504
+ <li>
505
+
506
+ <span class='name'>notation</span>
507
+
508
+
509
+ <span class='type'>(<tt>String</tt>)</span>
510
+
511
+
512
+
513
+ </li>
514
+
515
+ </ul>
516
+
517
+ <p class="tag_title">Returns:</p>
518
+ <ul class="return">
519
+
520
+ <li>
521
+
522
+
523
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Naether::Maven</a></span></tt>)</span>
524
+
525
+
526
+
527
+ </li>
528
+
529
+ </ul>
530
+
531
+ <p class="tag_title">See Also:</p>
532
+ <ul class="see">
533
+
534
+ <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
535
+
536
+ </ul>
537
+
538
+ </div><table class="source_code">
539
+ <tr>
540
+ <td>
541
+ <pre class="lines">
542
+
543
+
544
+ 41
545
+ 42
546
+ 43
547
+ 44
548
+ 45</pre>
549
+ </td>
550
+ <td>
551
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 41</span>
552
+
553
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_from_notation'>create_from_notation</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span> <span class='rparen'>)</span>
554
+ <span class='id identifier rubyid_maven'>maven</span> <span class='op'>=</span> <span class='const'>Maven</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
555
+ <span class='id identifier rubyid_maven'>maven</span><span class='period'>.</span><span class='id identifier rubyid_notation'>notation</span> <span class='op'>=</span> <span class='id identifier rubyid_notation'>notation</span>
556
+ <span class='id identifier rubyid_maven'>maven</span>
557
+ <span class='kw'>end</span></pre>
558
+ </td>
559
+ </tr>
560
+ </table>
561
+ </div>
562
+
563
+ <div class="method_details ">
564
+ <h3 class="signature " id="create_from_pom-class_method">
565
+
566
+ + (<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Naether::Maven</a></span></tt>) <strong>create_from_pom</strong>(pom_path)
567
+
568
+
569
+
570
+
571
+
572
+ </h3><div class="docstring">
573
+ <div class="discussion">
574
+
575
+ <p>Create an instance from a POM</p>
576
+
577
+
578
+ </div>
579
+ </div>
580
+ <div class="tags">
581
+ <p class="tag_title">Parameters:</p>
582
+ <ul class="param">
583
+
584
+ <li>
585
+
586
+ <span class='name'>pom_path</span>
587
+
588
+
589
+ <span class='type'>(<tt>String</tt>)</span>
590
+
591
+
592
+
593
+ </li>
594
+
595
+ </ul>
596
+
597
+ <p class="tag_title">Returns:</p>
598
+ <ul class="return">
599
+
600
+ <li>
601
+
602
+
603
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Naether::Maven (class)">Naether::Maven</a></span></tt>)</span>
604
+
605
+
606
+
607
+ </li>
608
+
609
+ </ul>
610
+
611
+ </div><table class="source_code">
612
+ <tr>
613
+ <td>
614
+ <pre class="lines">
615
+
616
+
617
+ 32
618
+ 33
619
+ 34</pre>
620
+ </td>
621
+ <td>
622
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 32</span>
623
+
624
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_from_pom'>create_from_pom</span><span class='lparen'>(</span> <span class='id identifier rubyid_pom_path'>pom_path</span> <span class='rparen'>)</span>
625
+ <span class='id identifier rubyid_maven'>maven</span> <span class='op'>=</span> <span class='const'>Maven</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_pom_path'>pom_path</span> <span class='rparen'>)</span>
626
+ <span class='kw'>end</span></pre>
627
+ </td>
628
+ </tr>
629
+ </table>
630
+ </div>
631
+
632
+ </div>
633
+
634
+ <div id="instance_method_details" class="method_details_list">
635
+ <h2>Instance Method Details</h2>
636
+
637
+
638
+ <div class="method_details first">
639
+ <h3 class="signature first" id="build_pom-instance_method">
640
+
641
+ - (<tt>String</tt>) <strong>build_pom</strong>
642
+
643
+
644
+
645
+
646
+
647
+ </h3><div class="docstring">
648
+ <div class="discussion">
649
+
650
+ <p>Create the XML for a Maven Pom</p>
651
+
652
+
653
+ </div>
654
+ </div>
655
+ <div class="tags">
656
+
657
+ <p class="tag_title">Returns:</p>
658
+ <ul class="return">
659
+
660
+ <li>
661
+
662
+
663
+ <span class='type'>(<tt>String</tt>)</span>
664
+
665
+
666
+
667
+ &mdash;
668
+ <div class='inline'>
669
+ <p>pom xml</p>
670
+ </div>
671
+
672
+ </li>
673
+
674
+ </ul>
675
+
676
+ </div><table class="source_code">
677
+ <tr>
678
+ <td>
679
+ <pre class="lines">
680
+
681
+
682
+ 130
683
+ 131
684
+ 132</pre>
685
+ </td>
686
+ <td>
687
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 130</span>
688
+
689
+ <span class='kw'>def</span> <span class='id identifier rubyid_build_pom'>build_pom</span><span class='lparen'>(</span><span class='rparen'>)</span>
690
+ <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_toXml'>toXml</span><span class='lparen'>(</span><span class='rparen'>)</span>
691
+ <span class='kw'>end</span></pre>
692
+ </td>
693
+ </tr>
694
+ </table>
695
+ </div>
696
+
697
+ <div class="method_details ">
698
+ <h3 class="signature " id="dependencies-instance_method">
699
+
700
+ - (<tt>Object</tt>) <strong>dependencies</strong>(scopes = nil)
701
+
702
+
703
+
704
+
705
+
706
+ </h3><div class="docstring">
707
+ <div class="discussion">
708
+
709
+ <p>Get dependences for Project as notations</p>
710
+
711
+
712
+ </div>
713
+ </div>
714
+ <div class="tags">
715
+ <p class="tag_title">Parameters:</p>
716
+ <ul class="param">
717
+
718
+ <li>
719
+
720
+ <span class='name'>scopes</span>
721
+
722
+
723
+ <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
724
+
725
+
726
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
727
+
728
+
729
+ &mdash;
730
+ <div class='inline'>
731
+ <p>valid options are compile,test,runtime</p>
732
+ </div>
733
+
734
+ </li>
735
+
736
+ </ul>
737
+
738
+
739
+ </div><table class="source_code">
740
+ <tr>
741
+ <td>
742
+ <pre class="lines">
743
+
744
+
745
+ 71
746
+ 72
747
+ 73
748
+ 74
749
+ 75
750
+ 76
751
+ 77
752
+ 78
753
+ 79
754
+ 80
755
+ 81
756
+ 82
757
+ 83
758
+ 84
759
+ 85
760
+ 86
761
+ 87
762
+ 88
763
+ 89
764
+ 90
765
+ 91
766
+ 92
767
+ 93
768
+ 94
769
+ 95
770
+ 96
771
+ 97
772
+ 98</pre>
773
+ </td>
774
+ <td>
775
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 71</span>
776
+
777
+ <span class='kw'>def</span> <span class='id identifier rubyid_dependencies'>dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_scopes'>scopes</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
778
+ <span class='kw'>if</span> <span class='id identifier rubyid_scopes'>scopes</span>
779
+ <span class='kw'>unless</span> <span class='id identifier rubyid_scopes'>scopes</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
780
+ <span class='id identifier rubyid_scopes'>scopes</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_scopes'>scopes</span><span class='rbracket'>]</span>
781
+ <span class='kw'>end</span>
782
+ <span class='kw'>end</span>
783
+
784
+ <span class='kw'>if</span> <span class='const'>Naether</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>java</span><span class='tstring_end'>'</span></span>
785
+ <span class='kw'>if</span> <span class='id identifier rubyid_scopes'>scopes</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
786
+ <span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getDependenciesNotation'>getDependenciesNotation</span><span class='lparen'>(</span><span class='rparen'>)</span>
787
+ <span class='kw'>else</span>
788
+ <span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getDependenciesNotation'>getDependenciesNotation</span><span class='lparen'>(</span> <span class='id identifier rubyid_scopes'>scopes</span> <span class='rparen'>)</span>
789
+ <span class='kw'>end</span>
790
+
791
+ <span class='kw'>else</span>
792
+ <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='kw'>nil</span>
793
+ <span class='kw'>if</span> <span class='id identifier rubyid_scopes'>scopes</span>
794
+ <span class='id identifier rubyid_list'>list</span> <span class='op'>=</span> <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_java_list'>convert_to_java_list</span><span class='lparen'>(</span> <span class='id identifier rubyid_scopes'>scopes</span> <span class='rparen'>)</span>
795
+
796
+ <span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid__invoke'>_invoke</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>getDependenciesNotation</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Ljava.util.List;</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_list'>list</span><span class='rparen'>)</span>
797
+ <span class='kw'>else</span>
798
+ <span class='id identifier rubyid_deps'>deps</span> <span class='op'>=</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getDependenciesNotation'>getDependenciesNotation</span><span class='lparen'>(</span><span class='rparen'>)</span>
799
+ <span class='kw'>end</span>
800
+
801
+ <span class='kw'>end</span>
802
+
803
+ <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_convert_to_ruby_array'>convert_to_ruby_array</span><span class='lparen'>(</span> <span class='id identifier rubyid_deps'>deps</span><span class='comma'>,</span> <span class='kw'>true</span> <span class='rparen'>)</span>
804
+ <span class='kw'>end</span></pre>
805
+ </td>
806
+ </tr>
807
+ </table>
808
+ </div>
809
+
810
+ <div class="method_details ">
811
+ <h3 class="signature " id="dependencies=-instance_method">
812
+
813
+ - (<tt>Object</tt>) <strong>dependencies=</strong>(dependencies)
814
+
815
+
816
+
817
+
818
+
819
+ </h3><div class="docstring">
820
+ <div class="discussion">
821
+
822
+ <p>Set dependencies</p>
823
+
824
+
825
+ </div>
826
+ </div>
827
+ <div class="tags">
828
+ <p class="tag_title">Parameters:</p>
829
+ <ul class="param">
830
+
831
+ <li>
832
+
833
+ <span class='name'>dependencies</span>
834
+
835
+
836
+ <span class='type'>(<tt>Array</tt>)</span>
837
+
838
+
839
+
840
+ </li>
841
+
842
+ </ul>
843
+
844
+
845
+ </div><table class="source_code">
846
+ <tr>
847
+ <td>
848
+ <pre class="lines">
849
+
850
+
851
+ 103
852
+ 104
853
+ 105</pre>
854
+ </td>
855
+ <td>
856
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 103</span>
857
+
858
+ <span class='kw'>def</span> <span class='id identifier rubyid_dependencies='>dependencies=</span><span class='lparen'>(</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='rparen'>)</span>
859
+ <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_setDependencies'>setDependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dependencies'>dependencies</span> <span class='rparen'>)</span>
860
+ <span class='kw'>end</span></pre>
861
+ </td>
862
+ </tr>
863
+ </table>
864
+ </div>
865
+
866
+ <div class="method_details ">
867
+ <h3 class="signature " id="load_naether-instance_method">
868
+
869
+ - (<tt>Object</tt>) <strong>load_naether</strong>(naether)
870
+
871
+
872
+
873
+
874
+
875
+ </h3><div class="docstring">
876
+ <div class="discussion">
877
+
878
+ <p>Load dependencies and remote repo from a <span class='object_link'><a href="../Naether.html" title="Naether (class)">Naether</a></span> instance</p>
879
+
880
+
881
+ </div>
882
+ </div>
883
+ <div class="tags">
884
+
885
+
886
+ </div><table class="source_code">
887
+ <tr>
888
+ <td>
889
+ <pre class="lines">
890
+
891
+
892
+ 122
893
+ 123
894
+ 124
895
+ 125</pre>
896
+ </td>
897
+ <td>
898
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 122</span>
899
+
900
+ <span class='kw'>def</span> <span class='id identifier rubyid_load_naether'>load_naether</span><span class='lparen'>(</span> <span class='id identifier rubyid_naether'>naether</span> <span class='rparen'>)</span>
901
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='op'>=</span> <span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_resolver'>resolver</span><span class='period'>.</span><span class='id identifier rubyid_getDependencies'>getDependencies</span><span class='lparen'>(</span><span class='rparen'>)</span>
902
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_repositories'>repositories</span><span class='op'>=</span> <span class='id identifier rubyid_naether'>naether</span><span class='period'>.</span><span class='id identifier rubyid_resolver'>resolver</span><span class='period'>.</span><span class='id identifier rubyid_getRemoteRepositoryUrls'>getRemoteRepositoryUrls</span><span class='lparen'>(</span><span class='rparen'>)</span>
903
+ <span class='kw'>end</span></pre>
904
+ </td>
905
+ </tr>
906
+ </table>
907
+ </div>
908
+
909
+ <div class="method_details ">
910
+ <h3 class="signature " id="notation=-instance_method">
911
+
912
+ - (<tt>Object</tt>) <strong>notation=</strong>(notation)
913
+
914
+
915
+
916
+
917
+
918
+ </h3><div class="docstring">
919
+ <div class="discussion">
920
+
921
+ <p>Set the Notation for this Project</p>
922
+
923
+
924
+ </div>
925
+ </div>
926
+ <div class="tags">
927
+ <p class="tag_title">Parameters:</p>
928
+ <ul class="param">
929
+
930
+ <li>
931
+
932
+ <span class='name'>notation</span>
933
+
934
+
935
+ <span class='type'>(<tt>String</tt>)</span>
936
+
937
+
938
+
939
+ </li>
940
+
941
+ </ul>
942
+
943
+
944
+ <p class="tag_title">See Also:</p>
945
+ <ul class="see">
946
+
947
+ <li><a href="https://github.com/mguymon/naether/wiki/Notations" target="_parent" title="https://github.com/mguymon/naether/wiki/Notations">https://github.com/mguymon/naether/wiki/Notations</a></li>
948
+
949
+ </ul>
950
+
951
+ </div><table class="source_code">
952
+ <tr>
953
+ <td>
954
+ <pre class="lines">
955
+
956
+
957
+ 64
958
+ 65
959
+ 66</pre>
960
+ </td>
961
+ <td>
962
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 64</span>
963
+
964
+ <span class='kw'>def</span> <span class='id identifier rubyid_notation='>notation=</span><span class='lparen'>(</span><span class='id identifier rubyid_notation'>notation</span><span class='rparen'>)</span>
965
+ <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_setProjectNotation'>setProjectNotation</span><span class='lparen'>(</span> <span class='id identifier rubyid_notation'>notation</span> <span class='rparen'>)</span>
966
+ <span class='kw'>end</span></pre>
967
+ </td>
968
+ </tr>
969
+ </table>
970
+ </div>
971
+
972
+ <div class="method_details ">
973
+ <h3 class="signature " id="repositories=-instance_method">
974
+
975
+ - (<tt>Object</tt>) <strong>repositories=</strong>(repositories)
976
+
977
+
978
+
979
+
980
+
981
+ </h3><div class="docstring">
982
+ <div class="discussion">
983
+
984
+ <p>Set repositories</p>
985
+
986
+
987
+ </div>
988
+ </div>
989
+ <div class="tags">
990
+ <p class="tag_title">Parameters:</p>
991
+ <ul class="param">
992
+
993
+ <li>
994
+
995
+ <span class='name'>repositories</span>
996
+
997
+
998
+ <span class='type'>(<tt>Array</tt>)</span>
999
+
1000
+
1001
+
1002
+ &mdash;
1003
+ <div class='inline'>
1004
+ <p>of urls</p>
1005
+ </div>
1006
+
1007
+ </li>
1008
+
1009
+ </ul>
1010
+
1011
+
1012
+ </div><table class="source_code">
1013
+ <tr>
1014
+ <td>
1015
+ <pre class="lines">
1016
+
1017
+
1018
+ 110
1019
+ 111
1020
+ 112</pre>
1021
+ </td>
1022
+ <td>
1023
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 110</span>
1024
+
1025
+ <span class='kw'>def</span> <span class='id identifier rubyid_repositories='>repositories=</span><span class='lparen'>(</span> <span class='id identifier rubyid_repositories'>repositories</span> <span class='rparen'>)</span>
1026
+ <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_setRepositories'>setRepositories</span><span class='lparen'>(</span> <span class='id identifier rubyid_repositories'>repositories</span> <span class='rparen'>)</span>
1027
+ <span class='kw'>end</span></pre>
1028
+ </td>
1029
+ </tr>
1030
+ </table>
1031
+ </div>
1032
+
1033
+ <div class="method_details ">
1034
+ <h3 class="signature " id="version-instance_method">
1035
+
1036
+ - (<tt>Object</tt>) <strong>version</strong>
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+ </h3><div class="docstring">
1043
+ <div class="discussion">
1044
+
1045
+ <p>Get the version</p>
1046
+
1047
+ <p>return [String] version</p>
1048
+
1049
+
1050
+ </div>
1051
+ </div>
1052
+ <div class="tags">
1053
+
1054
+
1055
+ </div><table class="source_code">
1056
+ <tr>
1057
+ <td>
1058
+ <pre class="lines">
1059
+
1060
+
1061
+ 117
1062
+ 118
1063
+ 119</pre>
1064
+ </td>
1065
+ <td>
1066
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 117</span>
1067
+
1068
+ <span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span><span class='lparen'>(</span><span class='rparen'>)</span>
1069
+ <span class='kw'>return</span> <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_getVersion'>getVersion</span><span class='lparen'>(</span><span class='rparen'>)</span>
1070
+ <span class='kw'>end</span></pre>
1071
+ </td>
1072
+ </tr>
1073
+ </table>
1074
+ </div>
1075
+
1076
+ <div class="method_details ">
1077
+ <h3 class="signature " id="write_pom-instance_method">
1078
+
1079
+ - (<tt>Object</tt>) <strong>write_pom</strong>(file_path)
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+ </h3><div class="docstring">
1086
+ <div class="discussion">
1087
+
1088
+ <p>Write Maven Pom</p>
1089
+
1090
+
1091
+ </div>
1092
+ </div>
1093
+ <div class="tags">
1094
+ <p class="tag_title">Parameters:</p>
1095
+ <ul class="param">
1096
+
1097
+ <li>
1098
+
1099
+ <span class='name'>file_path</span>
1100
+
1101
+
1102
+ <span class='type'>(<tt>String</tt>)</span>
1103
+
1104
+
1105
+
1106
+ </li>
1107
+
1108
+ </ul>
1109
+
1110
+
1111
+ </div><table class="source_code">
1112
+ <tr>
1113
+ <td>
1114
+ <pre class="lines">
1115
+
1116
+
1117
+ 138
1118
+ 139
1119
+ 140</pre>
1120
+ </td>
1121
+ <td>
1122
+ <pre class="code"><span class="info file"># File 'lib/naether/maven.rb', line 138</span>
1123
+
1124
+ <span class='kw'>def</span> <span class='id identifier rubyid_write_pom'>write_pom</span><span class='lparen'>(</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='rparen'>)</span>
1125
+ <span class='ivar'>@project</span><span class='period'>.</span><span class='id identifier rubyid_writePom'>writePom</span><span class='lparen'>(</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='rparen'>)</span>
1126
+ <span class='kw'>end</span></pre>
1127
+ </td>
1128
+ </tr>
1129
+ </table>
1130
+ </div>
1131
+
1132
+ </div>
1133
+
1134
+ </div>
1135
+
1136
+ <div id="footer">
1137
+ Generated on Wed Sep 12 14:18:12 2012 by
1138
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1139
+ 0.8.2.1 (ruby-1.9.3).
1140
+ </div>
1141
+
1142
+ </body>
1143
+ </html>